Class ProcessingInstruction

ProcessingInstruction

XML ProcessingInstruction 節點的表示法。

方法

方法傳回類型簡短說明
detach()Content|null將節點從父項 Element 節點中分離。
getData()String取得 ProcessingInstruction 節點中每項指令的原始資料。
getParentElement()Element|null取得節點的父項 Element 節點。
getTarget()String取得 ProcessingInstruction 節點的目標。
getValue()String取得節點直接或間接子項的所有節點文字值,順序與文件中的顯示順序相同。

內容詳盡的說明文件

detach()

將節點從父項 Element 節點中分離。如果節點沒有父項,這個方法就不會生效。

回攻員

Content|null:已分離的節點。


getData()

取得 ProcessingInstruction 節點中每項指令的原始資料。

回攻員

String - ProcessingInstruction 節點中每項指令的原始資料。


getParentElement()

取得節點的父項 Element 節點。如果節點沒有父項,這個方法會傳回 null

回攻員

Element|null:父項 Element 節點。


getTarget()

取得 ProcessingInstruction 節點的目標。

回攻員

StringProcessingInstruction 節點的目標。


getValue()

取得節點直接或間接子項的所有節點文字值,順序與文件中的顯示順序相同。

回攻員

String:節點直接或間接子項的所有節點文字值。