[Ocaml-pxp-users] validation with an external DTD

Stefano Zacchiroli zack at debian.org
Fri Jun 27 03:30:53 PDT 2003


Hi PXPers,
  I would like to load an XML document using the validating mode of PXP,
but I want to specify an external DTD which is not the one referenced by
the XML document.

This is quite easy using the "transform_dtd" optional argument of
"parse_document_entity". Anyway this still require that the parsed
document begins with a <!DOCTYPE....>.

Is it possible to validate documents with no DOCTYPE declaration against
an external DTD?

I've also thought about parsing in well formedness mode only and then
validate against a DTD but I've found no way to change the DTD of a
document object ...

TIA,
Cheers.

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney



More information about the Ocaml-pxp-users mailing list