1
我想知道如何让pyxb将模式位置添加到生成的xml中,例如。PyXB添加架构位置
<ns1:myDocument xmlns:ns1="http://www.mydomain.com/path"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mydomain.com/path myschema.xsd">
在JAXB我会做到这一点与
jaxbMarshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,
"http://www.mydomain.com/path myschema.xsd");
任何想法如何做到这一点与pyxb?
非常感谢