| @@ 93-98 (lines=6) @@ | ||
| 90 | */ |
|
| 91 | function parse() {
|
|
| 92 | $text = $this->skipToElement(); |
|
| 93 | if ($text != "") {
|
|
| 94 | $this->iNodeType = NODE_TYPE_TEXT; |
|
| 95 | $this->iNodeName = "Text"; |
|
| 96 | $this->iNodeValue = $text; |
|
| 97 | return true; |
|
| 98 | } |
|
| 99 | return $this->readTag(); |
|
| 100 | } |
|
| 101 | ||
| @@ 145-150 (lines=6) @@ | ||
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|
| 145 | if (!$comment) {
|
|
| 146 | $this->iNodeType = NODE_TYPE_TEXT; |
|
| 147 | $this->iNodeName = "Text"; |
|
| 148 | $this->iNodeValue = "<" . $name; |
|
| 149 | return true; |
|
| 150 | } |
|
| 151 | } |
|
| 152 | else {
|
|
| 153 | $this->iNodeType = NODE_TYPE_ELEMENT; |
|