16 Nov 2006 16 Nov '06
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.