Hi,
has anybody a nice example of XAttributes?
It is stated that the old XML API is deprecated and a could not find any example of the usage of the new API.
Regards, Stefan.
Unknown said:It is stated that the old XML API is deprecated
Where is that statement? What date?
There was a .NET API that became deprecated and replaced by the MicroStationAPI C++ XmlInstance. Is it that to which you refer?
The separate XmlInstance documentation was removed. The MicroStationAPI help document includes the XmlInstance help.
Regards, Jon Summers LA Solutions
Unknown said: Where is that statement? What date?
FWIW, there is reference to that in the MicroStation SDK ReadMe...
Unknown said:The XMLInstance examples have been deprecated
Does that refer to the .NET examples? There's a C++ example XmlInstance that dates mostly from 2010 and provides test data...
03/06/2010 08:20 26,434 AdventureWorks.02.00.ecschema.xml14/04/2010 07:51 247,808 AdventureWorksTest_Sample.i.dgn14/04/2010 07:51 2,154 Contact.xml14/04/2010 07:51 957,183 Order.xml14/04/2010 07:51 12,676 OrderContact.xml
Jon,
I installed the latest (mssdk081109460en.exe) sdk and the example you mentioned was not delivered.
Unfortunatley I am not able to install any older sdk (e.g. mssdk081109357en.exe) after that, so I guess I wont be able to find your example.
Unknown said:I installed the latest (mssdk081109460en.exe) sdk and the example you mentioned was not delivered
Perhaps that example was provided at the 2012 DevCon in Amsterdam. Somewhere on this site at the files for that DevCon, probably in the BDN section. You may be able to find it there.
Searching back over old SDK's, I see that example in SelectSeries 3 (09.209) and it is a .NET example, which is not currently delivered.
Maybe look at the imodelVisitor example. It;s a little overwhelming, but the seeds of what you need are in there....
Unknown said:I see that example in SelectSeries 3 (09.209) and it is a .NET example, which is not currently delivered
It's that .NET XmlInstance and its examples that are deprecated.
Hey Stefan,
Can you clarify what you are looking to do. There are XAttributes and there are ECXAttributes. Prefer the ECXAttributes and look to the XMLInstance api in native code or look at the ECAPI for managed code. There is a sample that demos the native code api (imodelvisitor) and at the last developer conference we demo'd the managed code api.
Regards,
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx
Its the ECXAttributes I would like to use. As Bruce stated the imodelvisitor-sample is very complex, so if anyone has a good example of how to incorporate the Api in c++ code I would appreciate that.
Thanks, Stefan.