How to convert (string -> xml) with window mobile?
-
I make code for read in web based mySql. my php code able to read mySql and push to string. $yoResult = iconv("EUC-KR", "UTF-8", $outxml); echo $yoResult; $yoResult is... bla bla my window mobile code read that data string. But i don't know How to handle that data! How do I approach that data?
-
I make code for read in web based mySql. my php code able to read mySql and push to string. $yoResult = iconv("EUC-KR", "UTF-8", $outxml); echo $yoResult; $yoResult is... bla bla my window mobile code read that data string. But i don't know How to handle that data! How do I approach that data?
You might want to check out the XmlTextReader class or the ReadXml method of the DataSet object (Depending on what you are doing).
Joel Ivory Johnson
Meet my dev team: RDA Architecture Evangelist Team Blog
My site: J2i.net
Twitter: J2iNet
-
You might want to check out the XmlTextReader class or the ReadXml method of the DataSet object (Depending on what you are doing).
Joel Ivory Johnson
Meet my dev team: RDA Architecture Evangelist Team Blog
My site: J2i.net
Twitter: J2iNet
I give you here complete example for xml in windows mobile : It would show you in listbox all title and link of xml > using System.Net; using System.IO; using System.Xml; XmlTextReader reader = new XmlTextReader(filename ); while (reader.Read()) // if stream readed { XmlNodeType nodetype = reader.NodeType; // checking nodes every type if (nodetype == XmlNodeType.Element) { if (reader.Name == "title") { listBox1.Items.Add("........................"); listBox1.Items.Add(reader.ReadString()); } if (reader.Name == "link") { listBox1.Items.Add(reader.ReadString()); } } } reder.Close(); xml : Newgame http:........... Newpc http:...........