users@jaxb.java.net

unmarshalling deep child elements to avoid traversal?

From: Andrew Hughes <azza_at_lisasoft.com>
Date: Fri, 29 Sep 2006 10:14:05 +0930
Hey All,

I would like to know if there is a way of unmarshalling a child element directly? Seems like a very popular thing to do... (ie XPATH).

My  XSD is very complicated :( and traversal is a bit of a pain. I guess I am being lazy and just trying to reduce the amount of coding.

Example, if "IWantToUnmarshallThis" :

<Root>
    <Something>
           <SomethingElse>
                   <ManyMoreParents>
                            ...............
                                           <IWantToUnmarshallThis>
                                           </IWantToUnmarshallThis>

                            ...............
                   </ManyMoreParents>
           </SomethingElse>
    </Something>
</Root>



Any suggestions????



--

Regards,

Andrew