Re: [xml] namespace xmllint error (libxml 2.5.11)
- From: Daniel Veillard <veillard redhat com>
- To: Morus Walter <morus walter tanto-xipolis de>
- Cc: xml gnome org
- Subject: Re: [xml] namespace xmllint error (libxml 2.5.11)
- Date: Mon, 6 Oct 2003 04:42:06 -0400
On Mon, Oct 06, 2003 at 08:31:39AM +0200, Morus Walter wrote:
Patrick Gundlach writes:
[sample of xml document with namespace and dtd]
Doing the same thing with libxml2 version 2.4.7 (linux) works fine.
That's surprising. Are you sure?
Probably you used http://levana.de/foons as the default namespace.
No, actually libxml2 was broken w.r.t. namespace processing
when doing validation. This has been fixed since and the error
is now reported.
I am using MacOS X 10.2.6. Same error happened libxml2 2.5.4
installed via "fink", a package manager for OS X. I could not find
anything in the archive/google.
What am I doing wrong?
DTD validation does not work with documents using namespaces.
Well it does work but DTD is not "namespace aware", and libxml2
wasn't conformant about that.
Patrick, if your XML instance uses a namespace then the namespace prefix
must be shown in the DTD too.
Use relaxNG (or the subset of XML schema libxml supports) or
add the prefixes (and namespace attributes) to your dtd
right, fixing the DTD is the simplest thing to do.
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]