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?
非常感謝