Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
139 Points
218 Posts
May 23, 2012 08:31 PM|LINK
Hi all,
I'm trying to turn the xml below into a dataset / datatable so I can display it in a gridview but it's returning 0 tables? Anythoughts?
<configuration> <system> <login> <user> <name>joeuser</name> <uid>2001</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> <user> <name>bobuser</name> <uid>2002</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> <user> <name>joeuser</name> <uid>2002</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> </login> </system> </configuration>
Dim objXMLSR As System.IO.StringReader = New System.IO.StringReader(xmlResponseString) Dim objDS As New DataSet objDS.ReadXml(objXMLSR, XmlReadMode.IgnoreSchema) gridOutput.DataSource = objDS.Tables("user")
bluelinenetw...
Member
139 Points
218 Posts
DataSet.XMLRead not making any tables
May 23, 2012 08:31 PM|LINK
Hi all,
I'm trying to turn the xml below into a dataset / datatable so I can display it in a gridview but it's returning 0 tables? Anythoughts?
<configuration> <system> <login> <user> <name>joeuser</name> <uid>2001</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> <user> <name>bobuser</name> <uid>2002</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> <user> <name>joeuser</name> <uid>2002</uid> <class>xyz</class> <authentication> <encrypted-password>askldjfc;acmealsiefja;flcnsdlkm</encrypted-password> </authentication> </user> </login> </system> </configuration>Dim objXMLSR As System.IO.StringReader = New System.IO.StringReader(xmlResponseString) Dim objDS As New DataSet objDS.ReadXml(objXMLSR, XmlReadMode.IgnoreSchema) gridOutput.DataSource = objDS.Tables("user")Web Based Self Service Password Reset for Active Directory Accounts (OpenSource Project)