xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Steve Loughran" <steve.loughran AT gmail.com>
- To: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] element.getNamespaceURI("");
- Date: Thu, 5 Oct 2006 15:10:04 +0100
I'm trying to resolve Qnames, and a fun one is when the body of a
message is something like
<something>:Localname</something>
that is, there is no namespace prefix. I'm not entirely sure that is
legitimat, but QNames are silly as it is, I dont want to overturn the
whole of the XSD type system just yet.
Assuming it is legal, and I have code to extract everything before the
prefix, will element.getNamespaceURI("") return something sensible, or
should I treat the :localonly qname as a special case?
what do other people who handle incoming QNames do with such corner
cases as this, or, my favourite ":"?
-
[XOM-interest] element.getNamespaceURI("");,
Steve Loughran, 10/05/2006
- Re: [XOM-interest] element.getNamespaceURI("");, Michael Kay, 10/05/2006
-
Re: [XOM-interest] element.getNamespaceURI("");,
Elliotte Harold, 10/05/2006
-
Re: [XOM-interest] element.getNamespaceURI("");,
Ed Davies, 10/05/2006
- Re: [XOM-interest] element.getNamespaceURI("");, Elliotte Harold, 10/05/2006
-
Re: [XOM-interest] element.getNamespaceURI("");,
Ed Davies, 10/05/2006
Archive powered by MHonArc 2.6.24.