示例#1
0
文件: BXDoc.java 项目: fpapai/basex
 @Override
 public BXElem getDocumentElement() {
   final BXNList list = getChildNodes();
   for (int l = 0; l < list.getLength(); ++l) {
     final BXNode n = list.item(l);
     if (n.getNodeType() == Node.ELEMENT_NODE) return (BXElem) n;
   }
   throw Util.notExpected();
 }
示例#2
0
文件: ANode.java 项目: fpapai/basex
 @Override
 public final BXNode toJava() {
   return BXNode.get(deepCopy(new MainOptions()));
 }