xpathconfig.cpp
来自「介绍用Java解析网络数据的三种特殊方法」· C++ 代码 · 共 25 行
CPP
25 行
// 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 + =
减小字号Ctrl + -
显示快捷键?