[xsd-users] ifc xml

giuseppe ferrari giuseppe500 at yahoo.it
Tue Jan 25 12:13:25 EST 2011






________________________________
Da: giuseppe ferrari <giuseppe500 at yahoo.it>
A: Boris Kolpackov <boris at codesynthesis.com>
Inviato: Mar 25 gennaio 2011, 18:12:41
Oggetto: Re: [xsd-users] ifc xml


for now, I do not know how to thank you, you're very helpful.
Tomorrow I do the test because it takes me 3 hours to compile.
again thanks, and sorry if they are petulant....




________________________________
Da: Boris Kolpackov <boris at codesynthesis.com>
A: giuseppe ferrari <giuseppe500 at yahoo.it>
Cc: xsd-users at codesynthesis.com
Inviato: Mar 25 gennaio 2011, 17:22:57
Oggetto: Re: [xsd-users] ifc xml

Hi Giuseppe,

giuseppe ferrari <giuseppe500 at yahoo.it> writes:

> IS possible that i do a mistake in the creations of c++ files with xsd?

I tried to build your test driver and used the following options to
compile the schema:

--generate-serialization
--file-per-type
--generate-polymorphic
--namespace-map 
urn:iso.org:standard:10303:part(28):version(2):xmlschema:common=ex
--namespace-map http://www.iai-tech.org/ifcXML/IFC2x3/FINAL=ifc

--root-element iso_10303_28

--polymorphic-type uos
--polymorphic-type Entity

When I tried to run the test, I got a parsing error like this:

expected element 'http://www.iai-tech.org/ifcXML/IFC2x3/FINAL#Name'

The reason for this error is the use of the nillable attributes in
the schema. XSD does not yet support this feature so when it sees
an element like this in the XML document:

<IfcOrganization xsi:nil="true" ref="i1556"/>

It expects to find the required content of this element (like child
element 'Name').

Can you try the above options and see if you get the same error?
In the meantime, I will think of any workarounds for this problem
(I can't think of anything good right now).

Boris


      


More information about the xsd-users mailing list