Re: [xml] external DTD validation of large XML's

2011-07-10 Thread Liam R E Quin
[...] If the above are correct, what do you suggest to people who want to use libxml2 to validate large XMLs with external DTD files? Re-write the input XML file? Pretty much yeah. It's not so bad, just a tiny DOCTYPE refering to the DTD. In many cases you don't even need that. Write

Re: [xml] external DTD validation of large XML's

2011-07-10 Thread Jon
XMLStarlet does this too, maybe it will be useful for you: http://xmlstar.git.sourceforge.net/git/gitweb.cgi?p=xmlstar/xmlstar;a=blob;f=src/xml_validate.c;hb=HEAD Thank you for this link and taking the time to give helpful answers to jumpstart my libxml2 knowledge. I'll check how you validate

Re: [xml] external DTD validation of large XML's

2011-07-10 Thread Jon
If the above are correct, what do you suggest to people who want to use libxml2 to validate large XMLs with external DTD files? Re-write the input XML file? Pretty much yeah. It's not so bad, just a tiny DOCTYPE refering to the DTD. In many cases you don't even need that. Write

Re: [xml] external DTD validation of large XML's

2011-07-10 Thread Noam Postavsky
Jon jon.for...@gmail.com writes: In many cases you don't even need that. Write a shell XML file, !DOCTYPE wrapper SYSTEM the-dtd-file.dtd [ !ELEMENT wrapper the-real-root-element !ENTITY the-real-document SYSTEM bigfile.xml ] wrapperthe-real-document;/wrapper Will the libxml2

Re: [xml] external DTD validation of large XML's

2011-07-10 Thread Daniel Veillard
On Sun, Jul 10, 2011 at 06:26:58PM -0400, Noam Postavsky wrote: Jon jon.for...@gmail.com writes: In many cases you don't even need that. Write a shell XML file, !DOCTYPE wrapper SYSTEM the-dtd-file.dtd [ !ELEMENT wrapper the-real-root-element !ENTITY the-real-document SYSTEM