Prev | Current Page 391 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Between the Prolog node and the DocType node there is a node
Chapter 8: Cross Platform Tools
205
of type parsed character data ( PCData ) whose value is a newline character. The processor always parses
a PCData node.
The element section of an XML document is composed by one mandatory root node of type Element .
An element always has a name, html is the one of the root node, and may have zero or more attributes
and zero or more child nodes. Elements and tags are covered in more detail in Chapter 9 in the section
dedicated to the HTML syntax.
< html xmlns=???http://www.w3.org/1999/xhtml??? xml:lang=???en??? lang=???en??? >
Another type of node is the Character Data ( CData ). Unlike the PCData , the content of a CData node is
not parsed by the processor and its value is set as in the value of the node. A CData value is contained
between the delimiters < ![CDATA[ and ]] > .
< ![CDATA[
// inline
]] >
The last type of node is Comment . The processor ignores any comment content. Comments can be located
anywhere in an XML document and their value is delimited by < ! - - and - - > .


Pages:
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403