Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] element.getNamespaceURI("");

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] element.getNamespaceURI("");
  • Date: Thu, 05 Oct 2006 10:36:36 -0400

Steve Loughran wrote:
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.


That's not a legal QName. It is namespace well-formed XML because :Localname is not a name, but there's no way the string :Localname can be treated as a QName.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page