walterfrankedr / ifc-dotnet

Automatically exported from code.google.com/p/ifc-dotnet
0 stars 0 forks source link

handling alternative namespace in ifcxml #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some CAD programs (like ArchieCad) that export to ifcxml, don't use the 
namespace 
xmlns:ex="urn:iso.org:standard:10303:part(28):version(2):xmlschema:common"

Instead there is:

- xmlns:ex="urn:iso10303-28:ex"
or
- xmlns:doc="urn:oid:1.0.10303.28.2.1.3".

When deserializing those files you get error:
System.InvalidOperationException : There is an error in XML document (2, 2).
  ----> System.InvalidOperationException : <iso_10303_28 xmlns='urn:iso10303-28:ex'> was not expected.

If I change namespace in the file manually deserialization works fine.

Probably Ifc-DotNet lib should handle those files also.

Original issue reported on code.google.com by marjan....@gmail.com on 17 Aug 2011 at 9:24

GoogleCodeExporter commented 8 years ago
Sorry for many posts of the same issuse. Goggle reported error when submiting 
the post, but it seems that there was no error and article was accepted :(

Original comment by marjan....@gmail.com on 17 Aug 2011 at 9:32

GoogleCodeExporter commented 8 years ago

Original comment by iainsproat on 25 May 2012 at 4:13