求助:c# 读取xml子结点 - .NET技术 / C#
<?xml version="1.0" encoding="gb2312"?>
<Base>
<DatabaseCatalog>
<DatabaseCatalogName>基础库</DatabaseCatalogName>
<Alias>commondb</Alias>
<DatabaseCatalogCode>1</DatabaseCatalogCode>
<databasecount>1</databasecount>
<Database>
<DatabaseName>database1</DatabaseName>
<DatabaseCode>11</DatabaseCode>
<Tablecount>1</Tablecount>
<Table>
<TableName>data</TableName>
<TableCode>1101</TableCode>
<Linkfield></Linkfield>
<TwothTableCount>1</TwothTableCount>
<TwothTable>
<TwothTableName>2thTable</TwothTableName>
<TwothTableCode>110101</TwothTableCode>
<Linkfield></Linkfield>
</TwothTable>
</Table>
</Database>
</DatabaseCatalog>
</Base>
上面是xml文档。我想读取TwothTableName这个标签,该怎么办?在<Table>标签里的<Linkfield>,和 <TwothTable>标签里的<Linkfield>这两个可以用同一个标签名字嘛?
看这里,Xml常用操作:XML增删改查
http://topic
相关问答:
DataSet导出xml 批处理(循环)得怎么处理
XML文件
<A>
<B>
<C>
</C>
&nb ......
SHIFT加F10与那个键右ctrl边上的那个键功能一样,想屏这个
但不知要怎么写那个组合键!
有没哪个大侠放一段这个的代码或写一段
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
我有一个类似的xml的 string,想通过遍历怎么个xml 输出我想要的element的值
xml 为:
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
挺繁琐,之前发的帖子,分值太低现在重发一个。欢迎各位大侠~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......