Re: [xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-02-02 Thread Eric S. Eberhard
One thing you can do is make some of these arguable changes set by runtime flags. I do so much code with little tiny companies sending in orders ... and ALWAYS messing up the capitalization ... and being unable to deal with namespaces and validation (often they make a spread sheet and output a

Re: [xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-01-26 Thread Daniel Veillard
On Sat, Jan 07, 2012 at 06:54:22PM +0100, Michael Ludwig wrote: > Thomas Gagne schrieb am 06.01.2012 um 11:47 (-0500): > > I'm unclear how I can reformat the file > > > >tgagne@ubuntu:~/tmp$ cat a.xml > > > > > > > > without getting the errors > > > >tgagne@ubuntu:~/tmp$ xmllint

Re: [xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-01-07 Thread Michael Ludwig
Michael Ludwig schrieb am 07.01.2012 um 18:54 (+0100): > You'd need a parser configuration that has namespaces switched off. > That should be available as "xmllint --sax1" (the old SAX 1 didn't > know about namespaces), but even then xmllint emits the warning and > drops the part before the colon,

Re: [xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-01-07 Thread Liam R E Quin
On Fri, 2012-01-06 at 11:47 -0500, Thomas Gagne wrote: > I'm unclear how I can reformat the file > > tgagne@ubuntu:~/tmp$ cat a.xml > > > > without getting the errors First fix the namespace error in your document. If that's not possible, and you want to retain the undeclared pref

Re: [xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-01-07 Thread Michael Ludwig
Thomas Gagne schrieb am 06.01.2012 um 11:47 (-0500): > I'm unclear how I can reformat the file > >tgagne@ubuntu:~/tmp$ cat a.xml > > > > without getting the errors > >tgagne@ubuntu:~/tmp$ xmllint --format --recover a.xml >a.xml:1: namespace error : Namespace prefix ns on a is

[xml] Is ignoring namespace and DTDs an xmllint or libxml2 problem?

2012-01-07 Thread Thomas Gagne
I'm unclear how I can reformat the file tgagne@ubuntu:~/tmp$ cat a.xml without getting the errors tgagne@ubuntu:~/tmp$ xmllint --format --recover a.xml a.xml:1: namespace error : Namespace prefix ns on a is not defined ^ Is it a problem with xmllint or libxml2? __