⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpathconfig.cpp

📁 介绍用Java解析网络数据的三种特殊方法
💻 CPP
字号:
// XPathConfig.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include "..\Code_Conv.h"
#include <iostream.h>

int main(int argc, char* argv[])
{
	xmlDocPtr doc = openXmlFile("..\\Debug\\XPathConfig.xml");

	string strIP = getXmlString(doc,"/main/IP");

	int iPort = getXmlInt(doc,"/main/Port");

	cout<<"IP = "<<strIP.c_str()<<" Port = "<<iPort<<endl;

	closeXmlFile(doc);
	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -