parse against different DTDs?
Hi!
I'm having a tough time finding where I can use commands to replicate the ticky-box behavior of the GUI to say "use the Java parser" and "parse against the DTD".
What I want to be able to do is parse a given document against three different DTDs, validating it each time. It needs to parse against the specific DTD because these DTDs have fixed attributes, and if I don't parse the documents on load, the fixed attribute won't be there and validation will fail.
Thanks! Graydon
Hi Graydon,
if you activate the Info View in the GUI, you will see which commands are used to set the options and run the operations. In your case, INTPARSE and DTD are the appropriate options to set [1].
Best, Christian
Quoted text · Graydon Saunders · 21 lines
On Mon, Apr 29, 2013 at 7:21 PM, Graydon Saunders <graydonish at gmail.com> wrote: > Hi! > > I'm having a tough time finding where I can use commands to replicate the > ticky-box behavior of the GUI to say "use the Java parser" and "parse > against the DTD". > > What I want to be able to do is parse a given document against three > different DTDs, validating it each time. It needs to parse against the > specific DTD because these DTDs have fixed attributes, and if I don't parse > the documents on load, the fixed attribute won't be there and validation > will fail. > > Thanks! > Graydon > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.