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

Re: [xml] 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 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]