|
Hi, what i do is read a web page as string And read the string as xml Now i want to do a Here the code i used to read string and convert it as xml : Thanks for your help ! :P EDIT : I want to make a datagrid too, like show colloms like : servername, server id and show row with the value , and the player can click on colloms cell to order by ...
(comments are locked)
|
|
First of all really good question. And you where trying to use , xmlTextReader, which is a stream based class, what actually you should be doing is use a class that accepts a text input as xml not a file, XmlDocument is what i know.There might be other classes also, im not sure. the below is the sample code i have check and can assure tht it works PS: XmlDocument class works on android and iphone also... More info: to display it like a list of servers, first you have to decode the xml and get a string list for that look into xmlNodeList the snippet for fetching is after fetching and saving it in a global variable display it from on gui. I hope this is clear??! You might also want to take a look at the Lightweight XML parser since if you use the
Jun 25 '12 at 11:15 AM
Bunny83
oh! looks intresting, ill take a look into it. Thanks
Jun 25 '12 at 12:01 PM
flamy
(comments are locked)
|

Still need to find how to
The XMLTextReader class is a parser of type: pull parsing while XmlDocument parses the xml as DOM.
Both are standard .NET classes. There are hundreds of examples out there. It also as been asked around 10 times here how to parse xml.
Furthermore parsing an xml string isn't really Unity specific.