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!

Processing XML

Status
Not open for further replies.

Endbringer

Technical User
Jan 18, 2002
28
US
I'm still a newbie when it comes to XML, but I'm learning fast.
I've got an XML file that I need to do two things with:

1. I need to display a table that contains only data from the cabinets that have content equal to City Projects.

2. I need to be able to have a user search the XML through an <input> tag or similar and return only the projects with the name that is inputed.

Here's part of my XML:

<archive name=&quot;Engineering's Archive&quot;>
<cabinet type=&quot;hanging&quot; content=&quot;City Projects&quot; number=&quot;1&quot;>
<project type=&quot;Profiles&quot;>
<name>Ashley Street</name>
<year/>
<pages>3</pages>
</project>
<project type=&quot;Const&quot;>
<name>Baxter Street</name>
<year>1993</year>
<pages>12</pages>
</project>
<project type=&quot;Const&quot;>
<name>Baxter Street</name>
<year>1997</year>
<pages>12</pages>
</project>
</cabinet>
</archive>

I have had no problem displaying all of the cabinets, but what I would like to do is create a link for each of the cabinet types and it diplay only those projects inside the specified cabinet. This might be too complicated a thing for just XML to do, but I am trying to test out XML and see what all it can do.


Thanks,
Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top