parse against different DTDs?
Monday, 29 April 2013 · 2 messages · last reply 30 Apr 2013
GS
Graydon Saunders29 Apr 2013 21:21 #
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
CG
Christian Grün30 Apr 2013 09:59 #
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
[1] http://docs.basex.org/wiki/Options#XML_ParsingQuoted 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.
⚡Generated with XQuery