# Java API for XML processing (JAXP)
# Study Note of JAVA Tutorial
# Victor
# 2016.05.17
Document Object Model APIs
node (subclass) |
NodeName |
NodeValue |
attributes |
Attr |
Same asAttr.name |
Same asAttr.value |
null |
CDATASection |
"#cdata-section" |
Same CharacterData.data as, the content of the CDATA section |
null |
Comment |
"#comment" |
Same CharacterData.data as, the content of the comment |
null |
Document |
"#document" |
null |
null |
DocumentFragment |
"#document-fragment" |
null |
null |
DocumentType |
Same asDocumentType.name |
null |
null |
Element |
Same asElement.tagName |
null |
NamedNodeMap |
Entity |
Entity Name |
null |
null |
EntityReference |
Name of entity referenced |
null |
null |
Notation |
notation Name |
null |
null |
ProcessingInstruction |
Same asProcessingInstruction.target |
Same asProcessingInstruction.data |
null |
Text |
"#text" |
Same CharacterData.data as, the content of the text node |
null |
Java APIs FOR XML--------Dom (1)