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

Re: To namespace or not to Namespace ....

  • From: Michael Ludwig <milu71@gmx.de>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 7 Apr 2010 20:35:41 +0200

Re:  To namespace or not to Namespace ....
Hi Liam,

Liam R E Quin schrieb am 07.04.2010 um 13:28:32 (-0400):
> On Wed, 2010-04-07 at 16:13 +0100, Andrew Welch wrote:
> 
> > Unprefixed namespaced xml can be a pain, but prefixed xml is no
> > problem at all.
> 
> I think this very much depends on the environment. Every week I get
> asked, for example, how to match namespaced nodes in XPath 1.0 from
> PHP; the best answer there usually turns out to be things like
>     /*[name() = 'document']/*[name() = 'chapter']/*[name() = 'title']
> (the xPath implementation most widely used with php doesn't seem to
> have a local-name() function).

Next time you can point them to XML::LibXML, which is the standard XML
extension for PHP and works just fine.

http://de.php.net/dom
http://de.php.net/xsl

Regarding your example, in particular:

http://de.php.net/manual/en/class.domxpath.php

> Pretty much every day I encounter people banging their heads against a
> wall (or a sturdy person) asking why their XPath xpressions don't
> match; I also occasionally hear from people who abandonded XML
> processing and moved to using JSON or some other technology, or who
> abandoned XPath or XSLT or XQuery, and went back to using Java and the
> DOM API, because they couldn't figure it out.

Okay, but honestly, don't worry: Some of those people will abandon other
productivity stuff for similar reasons, and find other walls to bang
their head against, and pretty much everywhere :-)

-- 
Michael Ludwig


[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.