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: "Bradley S. Huffman" <hip AT cs.okstate.edu>
- To: Elliotte Harold <elharo AT metalab.unc.edu>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] New XPath issue: what to do with non-nodes?
- Date: Wed, 12 Jan 2005 15:41:48 -0600
Elliotte Harold writes:
> 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?
Yes. If the result contains anything other than nu.xom.Node/s then either
the query is incorrect or the user doesn't realize the methods are limited
and didn't take that into account. Throw an exception.
Brad
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?
, (continued)
- 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?, Wolfgang Hoschek, 01/13/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?, Wolfgang Hoschek, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Bradley S. Huffman, 01/17/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?, Michael Kay, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Elliotte Harold, 01/13/2005
Archive powered by MHonArc 2.6.24.