[xsd-users] Determine parent/child element in C++/Tree

Robert Krajewski robert.w.krajewski at gmail.com
Thu Jun 4 14:53:01 EDT 2015


Hey everybody,

I have the following problem. I need to determine the parent element of an
element.
E. g.
<A>
  <C />
</A>

and
<B>
  <C />
</B>

Is a given C a child of A or B? After searching through the source code and
the online tutorials I couldn't find a way to solve this task.
I would be very happy if there is a way to determine the parent of a given
element C or all children of type C of a given element.

Best regards
Robert


More information about the xsd-users mailing list