logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: namespaces, HTML parser: msg#00163

Subject: Re: namespaces, HTML parser
On Mon, Feb 24, 2003 at 05:18:40PM -0500, Michael Rothwell wrote:
> Is there a way to use namespaces with the HTML parser? In other words, 
> parse the kind of text I have below, and preserve the "ns:"?
> 
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
> <ns:tag>text</ns:tag>
> </body>
> </html>

  No, if there are namespaces declarations, that mean it's intended to
carry the namespace semantic and hence requires be well-formed, for that
you must use the XML parser.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


<Prev in Thread] Current Thread [Next in Thread>