xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] New XPath issue: what to do with non-nodes?
- From: Nils_Kilden-Pedersen AT Countrywide.Com
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] New XPath issue: what to do with non-nodes?
- Date: Wed, 12 Jan 2005 13:14:07 -0800
xom-interest-bounces AT lists.ibiblio.org wrote on 01/12/2005 12:28:39 PM:
> XOM is limiting the contents of the returned Nodes object to the usual
> XOM node types (Element, Attribute, Comment, Text, Document, etc.). the
> question therefore arise what should I do when an XPath expression
> return something else. In particular, it may return:
>
> Double
> String
> Boolean
> Internal classes such as NamespaceNode and DocumentFragment
>
> In particular, should XOM
>
> 1. Throw an exception?
>
> or
>
> 2. Remove the offending objects from the result list and return a
> potentially empty Nodes object?
I'm wondering if that'll limit the usefulness of an XOM XPath
implementation to be close to zero?
Anyway, what about:
3. Return Double, String, Boolean as Text?
-
[XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Nils_Kilden-Pedersen, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
John Cowan, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Wolfgang Hoschek, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/12/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Wolfgang Hoschek, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/12/2005
-
RE: [XOM-interest] New XPath issue: what to do with non-nodes?,
Michael Kay, 01/13/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Michael Abato, 01/13/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, John Cowan, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Bradley S. Huffman, 01/13/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/13/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Michael Abato, 01/13/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Wolfgang Hoschek, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
John Cowan, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Elliotte Harold, 01/12/2005
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?,
Nils_Kilden-Pedersen, 01/12/2005
Archive powered by MHonArc 2.6.24.