[lxml-dev] getting back RelaxNG tree
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Thu Nov 16 18:20:33 CET 2006
Hi,
Eric Scheidemantle wrote:
> I'd like to use a set of RelaxNG documents to construct a validation
> API. The documents will be modular and combined using the externalRef
> and include tags. I will need a way to access the merged files as if
> they were one Russian-Doll style file.
>
> Is there any access to the libxml function xmlRelaxNGDumpTree which I
> assume may do something like this, but to a file?
I did some testing and found that xmlRelaxNGDumpTree does not give you access
to the complete structure. It only returns the normal RNG document that was
parsed, not a merged one. Includes seem to be resolved at validation time, so
there is no gain in adding to the API here.
Stefan
More information about the lxml-dev
mailing list