更新时间:2023-11-24 18:37:28
XML文档必须包含一个元素,它是所有其他元素的父元素。此元素称为根元素。
例如语法:< root >
< child >
< subchild > ..... < / subchild >
< / child >
< / root >
您好, b $ b
看看这篇文章:
使用XML [ ^ ]
C#中的简单XML解析 [ ^ ]
LINQ to XML [ ^ ]
用C#读写XML [ ^ ]
C# XmlWriter [ ^ ]
Hi,
I Have Xml Structure as below
<root>
<OutBound>
<RowId>0</RowId>
<RefId>0</RefId>
<RefNum>S2-0</RefNum>
<AirlineId />
<Origin>BLR</Origin>
<Destination>BOM</Destination>
<FlightName>S2</FlightName>
<FlightNumber>3120</FlightNumber>
<OrgCityName>Bangalore</OrgCityName>
<DesCityName>Mumbai</DesCityName>
<Org>BLR</Org>
</OutBound>
Kindly suggest how To add ''<'' /Root''>'' Tag into the XML in C#
Thanks in Advance
Sheethal
XML documents must contain one element that is the parent of all other elements. This element is called the root element.
for example syntax:<root> <child> <subchild>.....</subchild> </child> </root>
for more help in syntax refer here[^]
Root Node[^]
and these tutorial on XML in C#[^] will help you
Hi,
Have a look at this articles:
Working with XML[^]
Easy XML Parsing in C#[^]
LINQ to XML[^]
Reading and Writing XML in C#[^]
C# XmlWriter[^]