Java tutorial
//package com.java2s; import org.w3c.dom.Document; import org.w3c.dom.Element; public class Main { public static Element getRoot(Document xmlDoc) { return xmlDoc.getDocumentElement(); } }