XML DOM - 주석 객체
직접 해보십시오 - 예
아래 예에서는 XML 파일 books.xml 을 사용합니다 .
주석 개체
Comment 개체는 문서에 있는 주석 노드의 내용을 나타냅니다.
주석 개체 속성
Property | Description |
---|---|
data | Sets or returns the text of this node |
length | Returns the length of the text of this node |
주석 개체 메서드
Property | Description |
---|---|
appendData() | Appends data to the node |
deleteData() | Deletes data from the node |
insertData() | Inserts data into the node |
replaceData() | Replaces data in the node |
substringData() | Extracts data from the node |