[xsd-users] Need help !!!
boris at codesynthesis.com
Mon Jun 25 07:52:37 EDT 2007
In the future please keep your replies CC'ed to the xsd-users mailing
list. This way a) other developers who may have experienced a similar
problem can provide you with a solution b) questions and answers will
be archived and available to others with similar problems.
Picsou en Bretagne <breizh_picsou at yahoo.fr> writes:
> For example, in the sample for polymorphism:
> <superman can-fly="true" wing-span="10" xsi:type="batman">
> <name>Bruce Wayne</name>
> I have in parameter "Bruce Wayne" and I want to know that it a
> "child" of superman with the attributes "can-fly" .... This sample
> is pershaps too short to explain my problem but you can imagine this
> with 2 steps with containers for example.
> for (AAA::iterator iter ...)
> ... (get and container)
> for (BBB::iterator iter2 ...)
> ---> Here I want to know witch AAA element has the present
> son and his attributes, values without storing this.
You can use the _container function which returns parent object as a
pointer to xml_schema::type. This type is a root of the generated types
object& obj = ...
xml_schema::type* parent (obj._container ());
More information about the xsd-users