OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   parsing the attributes

[ Lists Home | Date Index | Thread Index ]
  • From: Sung_Nguyen@datacard.com (Sung Nguyen)
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 11 Nov 1998 16:06:16 -0600

     <<<< 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@datacard.com
     
     
     --------------------------------------------------------------------
     
     <?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@ic.ac.uk 
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message; 
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message; 
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
     

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS