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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

XML and collectionbase 3
XML file and UTF8 4
Populating objects from XML file 4
Creating DOM Document from Sratch 1
Recordset load XML 4
Xml and DataSet 5
Read XML file using OOP 7
Writing XML in a stream,,, 1

Back
Top