[...]
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
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
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
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
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