Re: [xml] Is this normal behavior when adding a namespace?



On Fri, May 13, 2005 at 11:42:44AM -0700, Abraham Nelson wrote:
Later I output this tree with htmlDocDumpMemory(), but
I've noticed that elements such as 'br' and 'hr' get
output as '<br></br>' and '<hr></hr>'. This does not
happen if the namespace is not added.

 XML namespaces don't exist in SGML' HTML. If a node has a namespace
then it has to be an XML fragment and the XML serializer is used.
Perfectly normal.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team 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]