org.tinygroup.xmlparser.document
public class XmlDocumentImpl extends Object implements XmlDocument
| Constructor and 描述 |
|---|
XmlDocumentImpl() |
| Modifier and Type | Method and 描述 |
|---|---|
void |
addComment(XmlNode node)
添加注释
|
void |
addDoctype(XmlNode node)
添加CDATA文本
|
void |
addProcessingInstruction(XmlNode node)
添加XML处理指令
|
List<XmlNode> |
getCommentList()
获取Xml注释
|
List<XmlNode> |
getDoctypeList()
获取CDATA部分
|
List<XmlNode> |
getProcessingInstructionList()
获取XML处理指令
|
XmlNode |
getRoot()
获取根结点 s
|
XmlNode |
getXmlDeclaration()
获取XML声明
|
void |
setRoot(XmlNode root)
设置根结点
|
void |
setXmlDeclaration(XmlNode xmlDeclaration)
设置XML声明
|
String |
toString()
获取完整XML文档
|
void |
write(OutputStream out)
将XML文档写入指定的输出流中
|
public void setRoot(XmlNode root)
public XmlNode getXmlDeclaration()
getXmlDeclaration 接口 {1} 中的 {0} XmlDocumentpublic void setXmlDeclaration(XmlNode xmlDeclaration)
setXmlDeclaration 接口 {1} 中的 {0} XmlDocumentxmlDeclaration - public List<XmlNode> getCommentList()
getCommentList 接口 {1} 中的 {0} XmlDocumentpublic List<XmlNode> getDoctypeList()
getDoctypeList 接口 {1} 中的 {0} XmlDocumentpublic List<XmlNode> getProcessingInstructionList()
getProcessingInstructionList 接口 {1} 中的 {0} XmlDocumentpublic void addDoctype(XmlNode node)
addDoctype 接口 {1} 中的 {0} XmlDocumentCDATA文本 - public void addProcessingInstruction(XmlNode node)
addProcessingInstruction 接口 {1} 中的 {0} XmlDocumentprocessingInstruction - public void addComment(XmlNode node)
addComment 接口 {1} 中的 {0} XmlDocumentcomment - public void write(OutputStream out) throws IOException
write 接口 {1} 中的 {0} Document<XmlNode>out - IOExceptionCopyright © 2006–2015 TinyGroup. All rights reserved.