[...] > > 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 a shell XML file, <!DOCTYPE wrapper SYSTEM "the-dtd-file.dtd" [ <!ELEMENT wrapper the-real-root-element> <!ENTITY the-real-document SYSTEM "bigfile.xml"> ]> <wrapper>&the-real-document;</wrapper> and then validate that wrapper file. This assumes the large file has a root (outermost) element of <the-real-root-element>.....</the-real-root-element> Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org www.advogato.org _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml