Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing XML from DB

Status
Not open for further replies.

LochDhu

Technical User
Jul 12, 2001
76
US
I have a VARCHAR2 field in SQL Server holding XML. I need to query that field and parse the contents with, I assume, either an XMLDocument or XMLTextReader. Does anyone have any suggestions on how to approach this. The query part is no problem - it's how to take the contents and build an XMLDocument or XMLTextReader object.

Thanks,

Scott
 
I answered my own question.

Code:
Dim xmlDoc As New System.Xml.XmlDocument
xmlDoc.LoadXml(ds.Tables(0).Rows(0).Item(1).ToString)

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top