Prev | Current Page 389 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


< ?xml version=???1.0??? encoding=???UTF-8???? >
< !DOCTYPE html
PUBLIC ???-//W3C//DTD XHTML 1.0 Strict//EN???
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd??? >
< html xmlns=???http://www.w3.org/1999/xhtml??? xml:lang=???en??? lang=???en??? >
< head >
< title > Sample XHTML < /title >
< script type=???text/javascript??? src=???external.js??? > < /script >
< script type=???text/javascript??? >
< ![CDATA[
// inline
]] >
< /script >
< /head >
< body >
< !-- comment here -- >
< p > Link to < a href=???http://example.com/??? > example < /a > . < /p >
< /body >
< /html >
When a processor parses the text above, a hierarchical tree is built. The first root node is a node of type
Document . The document has no other properties or characteristics apart from having child nodes.
Two main sections, the prolog section and the element section, compose an XML document. The first
contains meta - information about the document and is composed of two optional nodes, the XML
Declaration node, and the Document Type Declaration node.


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