de.pdark.decentxml.Document.addNode()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中de.pdark.decentxml.Document.addNode()方法的一些代码示例,展示了Document.addNode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Document.addNode()方法的具体详情如下:
包路径:de.pdark.decentxml.Document
类名称:Document
方法名:addNode

Document.addNode介绍

暂无

代码示例

代码示例来源:origin: de.pdark/decentxml

protected XMLDeclaration createXMLDeclaration ()
{
  if (xmlDeclaration == null)
  {
    addNode (0, new XMLDeclaration ("1.0"));
    addNode (1, new Text ("\n"));
  }
  return xmlDeclaration;
}

代码示例来源:origin: io.fabric8.forge/camel-tooling-util

protected Document createExemplarDoc() throws IOException {
  String exemplar = "io/fabric8/camel/tooling/exemplar.xml";
  URL url = findResource(exemplar, null);
  if (url != null) {
    return parse(new XMLIOSource(url));
  } else {
    LOG.warn("Could not find file {} on the class path", exemplar);
    Document d = new Document();
    d.addNode(new Element("beans", springNamespace));
    return d;
  }
}

代码示例来源:origin: jboss-fuse/fabric8

protected Document createExemplarDoc() throws IOException {
  String exemplar = "io/fabric8/camel/tooling/exemplar.xml";
  URL url = findResource(exemplar, null);
  if (url != null) {
    return parse(new XMLIOSource(url));
  } else {
    LOG.warn("Could not find file {} on the class path", exemplar);
    Document d = new Document();
    d.addNode(new Element("beans", springNamespace));
    return d;
  }
}

代码示例来源:origin: de.pdark/decentxml

doc.addNode (docType);
doc.addNode (n);

相关文章