:
1) xml , , URL- . "www...... com" xml.
Document jdomDocument = builder.build( new URL("http://www........com"));
2), html- xml, , xhtml, xml
3), , root.getChild("body") , "", . , ; , :
root.getChild("body", Namespace.getNamespace("your_namespace_uri"));
, , , getChildren:
for (Object element : doc.getRootElement().getChildren()) {
System.out.println(element.toString());
}
xhtml, , uri http://www.w3.org/1999/xhtml. :
root.getChild("body", Namespace.getNamespace("http://www.w3.org/1999/xhtml"));