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

Re: Querying the DOM using XPath

  • From: Francis Norton <francis@r...>
  • Date: Wed, 26 Jan 2000 15:12:38 +0000

xpath getattribute


"Barnowsky, Greg T." wrote:
>    If I am currently parsing through a well-formed and validated XML
> document based on prior knowledge of it's schema using
>    the Microsoft MSXML Component Model API and my favorite prog. language,
> what does the support of XPath provide me?

Xpath support gives you a very much more productive way of navigating
and querying the XML document compared to "pure" DOM, eg the DOM
getAttribute() and getElementsByTagName() methods and the childNodes
property for element / attribute operations; and the DOM normalize()
method and Text interface for text values.

MSXML already had workrounds for these areas, but these were
experimental and used now-outdated proto-standards. The advantage to
using XPath is that you will be using the same powerful and
well-reviewed standard as other useful XML tools such as XSLT or the
Schematron.

> 
>    I am currently processing the XML Document with no intentions to display
> the information.  That is, this processing is
>    oriented to backoffice B2B operations, e.g. mappings, translations,
> auditing, etc. not presentation on a Web Page.
> 
> Maybe I just have missed something in the spec, or am not familiar with the
> quirks of XML to see if XPath for me provides any
> benefit.
> 
XPath is also included in XSLT, but you don't need to be doing XSLT
document transformations to exploit the power of XPath. (In fact I have
found XSLT very useful for B2B work, you may well want to look at it for
your translations.)

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/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.