[xsd-users] ifc xml
giuseppe ferrari
giuseppe500 at yahoo.it
Tue Feb 1 10:24:30 EST 2011
final problem, the namespace.
I saw the multiroot example for load an xml in a dom xml model , and the
parseWithContext.
but i'm not understand how replace a namespace with another .
In my case had :
xml input 1 , it don't work
<uos id="uos_1" description="" configuration="i-ifc2x3" edo=""
xmlns="urn:iso.org:standard:10303:part(28):version(2):xmlschema:common"
xmlns:ex="urn:iso.org:standard:10303:part(28):version(2):xmlschema:common"
xsi:schemaLocation="http://www.iai-tech.org/ifcXML/IFC2x3/FINAL IFC2X3.xsd">
xml input 2 it work fine
xmlns="http://www.iai-tech.org/ifcXML/IFC2x3/FINAL"
xmlns:ifc="http://www.iai-tech.org/ifcXML/IFC2x3/FINAL"
xmlns:ex="urn:iso.org:standard:10303:part(28):version(2):xmlschema:common"
xsi:schemaLocation="http://www.iai-tech.org/ifcXML/IFC2x3/FINAL IFC2X3.xsd">
i must replace xmlns to "http://www.iai-tech.org/ifcXML/IFC2x3/FINAL"
and add
xmlns:ifc="http://www.iai-tech.org/ifcXML/IFC2x3/FINAL"
is possible do a replace a namespace with the parseWithContext?
so i add the xmlns:ifc and replace the
xmlns="urn:iso.org:standard:10303:part(28):version(2):xmlschema:common"
with "http://www.iai-tech.org/ifcXML/IFC2x3/FINAL"
thanks again.
More information about the xsd-users
mailing list