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: "Michael Kay" <mike AT saxonica.com>
  • To: "'Steve Loughran'" <steve.loughran AT gmail.com>, "'xom-interest'" <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] element.getNamespaceURI("");
  • Date: Thu, 5 Oct 2006 15:26:39 +0100

Neither ":LocalName" nor ":" is a legal QName.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
> [mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
> Steve Loughran
> Sent: 05 October 2006 15:10
> To: xom-interest
> Subject: [XOM-interest] element.getNamespaceURI("");
>
> 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 mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest





Archive powered by MHonArc 2.6.24.

Top of Page