[lxml-dev] getting back RelaxNG tree

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Thu Nov 16 08:55:24 CET 2006


Eric Scheidemantle wrote:
>>Oh, and: I assume building an ElementTree from the internal RelaxNG
> schema is
>>not a good idea, as it could interfere too much with the validation.
> Copying
>>them first /might/ work, though.
> 
> If the RelaxNG class returns a merged XML string, then that could be
> passed into the ElementTree parse method for navigation. That seems like
> an elegant solution.

Especially since we are dealing with a rare case here. Most people use RNG
just for validation and are not that interested in the actual XML tree
representation that the schema is parsed into.

Any chance you can come up with a patch?

Stefan


More information about the lxml-dev mailing list