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
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
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,
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
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
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?
__