有关TinyXML和另一个XML链接的查询 [英] Queries regarding TinyXML and another XML Link

查看:88
本文介绍了有关TinyXML和另一个XML链接的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从链接 ^ ]

还有来自链接 ^ ]

我要做的是,我将获得如下所示的数据,我将其作为字符串获取,并将其传递给我的xml文档,该文档必须对其进行解析并将其存储在xml文件中,然后在我必须读取xml之后文档并连接到在机器标签下给定的ip和端口.
要完成此任务,我应该使用TinyXML还是我给出的第二个链接?
关于TinyXML,当我们下载代码时有4个项目,我必须使用哪个项目?

i got the Tiny XML code from the link http://sourceforge.net/projects/tinyxml/[^]

And another XML Parsing document link from the link Parsing an XML file in a C/C++ program[^]

What i have to do is,i will get the data as shown below,i will get it as an string and pass it to mine xml document that have to parse it and store it in an xml file then after i have to read the xml document and connect to ip and port given under the machine tag.
To accomplish this task which should i use the TinyXML or the 2nd link that i gave?
Regarding TinyXML,there are 4 projects that are given when we download the code,which one i have to use?

<DataCaptureSesstings>
  <ModuleSettings>
    <account_id>1</account_id>
    <capture_local_dir>c:\</capture_local_dir>
    <capture_log_dir>c:\log</capture_log_dir>
    <capture_log_level>debug</capture_log_level>
    <capture_request_interval>2</capture_request_interval>
    <capture_connection_interval>2</capture_connection_interval>
    <smtp_server_name>n1</smtp_server_name>
    <smtp_server_port>80</smtp_server_port>
    <smtp_email_sender>s1</smtp_email_sender>
    <smtp_email_sender_password>p1</smtp_email_sender_password>
  </ModuleSettings>
  <MachineList>
	  <Machine>
		<MachineId>0022</MachineId>
		<Make>Make1</Make>
		<Model>Model1</Model>
		<SerialNumber>SN1</SerialNumber>
		<IpAddress>10.10.10.10</IpAddress>
		<Port>80</Port>
	  </Machine>
	  <Machine>
		<MachineId>3000</MachineId>
		<Make>Make3</Make>
		<Model>Model3</Model>
		<SerialNumber>SN3</SerialNumber>
		<IpAddress>30.30.30.30</IpAddress>
		<Port>80</Port>
	  </Machine>
	</MachineList>
</DataCaptureSesstings>

推荐答案

目前尚不清楚您要做什么以及为什么要做,但是您似乎又在尝试学习通过在这里提问来一些新技术.如果您需要快速的XML解析器,请查看 XmlLite [
It is far from clear what you are trying to do and why, but you seem once again to be trying to learn some new technology by asking questions here. If you need a quick XML parser then take a look at XmlLite[^] from Microsoft. Using XML is not excessively difficult but it does require you to spend some solid study and experiment time.


这篇关于有关TinyXML和另一个XML链接的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆