Endbringer
Technical User
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="Engineering's Archive">
<cabinet type="hanging" content="City Projects" number="1">
<project type="Profiles">
<name>Ashley Street</name>
<year/>
<pages>3</pages>
</project>
<project type="Const">
<name>Baxter Street</name>
<year>1993</year>
<pages>12</pages>
</project>
<project type="Const">
<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
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="Engineering's Archive">
<cabinet type="hanging" content="City Projects" number="1">
<project type="Profiles">
<name>Ashley Street</name>
<year/>
<pages>3</pages>
</project>
<project type="Const">
<name>Baxter Street</name>
<year>1993</year>
<pages>12</pages>
</project>
<project type="Const">
<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