Re: [xml] libxml2 and default namespaces

On Sat, Dec 10, 2005 at 05:39:42PM +0100, Paul Boddie wrote:

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'?>

   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 Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]