Hi,
Using LINQ to XML how to read XML node names??
I have the Following XML
-
- <?xml version="1.0" encoding="utf-8"?>
- <OrderDocument>
- <rows>
- <OrderDocumentRow>
- <number>1</number>
- <Cost>
- <code>11</code>
- <type>0</type>
- <isDefault>false</isDefault>
- <decimalTotal>0</decimalTotal>
- </Cost>
- <Order>
- <code>88</code>
- <type>0</type>
- <isDefault>false</isDefault>
- <decimalTotal>0</decimalTotal>
- </Order>
- <article>abc</article>
- </OrderDocumentRow>
- </rows>
- </OrderDocument>
-
|
I want to get all the node names inside <OrderDocumentRow>.
i.e.
1)number
2)Cost
3)Order
4)article etc..
How to get the node name list?
thank you,
Veena