[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

parsing the attributes

  • From: Sung_Nguyen@d... (Sung Nguyen)
  • To: xml-dev@i...
  • Date: Wed, 11 Nov 1998 16:06:16 -0600

parsing attributes in xml
     <<<< 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.