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

How to get field values and attribute values for a xml document using EX

  • From: Srinivasan_KS <Srinivasan_KS@i...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Sat, 14 Aug 1999 16:28:39 +0530

xml get attribute value
            Hi,
	We have xml file like produced below.

	<MI_LINE MI_PROD_DESC_LIVE="0" MI_PROD_DESC_REMOVED="0">
               <MI_PROD_DESC_HEAD COLOR="0" SIZE="4" ALIGN="0" STYLE="0">
                  <MI_PROD_DESC_HD>
                     <MI_TEXT>&amp;#149</MI_TEXT>
                  </MI_PROD_DESC_HD>
               </MI_PROD_DESC_HEAD>
               <MI_PROD_DESC_TEXT COLOR="0" SIZE="4" ALIGN="0" STYLE="0">
                  <MI_PROD_DESC_TXT>
                     <MI_FUNC_CONCAT>
                        <MI_TEXT>Format:</MI_TEXT>
 
<MI_EDI_REF_NAME>mi_edi_ref_name_format</MI_EDI_REF_NAME>
                     </MI_FUNC_CONCAT>
                  </MI_PROD_DESC_TXT>
               </MI_PROD_DESC_TEXT>
            </MI_LINE>
And we need a kind of output as below. Please note that in some places we
need the tag itself and
some other places we need the text kept between the tags.

MI_PROD_DESC_LIVE="0" 
MI_PROD_DESC_REMOVED="0"
MI_PROD_DESC_HEAD COLOR="0"	
SIZE="4" 
ALIGN="0" 
STYLE="0"
&amp;#149
MI_PROD_DESC_TEXT COLOR="0"
SIZE="4" 
ALIGN="0" 
STYLE="0"
Format:
mi_edi_ref_name_format

We are using EXPAT for doing this.Can any body tell which APIs we have to
call and the way it should be called to
achieve the result.



Regards,
Srini


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/ and on CD-ROM/ISBN 981-02-3594-1
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.