org.sakaiproject.util.Xml.createDocument()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(107)

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

Xml.createDocument介绍

[英]Create a new DOM Document.
[中]创建一个新的DOM文档。

代码示例

代码示例来源:origin: org.sakaiproject.metaobj/sakai-metaobj-tool-lib

public static NodeList loopCounter(int start, int end) {
 Document doc = Xml.createDocument();
 Element parent = doc.createElement("parent");
 for (int i=start;i<=end;i++) {
   Element data = doc.createElement("data");
   data.appendChild(doc.createTextNode(i + ""));
   parent.appendChild(data);
 }
 return parent.getElementsByTagName("data");
}

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

Document doc = Xml.createDocument();
Node results = doc.createElement("events");
doc.appendChild(results);

代码示例来源:origin: org.sakaiproject.assignment/sakai-assignment-impl

public String toXml()
  Document doc = Xml.createDocument();
  Element submission = doc.createElement("submission");
  doc.appendChild(submission);

代码示例来源:origin: org.sakaiproject.common/archive-impl2

if (!service.willArchiveMerge()) continue;
  Document doc = Xml.createDocument();
  Stack stack = new Stack();
  Element root = doc.createElement("archive");
  Document doc = Xml.createDocument();
  Stack stack = new Stack();
  Element root = doc.createElement("archive");
Document doc = Xml.createDocument();
Stack stack = new Stack();
Element root = doc.createElement("archive");
doc = Xml.createDocument();
stack = new Stack();
root = doc.createElement("archive");

代码示例来源:origin: org.sakaiproject.common/archive-impl

if (!service.willArchiveMerge()) continue;
  Document doc = Xml.createDocument();
  Stack stack = new Stack();
  Element root = doc.createElement("archive");
  Document doc = Xml.createDocument();
  Stack stack = new Stack();
  Element root = doc.createElement("archive");
Document doc = Xml.createDocument();
Stack stack = new Stack();
Element root = doc.createElement("archive");
doc = Xml.createDocument();
stack = new Stack();
root = doc.createElement("archive");

代码示例来源:origin: org.sakaiproject.announcement/sakai-announcement-impl

doc = Xml.createDocument();
m.toXml(doc, new Stack());
xml = Xml.writeDocumentToString(doc);

相关文章