easy DOM XML question...

  • Thread starter Thread starter genc ymeri
  • Start date Start date
G

genc ymeri

Hi,
I have a this string variable :

string strXML = "<greetings>Hello<greetings/>"

How can I read this XML information when it stored in a string variable
rather than in a "classical" way of being in a XML file ????



PS:
I expect a reading solution without having the need to save it as a XML file
first in order to loaded in a xml object e.g xmlDoc.Load(aXMLFile)
 
genc said:
Hi,
I have a this string variable :

string strXML = "<greetings>Hello<greetings/>"

How can I read this XML information when it stored in a string variable
rather than in a "classical" way of being in a XML file ????



PS:
I expect a reading solution without having the need to save it as a XML file
first in order to loaded in a xml object e.g xmlDoc.Load(aXMLFile)

and I don't expect that you RTFM ;-) XmlDocument.Load has a
lot of overloads.

bye
Rob
 
Robert said:
and I don't expect that you RTFM ;-) XmlDocument.Load has a
lot of overloads.

XmlDocument.LoadXml is your friend, though not an overload.

Rob
 
Back
Top