0

Possible Duplicate:
Loading XML String into datatable

string parseXML = "<TEST xmlns:dt=\"urn:schemas-microsoft-com:datatypes\">
                      <A dt:dt=\"string\">10</A>
                      <B dt:dt=\"string\">20</B>
                   </TEST>"

I learned that I can parse usual XMLs using ReadXml Command as shown in the answer of my previous question.

Community
  • 1
  • 1
Eternal Noob
  • 2,717
  • 5
  • 27
  • 41
  • 1
    How is this different from your original question? – cadrell0 Oct 02 '12 at 17:02
  • @cadrell0 In the first question, I was under the impression that ReadXml(reader) does the parsing for all the types of xmls, so my question was why ReadXml() is not working, and I got the answer saying it doesn't work for all kind of xmls, now my question is , what is the way to parse this particular kind of xml into datatable – Eternal Noob Oct 02 '12 at 17:05
  • I would say that the accepted answer on that question is not satisfactory. While is does tell you why your code isn't working, it solves the problem the wrong way. It tries to correct the problem with your data, rather than trying to correct the problem with your code. – cadrell0 Oct 02 '12 at 17:09
  • That's a good point... I think I will keep that one open as well... I don't mind as long as I get the answer :) – Eternal Noob Oct 02 '12 at 17:32

0 Answers0