import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.File;
import java.io.IOException;
public class Deom {
public static void main(String[] args) throws IOException {
String path = Deom.class.getClassLoader().getResource("xml.xml").getPath();
Document parse = Jsoup.parse(new File(path),"utf-8");
Element element = parse.getElementById("1");
System.out.println(element);
Elements select = parse.select("user > age");
for (Element element1 : select) {
System.out.println(element1.text());
}
}
}