[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] parsing the attributes
<<<< Sorry about the previous post to the "ID attribute defaults" thread >> Hi Gurus: In the following XML file - What should I do to parse all attributes of the element PREVIEW-SMALL ? I would like to print out something like this: PREVIEW-SMALL ELEMENT has 3 ATTRIBUTES: SRC="images/burl-s.jpg" WIDTH="300" HEIGHT="194" ALT="Vase and Stones" Thanks you for any helps SeanNg sung_nguyen@d... -------------------------------------------------------------------- <?xml version="1.0"?> <AUCTIONBLOCK> <ITEM> <TITLE>Vase and Stones</TITLE> <ARTIST>Linda Mann</ARTIST> <DIMENSIONS>20x30 inches</DIMENSIONS> <MATERIALS>Oil</MATERIALS> <YEAR>1996</YEAR> <DESCRIPTION/> <PREVIEW-SMALL SRC="images/burl-s.jpg" WIDTH="300" HEIGHT="194" ALT="Vase and Stones"><!--The small image--></PREVIEW-SMALL> <PREVIEW-LARGE SRC="images/burl.jpg" WIDTH="640" HEIGHT="413" ALT="Vase and Stones"/> <BIDS> <BID> <PRICE>3300</PRICE> <TIME>9:19:32 AM</TIME> <BIDDER>John</BIDDER> <TIMESTAMP>1315</TIMESTAMP> </BID> <BID> <PRICE>3200</PRICE> <TIME>8:18:31 AM</TIME> <BIDDER>Andrew</BIDDER> <TIMESTAMP>1308</TIMESTAMP> </BID> <BID> <PRICE>3100</PRICE> <TIME>2:48:08 PM</TIME> <BIDDER>Chris</BIDDER> <TIMESTAMP>1307</TIMESTAMP> </BID> <BID> <PRICE>3000</PRICE> <TIME>2:47:58 PM</TIME> <BIDDER>opening price</BIDDER> <TIMESTAMP>1298</TIMESTAMP> </BID> </BIDS> <MTIME> <TIMESTAMP>1315</TIMESTAMP> This is an example of mixed content </MTIME> </ITEM> </AUCTIONBLOCK> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...) xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|