Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I Have Xml Structure as below

XML
<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
Posted
Updated 20-Dec-12 3:56am
v2
Comments
lewax00 20-Dec-12 10:16am    
Hard to say...how are you storing the XML structure? Is it in a string, a file, some data structure?

XML documents must contain one element that is the parent of all other elements. This element is called the root element.

for example syntax:
XML
<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
 
Share this answer
 
v2
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900