org.tinygroup.xmlparser
Interface XmlDocument

All Superinterfaces:
Document<XmlNode>
All Known Implementing Classes:
XmlDocumentImpl

public interface XmlDocument
extends Document<XmlNode>


Method Summary
 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声明
 
Methods inherited from interface org.tinygroup.parser.Document
getRoot, setRoot, write
 

Method Detail

getXmlDeclaration

XmlNode getXmlDeclaration()
获取XML声明

Returns:
XmlNode

getDoctypeList

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

Returns:
List

getProcessingInstructionList

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

Returns:
List

getCommentList

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

Returns:
List

setXmlDeclaration

void setXmlDeclaration(XmlNode node)
设置XML声明

Parameters:
xmlDeclaration -

addDoctype

void addDoctype(XmlNode node)
添加CDATA文本

Parameters:
CDATA文本 -

addProcessingInstruction

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

Parameters:
processingInstruction -

addComment

void addComment(XmlNode node)
添加注释

Parameters:
comment -


Copyright © 2006–2015 TinyGroup. All rights reserved.