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.
Stefan,
Do you want to read only or are you going to read and write? Here are the two source files that I refer people to. BusinessDataHandler is the read side of the equation. imodeltoolModifyTool adds data to elements.
HTH,
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx
Have you looked at the Bentley Class Editor? The first thing you have to do is create/define your "schema" (objects and properties). Then, using the C++ API, insert the schema into the model, create an "instance" of your object/properties, then assign it to the element(s).
Bruce
I have written an simpler sample for XmlInstance usage as attached. FYI
YongAn