|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Selecting Records with ASP/XML
I am new to XML and am still trying to get to grips with it, so apologies if this is a fairly fundamental question.
Basically I want to select a record from an XML document, dependent upon the querystring that is past e.g http://www.default.com?ID=COMPANY would bring back the records named COMPANY from the XML file. At present I have an XML file structure like so. <TOPICS TYPE="COMPANY"> <TOPIC><TITLE>Head Office</TITLE></TOPIC> <TOPIC><TITLE>Registered Office</TITLE></TOPIC> <TOPIC><TITLE>Sales/Office</TITLE></TOPIC> <TOPIC><TITLE>Agents/Distributors</TITLE></TOPIC> <TOPIC><TITLE>Bank Details</TITLE></TOPIC> </TOPICS> Any help in this matter would be greatly appreciated. |
|
#2
|
|||
|
|||
|
can we possibly rework how you have this all set up? This is a little wierd.
|
|
#3
|
|||
|
|||
|
It would help to know what kind of language you use / intend to use to query your xml-files.
For example, I use XSL to transform (query) my XML-files, through an ASP-application. The ASP-page picks up the needed parameters from the url, loads an xml-file and an the xsl-stylesheet, and in doing so it passes on the parameters needed for the stylesheet to find the right elements in the xml-file. It's really simple - but, I'm not sure this is what you had in mind. bente |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Selecting Records with ASP/XML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|