I doubt that you can get that list of elements in one block of text (unless they're in a CDATA section, but I'm assuming they're not).
XML APIs are meant for working with XML elements, tags and attributes - if you want to get a string that's made up of several tags, then you'll need to assemble that yourself by traversing through the xinfolist child elements.
Ping & DNS - updated with new look and Ping home screen widget
This string will contain entire XML element in it. You can print this string.
Working in Jdom is simple but if your xsd changes frequently or if it is complex, You have to write too much of code to read each element, validate it,
fetch sub elements, traverse list of childrens etc. So consider using xml<>java binding like Castor or Jaxb.
With it you follow simple steps.
1) Defiine schema (.xsd) for for xml
2) Generate code for the schema using readymade code generators.
3) Use classes created in step 2 to marshal, unmarshal, validate, print xml content.