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

Re: Should we include the XML prolog in the XPath datamodel, o

  • From: COUTHURES Alain <alain.couthures@a...>
  • To: Mukul Gandhi <gandhi.mukul@g...>
  • Date: Sat, 20 Sep 2008 15:49:12 +0200

Re:  Should we include the XML prolog in the XPath datamodel
Hello,

From my point of view, the prolog is just useful for parsing :
  • version="1.0" : just in case another version would exist in the future (multiple roots, multiple relationships,...)
  • encoding="..." : so the parser can interpret correctly and convert the following characters !
DOM is just concerned by the document in memory where just one encoding is used (UTF-32 for example).

XPath expressions are written as strings which could use a different encoding...

The result tree of DOM API calls or of XSL transformations is usually saved or transfered : another encoding is necessary so the prolog has to be written when serializing.

Alain COUTHURES
<agenceXML>
http://www.agencexml.com
Bordeaux, France

Mukul Gandhi a écrit :
7870f82e0809200524j372de030o9346bf7789124ec4@m..." type="cite">
Hi all,
   I wrote the following blog post. This is perhaps a weird thought,
for people having worked with XML for long.

http://mukulgandhi.blogspot.com/2008/09/should-we-include-version10-in-xpath.html

This is a short description of the points I have in mind.

Could you please let us know, if my logic have any merit.

  



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.