org.tinygroup.xmlparser
接口 XmlDocument

所有超级接口:
Document<XmlNode>
所有已知实现类:
XmlDocumentImpl

public interface XmlDocument
extends Document<XmlNode>


方法摘要
 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 getXmlDeclaration()
          获取XML声明
 void setXmlDeclaration(XmlNode node)
          设置XML声明
 
从接口 org.tinygroup.parser.Document 继承的方法
getRoot, setRoot, write
 

方法详细信息

getXmlDeclaration

XmlNode getXmlDeclaration()
获取XML声明

返回:
XmlNode

getDoctypeList

List<XmlNode> getDoctypeList()
获取CDATA部分

返回:
List

getProcessingInstructionList

List<XmlNode> getProcessingInstructionList()
获取XML处理指令

返回:
List

getCommentList

List<XmlNode> getCommentList()
获取Xml注释

返回:
List

setXmlDeclaration

void setXmlDeclaration(XmlNode node)
设置XML声明

参数:
xmlDeclaration -

addDoctype

void addDoctype(XmlNode node)
添加CDATA文本

参数:
CDATA文本 -

addProcessingInstruction

void addProcessingInstruction(XmlNode node)
添加XML处理指令

参数:
processingInstruction -

addComment

void addComment(XmlNode node)
添加注释

参数:
comment -


Copyright © 2006–2016 TinyGroup. All rights reserved.