Hi,

Apologies if this is a basic question, but I can't seem to find a method
on the OMElement to find a child element deep in an XML document? The
OMElement object methods "getChildrenWithName()" and
"getFirstChildWithName()" seems to only go one leaf deep. Say in the
following instance I want to get the  element <d/>:

<a>
   <b/>
   <b/>
   <b>
      <c/>
   </b>
   <b>
      <c>
         <d/>
      </c>
   </b>
</a>

Is there no method to get element <d/> from a direct API call on the
OMElement object? or do I have to implement a recursive tree walker
myself?

Thanks in advance,
Ant


Reply via email to