本文整理了Java中org.dom4j.io.OutputFormat.setXHTML()
方法的一些代码示例,展示了OutputFormat.setXHTML()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputFormat.setXHTML()
方法的具体详情如下:
包路径:org.dom4j.io.OutputFormat
类名称:OutputFormat
方法名:setXHTML
[英]This will set whether or not to use the XHTML standard: like HTML but passes an XML parser with real, closed tags. Also, XHTML CDATA sections will be output with the CDATA delimiters: ( " <[CDATA[ " and " ]]< ) otherwise, the class HTMLWriter will output the CDATA text, but not the delimiters. Default: false
[中]这将设置是否使用XHTML标准:与HTML类似,但会传递一个带有真实封闭标记的XML解析器。此外,XHTML CDATA节将使用CDATA分隔符输出:(“<[CDATA[”和“]]])否则,HTMLWriter类将输出CDATA文本,但不输出分隔符。默认值:false
代码示例来源:origin: org.dom4j/dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: org.dom4j/dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: org.mule.modules/mule-module-xml
/**
* @see OutputFormat#setXHTML(boolean)
*/
public synchronized void setXHTML(boolean xhtml)
{
outputFormat.setXHTML(xhtml);
}
代码示例来源:origin: org.eclipse.hudson.stapler/stapler-jelly
private static OutputFormat createFormat() {
OutputFormat format = new OutputFormat();
format.setXHTML(true);
// Only use short close for tags identified by HTMLWriter:
format.setExpandEmptyElements(true);
return format;
}
代码示例来源:origin: stapler/stapler
private static OutputFormat createFormat() {
OutputFormat format = new OutputFormat();
format.setXHTML(true);
// Only use short close for tags identified by HTMLWriter:
format.setExpandEmptyElements(true);
return format;
}
代码示例来源:origin: org.apache.portals.jetspeed-2/jetspeed-page-manager
this.fileCache.addListener(this);
this.format = new OutputFormat(" ", true, PSML_DOCUMENT_ENCODING);
this.format.setXHTML(true);
this.format.setExpandEmptyElements(false);
代码示例来源:origin: dom4j/dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: org.jenkins-ci.dom4j/dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: org.dom4j/com.springsource.org.dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: apache/servicemix-bundles
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
setPadText(true);
} else if (args[i].startsWith("-xhtml")) {
setXHTML(true);
} else {
return i;
代码示例来源:origin: dom4j/dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: org.dom4j/com.springsource.org.dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: maven/dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
代码示例来源:origin: org.jenkins-ci.dom4j/dom4j
format.setNewlines(newlines);
format.setTrimText(trim);
format.setXHTML(isXHTML);
format.setExpandEmptyElements(expandEmpty);
内容来源于网络,如有侵权,请联系作者删除!