OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standard API for XPath Expression

My two cents: A recursive loop that imitates selectNodes (ignoring some of
the corner cases) is not that hard to build. You can use loop limits and
recursion limits if you're not comfortable with recursion.

Looking at the Microsoft extensions, most seem to me to be the sort of thing
that one could build for oneself in a few minutes to a few hours, if one
really wanted them. I found I couldn't use the few I really wanted, because
when I tried to convert a node with a type of element to an element I kept
getting address exceptions. Anybody here have an idea what I was doing

============================XML as Best Solution===
Joel Rees                          リース ジョエル
Media Fusion Co.,Ltd.  株式会社メディアフュージョン
Amagasaki  TEL 81-6-6415-2560    FAX 81-6-6415-2556
    Tokyo TEL 81-3-3516-2566   FAX 81-3-3516-2567

----- Original Message -----
Said Michael Champion" <mike.champion@softwareag-usa.com>
To: <xml-dev@lists.xml.org>
Sent: Tuesday, May 15, 2001 9:46 PM
Subject: Re: Standard API for XPath Expression

> ----- Original Message -----
> From: "GUSTIN Jean-Marc" <jean-marc.gustin@swift.com>
> To: <xml-dev@lists.xml.org>
> Sent: Tuesday, May 15, 2001 3:34 AM
> Subject: Standard API for XPath Expression
> > Is there some Standard API (DOM, JAXP...) equivalent to Microsoft
> > selectNodes or selectSingleNodes that query a DOM using an XPATH
> > expression?
> This will probably be in DOM Level 3.
> The challenge has been to bridge the XPath data model and the DOM data
> (selectNodes() more or less ignores a number of ugly corner cases having
> do with Text nodes, CDATA sections, namespaces, the liveness of the result
> list, etc.)