New topic: First time Querying XML doc
<http://forums.realsoftware.com/viewtopic.php?t=25501> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Sky Stream Post subject: First time Querying XML docPosted: Fri Dec 05, 2008 12:18 am Joined: Sun Nov 23, 2008 12:27 am Posts: 2 I have done some searching and I am a little bit slow to understand how to query an xml doc. it seems simple however, I am hitting mental blocks. ok.. so here is what I want to do, I have an XML file that I am producing in my app. Code: <?xml version="1.0" encoding="UTF-8"?> <oncall><record> <date>12/4/08</date> <ticket>33342</ticket> <site>Test 1</site> <hours>3</hours> </record> <record> <date>12/4/08</date> <ticket>66653</ticket> <site>Test 2</site> <hours>2</hours> </record> <record> <date>12/4/08</date> <ticket>77664</ticket> <site>Test 3</site> <hours>4</hours> </record> <basepay> <monday>25</monday> <tuesday>25</tuesday> <wednesday>25</wednesday> <thursday>25</thursday> <friday>25</friday> <saturday>45</saturday> <sunday>45</sunday> </basepay> </oncall> now, I have that saved to a text file. Now, I would like to be able to query the values. what I have is not much, but I am having problems understanding how to pull the values. here is my start Code: Dim TargetXML As New XmlDocument Dim TargetDocument As FolderItem TargetDocument = GetOpenFolderItem("") TargetXML.LoadXml(TargetDocument) MsgBox TargetXML.ToString now, I know I have the doc loaded because I can output the string. Though this is not the end result that I want, how can I now query the various nodes for their values? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
