};
XmlCursor c = org.apache.xmlbeans.XmlObject.Factory.parse(xml).newCursor();
c.toFirstContentToken(); // on <root>
c.toFirstContentToken(); // on <a>
c.toFirstChild(); // on <b>
c.toFirstChild(); // on <c>
c.push(); System.out.println(generateXPath(c, null, ns)); c.pop();
c.toNextSibling();
c.toNextSibling(); // on the last <c>
c.push(); System.out.println(generateXPath(c, null, ns)); c.pop();
XmlCursor d = c.newCursor();