Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling a single value from an XML document...

Status
Not open for further replies.

BLynch85

Technical User
Jul 30, 2002
1
US
I have no real experience working with XML, but I was just curious if there was some type of HTML command that could pull out a single number/word from an entire XML document. I realize what I'm saying might not be very clear, so I'll try to explain a bit more.


The above link is is an XML document that is constantly updated (not by me) and I would like to know if there is some HTML command I could use to display the "level" number in the document. I was thinking something like this:

Code:
<SRC=&quot;[URL unfurl="true"]http://www.anarchy-online.com/org/stats/d/1/name/3510273/basicstats.xml&quot;[/URL] DIRECTORY=&quot;organization&quot; DIRECTORY=&quot;members&quot; DIRECTORY=&quot;member&quot;=Tocksick &quot;level&quot;>

That type of command would pull out a number from the given directories, it would be very nice for something like this to exist, so it probably doesn't. :) Anyways, please help if you have the time, thanks!
 
if you have no way of server side scripting, i would use the msxml parser client side (although only support for ie), to use an xpath expression like

&quot;/organization/members/member/level&quot;

to return a group of all levels for all members

or

&quot;/organization/members/member/level[../nickname='&quot; + nick + &quot;']&quot; to return those with the nickname specified mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top