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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XLST parsing from XML data

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hello,
I have a question about parsing some XML data using
XSLT, and then using this data in a call to an ASP
file.
The XML is of the format:

<names> XMLAmtr, John, Brad, Bill </names>

And I'd like to be able to write XSLT to somehow parse
this data into separate strings and perform the calls
GetInfo.asp?=Sriram, GetInfo.asp?=Brad, etc. one by
one in order in a looplike structure.

Could you be able to help out on this?

Thanks,
XMLAmtr

 
Hmmm, tricky and I would say pretty stupid! XML was designed to make things much easier for you. Why don't you consider changing your XML structure to:

<Names>
<Name>Peter</Name>
<Name>Adam</Name>
<Name>Suzie</Name>
</Names>

Then you can loop through the names collection and pull out each individual name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top