I would open a cursor and perform a select. All objects that you are working with extend XmlObject, so you have complete access to the API's. But this assumes that you would have knowledge of the XPath that you want to access, so you would need to know the structure of the document and where it is that you want to be within it.
This is an excellent suggestion for the last phase, the one where i start filling the structure. For now i'm still in the process of dynamically building the structure into which i'll place my data (based on a series of parent.child strings). So the challenge remains. Recursively trying to detect the existence of the getter of the parent (starting from the root) might also not be the way to go because a certain element may appear in different areas of the structure. Thus leaving you with the determination of the correctness of the position. So now i'm contemplating the construction of a double linked tree-structure (using wrappers around the XmlObjects) that would allow me to walk forward and backward through the structure. This way i could keep track of where i am in the construction and easily attach an element to its proper location in the structure. If anyone has a better suggestion .. please don't hesitate ;) Tia, Fermin ------------------------------
*From:* "Fermin Da Costa Gomez" <[EMAIL PROTECTED]> [mailto:"Fermin Da Costa Gomez" <[EMAIL PROTECTED]>] *Sent:* Tuesday, March 13, 2007 7:48 AM *To:* [email protected] *Subject:* Re: Dynamically creating the elements in a structure Here we are again. Issue: Imagine a structure with 6 level (as an example). I reveive a parent.child combo the represent level 3 & 4 but this is something i don't know. The only known factor is the fact that the build-up of the structure goes sequential and from top to bottom. Now, creating the child is no issue (thx to Christopher ;) ), creating the parent could also be done but maybe i don't want to create it because it already exists in the 'tree' so far. So, is there a way to easily get a hold of a certain node (assuming the root element is available off course)? In the above example i would be looking for an entry of the "parent" x node starting from the rootElement y. Tia, Fermin DCG
-- "The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man." - George Bernard Shaw (1856 - 1950)

