Hi All,

i am using xmlcursor to retrieve all elements of an xml object as part of the 
functions of my service.  however it looks like only elements that have values 
in them are picked up the cursor.  snippet of my code is:

        XmlCursor xmlCursor = requestObject.newCursor();

                xmlCursor.toFirstChild();

                System.out.println("xmlcursor: " + 
xmlCursor.getName().getLocalPart());         
                
                while (xmlCursor.toNextSibling()) {                             
                        System.out.println("xmlcursor: " + 
xmlCursor.getName().getLocalPart());
                }

is there a better way for me to traverse the xml object to get all elements 
regardless if it has a value or not.  thanks!

ErwinP

Reply via email to