[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] libxml2 and default namespaces
- From: Daniel Veillard <veillard redhat com>
- To: Paul Boddie <paul boddie org uk>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 and default namespaces
- Date: Sat, 10 Dec 2005 11:54:06 -0500
On Sat, Dec 10, 2005 at 05:39:42PM +0100, Paul Boddie wrote:
> Hello,
>
> There was recently a thread on comp.lang.python which touched on the issue of
> serialising documents whose root elements have namespaces associated with
> them, but whose qualified names do not include any prefix. So, by defining a
> root element with namespace URI as "DAV:" and qualified name "href", the
> discussion focused on whether the correct serialisation would be this...
>
> <?xml version='1.0'?>
> <href xmlns='DAV:'/>
>
> ...or this...
>
> <?xml version='1.0'?>
> <href/>
in the second case the root element has no namespace. So this can't
match your assertion 'root element with namespace URI as "DAV:"'. Obviously
in the second case the element has no namespace.
I didn't check further, this sounds completely flawed from the start.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]