| 程序包 | 说明 |
|---|---|
| com.hp.hpl.sparta |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Document
An XML Document.
|
class |
Element
A type of Node with a particular tagName that has a set of attributes and
can contain other nodes as children.
|
class |
Text
A section of text in an element.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Node |
Element.getFirstChild() |
Node |
Element.getLastChild() |
Node |
Node.getNextSibling()
Return the next node in the parent's list of children, or null if no such node.
|
Node |
Node.getPreviousSibling()
Return the previous node in the parent's list of children, or null if no such node.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Element.appendChild(Node addedChild)
Add node as child of this element, cloning node if it is this element or
an ancestor.
|
void |
Element.removeChild(Node childToRemove) |
void |
Element.replaceChild(Element newChild,
Node oldChild)
Replace oldChild with newChild.
|
void |
Element.replaceChild(Text newChild,
Node oldChild)
Replace oldChild with newChild.
|
Copyright © 2016. All Rights Reserved.