From: Ralf J. <ral...@gm...> - 2010-10-24 19:14:31
|
Hi everyone, how do I specify the dtd used when passing a document to xdb:store? I am parsing a large XML file and splitting it into small files (one for each item), and I use xdb:store to store those items into the collection. This worked fine as long as validation was disabled, but that is no longer the case (see https://sourceforge.net/tracker/?func=detail&aid=3086546&group_id=17691&atid=117691 for why I need it enabled). Now it complains that it can not find any declaration for the root element of what it is storing. Of course that element is declared in one of the dtds, since the whole document was validated during import. I get the same error when I edit a file using the Java client, where I can fix it by re-adding the <!DOCTYPE>-line before saving (it looks like the information which dtd the document used is not stored?). Is there any equivalent in XQuery, to be able to store those extracted nodes? I don't really want to turn validation on to get the files into the database and then off again to process them... ;-) Any help would be appreciated, Ralf Jung |