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: Ed Davies <edavies AT nildram.co.uk>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] element.getNamespaceURI("");
  • Date: Thu, 05 Oct 2006 17:53:04 +0100

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.

Elliotte Harold replied:
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.

It's not really relevant here by such strings are sometimes valid
QNames in the RDF world. E.g.,

http://www.dajobe.org/2004/01/turtle/#qname

That might at least give some hints on sensible interpretations.

Ed.






Archive powered by MHonArc 2.6.24.

Top of Page