-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XInclude processing #207
Comments
I need to read more on this but it looks interesting, can you share the original schema as well? Maybe that's easier to integrate than it looks... |
The actual schema is not important. Read http://www.w3.org/2001/XInclude , thats not a long standard, and realizes by some xml parsers already. |
The XmlParser is using the lxml.etree.iterparse
Do you know if the lxml xinclude is supported with iterparse? |
Dunno. Maybe just try to do like this (from the lxml link)
|
Yeah I don't want to switch from iterparse to parse for performance reasons, but let me check if there is a workaround... |
@tefra The diff looks great! I will give it a try after my vacation. Thanks for fixing! |
Dear authors of xsdata.
I need to process a XML document which is assembled from others by means of XInclude
(http://www.w3.org/2001/XInclude).
LibXML and python seems to handle that, but via xsdata it does not work with this.
Maybe it is sufficient to follow one of:
https://lxml.de/1.3/api.html#xinclude-and-elementinclude
or
http://effbot.org/zone/element-xinclude.htm
?
Maybe it would be good to have that as a ParserConfig option?
The text was updated successfully, but these errors were encountered: