This repository was archived by the owner on Apr 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
XInclude processing #126
Copy link
Copy link
Open
Description
Dear authors of pyxb.
I need to process a XML document which is assembled from others by means of XInclude.
LibXML and python seems to handle that, but via PyXB it does not seem to work:
<?xml version="1.0" encoding="UTF-8"?>
<MessageDB xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xxx.de/config/xxx msgdb/xsd/MessageDB.xsd"
xmlns="http://xxx.de/config/xxx"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="MessageDB-Example-lib.xml"/>
<module name="MotivatinExample1">
</module>
</MessageDB>
gives:
File "/home/hcw/work/Deuta/xxx/venv/lib/python3.7/site-packages/pyxb/binding/basis.py", line 2567, in append
raise pyxb.UnrecognizedContentError(self, self.__automatonConfiguration, value, location)
pyxb.exceptions_.UnrecognizedContentError: Invalid content include at <unknown>[7:4] (expect {http://xxx.de/config/xxx}doc or {http://xxx.de/config/xxx}altName or {http://xxx.de/config/xxx}module)
Any hints on this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels