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

Re: find with XPath over file system

  • To: Eric van der Vlist <vdv@d...>
  • Subject: Re: find with XPath over file system
  • From: Oleg Paraschenko <usenet@d...>
  • Date: Tue, 1 Feb 2005 15:26:52 +0300
  • Cc: xml-dev@l...
  • In-reply-to: <1106933391.32308.23.camel@delleric>
  • Organization: DataHansa Software
  • References: <20050126170320.08eff83f.usenet@d...><1106933391.32308.23.camel@delleric>

xpath filesystem
  Hi Eric,

On Fri, 28 Jan 2005 18:29:51 +0100
Eric van der Vlist <vdv@d...> wrote:

> Hi Oleg,
> 
> ...
> 
> I like the way you've preferred to match the /bin directory on the
> /bin XPath instead of using some kind of /directory[@name="bin"]
> convention...

  Many XPath tutorials say that "the basic XPath syntax is similar to
filesystem addressing." I decided it was good to keep the analogue.

> 
> However, I am wondering how you deal with filenames that are no valid
> XML names (or that contain colons)...
> 
> Can you elaborate on that point?

  The underlying library allows to have anything as XML name, so there
are no problems with the virtual XML tree. More, the name of a file is
duplicated in the "name" attribute, so you can put a test for name into
a predicate: /*[@name='lost+found'].

> 
> Thanks,
> 
> Eric
> 



-- 
Oleg 

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.