返値 | クラス | メソッド | 用途 |
Element | Documnet | createElement(String taggname) | 要素を作成する(追加ではない) |
Text | Document | createTextNode(String data) | テキストノードを作成する |
Comment | Document | createComment(String data) | コメントを作成する |
CDATADSection | Document | createCDATASection(String data) | CDATAセクションを作成する |
Attr | Document | createAttribute(String text) | 属性を作成する |
ProcessingInstruction | Document | createProcessingInstruction(String target, String data) | 処理命令を作成する |
Entityreference | Document | createEntityReference(String name) | 実態参照を作成する |
返値 | クラス | メソッド | 用途 |
Node | Node | insertBefore(Node newChild, Node refChild) | ノードに子を挿入する |
Node | Node | replaceChild(Node newChild, Node refChild) | ノードの子を置き換える |
Node | Node | removeChild(Node oldChild) | ノードの子を削除する |
Node | Node | appendChild(Node newChild) | ノードに子を追加する |
返値 | クラス | メソッド | 用途 |
NodeList | Document | getElementsByTagName(String tagname) | タグ名でノードリスト(要素のリスト)を得る |
int | NodeList | getLength() | ノードリストのノード個数を得る |
Node | NodeList | item(int index) | ノードリストからindexで指定される位置のノードを得る |
返値 | クラス | メソッド | 用途 |
Node | NamedNodeMap | getNamedNodeMap(String name) | 属性リストの属性を得る |
返値 | クラス | メソッド | 用途 |
NamedNodeMap | Node | getAttributes() | ノードの属性リストを得る |
Node | NamedNodeMap | removeNamedItem(String name) | 属性リストの属性を削除する |
返値 | クラス | メソッド | 用途 |
- | Element | setAttribute(String name, String value) | 要素に属性を追加する |