XML parsing and revXMLNodeContents
Posted: Wed Jun 19, 2013 3:26 pm
Hi,
Suppose I have some data
<XMLSOCCER>
<Team>
<Team_Id>45</Team_Id>
<Name>Aberdeen</Name>
<Country>Scotland</Country>
<Stadium>Pittodrie Stadium</Stadium>
<HomePageURL>www.afc.co.uk</HomePageURL>
<WIKILink>http://en.wikipedia.org/wiki/Aberdeen_F.C.</WIKILink>
</Team>
...
</XMLSOCCER>
and I want to use revXMLNodeContents to get the Name of a Team.
I haven't been able to extract this info and it is driving me a bit nuts as I'm not clear what I'm doing wrong. I have for instance tried
put revCreateXMLTree(tResponse, false, true, false) into tDocID
put revXMLNodeContents(tDocID,"XMLSOCCER/Team_Id/Name") into tResult
and
put revCreateXMLTree(tResponse, false, true, false) into tDocID
put revXMLNodeContents(tDocID,"/XMLSOCCER/Team_Id/Name") into tResult
but I always get an xmlerr can't find element.
Can anyone give any further info (obviously I've consulted the Docs) on how this command should be used.
Thanks in advance.
Suppose I have some data
<XMLSOCCER>
<Team>
<Team_Id>45</Team_Id>
<Name>Aberdeen</Name>
<Country>Scotland</Country>
<Stadium>Pittodrie Stadium</Stadium>
<HomePageURL>www.afc.co.uk</HomePageURL>
<WIKILink>http://en.wikipedia.org/wiki/Aberdeen_F.C.</WIKILink>
</Team>
...
</XMLSOCCER>
and I want to use revXMLNodeContents to get the Name of a Team.
I haven't been able to extract this info and it is driving me a bit nuts as I'm not clear what I'm doing wrong. I have for instance tried
put revCreateXMLTree(tResponse, false, true, false) into tDocID
put revXMLNodeContents(tDocID,"XMLSOCCER/Team_Id/Name") into tResult
and
put revCreateXMLTree(tResponse, false, true, false) into tDocID
put revXMLNodeContents(tDocID,"/XMLSOCCER/Team_Id/Name") into tResult
but I always get an xmlerr can't find element.
Can anyone give any further info (obviously I've consulted the Docs) on how this command should be used.
Thanks in advance.