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!

Manipulating XML data.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
K, here's the deal. How do I access parts of an XML file. Where can I go for more info on working with XML files? Here's my XML file:

<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?>
<filmTypes>
<Type>
<FilmName>WED LR 120/220 6x6 (SBA)</FilmName>
<Crops>
<Crop>A</Crop>
<Crop>B</Crop>
<Crop>C</Crop>
<Crop>D</Crop>
<Crop>E</Crop>
<Crop>F</Crop>
<Crop>G</Crop>
</Crops>
<Prints>
<Print>
<PrintName>Wal</PrintName>
</Print>
<Print>
<PrintName>4x5</PrintName>
</Print>
<Print>
<PrintName>5x5</PrintName>
</Print>
<Print>
<PrintName>5x7</PrintName>
</Print>
<Print>
<PrintName>8x8</PrintName>
</Print>
<Print>
<PrintName>8x10</PrintName>
</Print>
<Print>
<PrintName>10x10</PrintName>
</Print>
<Print>
<PrintName>11x14</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
<Print>
<PrintName>16x20</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
<Print>
<PrintName>20x24</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
</Prints>
</Type>
<Type>
<FilmName>WED LR 120/220 6x7 (SBA)</FilmName>
<Crops>
<Crop>A</Crop>
<Crop>B</Crop>
<Crop>C</Crop>
<Crop>D</Crop>
<Crop>E</Crop>
<Crop>SB</Crop>
<Crop>SC</Crop>
<Crop>SD</Crop>
<Crop>SE</Crop>
</Crops>
<Prints>
<Print>
<PrintName>Wal</PrintName>
</Print>
<Print>
<PrintName>4x5</PrintName>
</Print>
<Print>
<PrintName>5x7</PrintName>
</Print>
<Print>
<PrintName>8x10</PrintName>
</Print>
<Print>
<PrintName>11x14</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
<Print>
<PrintName>16x20</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
<Print>
<PrintName>20x24</PrintName>
<Mount>Art Board</Mount>
<Mount>Canvas</Mount>
</Print>
</Prints>
</Type>
</filmTypes>
 
What exactly do you want to do with it?

(what &quot;parts&quot; are you trying to access, and what do you want to do with those parts?)

Jack
 
Well, Actually, I would like to do a Listbox using the Crop information, and a table based on the Prints information.

For instance, the Classic ASP page I have for this (no XML, filmtypes hardcoded in) looks like this:

<p><select size=&quot;4&quot; name=&quot;D1&quot;>
<% if scanSetup = &quot;WED LR 35mm (SBA)&quot; then %>
<option>No Crops for 35mm</option>
<% else %>
<option selected>None</option>
<optgroup label=&quot;Crop&quot;>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
<% if scanSetup = &quot;WED LR 120/220 6x7 (SBA)&quot; then %>
<option>F</option>
<option>G</option>
<% end if
if scanSetup = &quot;WED LR 120/220 6x6 (SBA)&quot; then %>
<option>SB</option>
<option>SC</option>
<option>SD</option>
<option>SE</option>
<% end if
end if %>
</select>
</p>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top