Prev | Current Page 392 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


In Figure 8 - 1 you can find the XML document processed by the haXe XML parser and displayed as
sequence of nodes. Each line represents a node; they have been indented to show the hierarchy
nesting. The whitespaces in node values have been replaced by the \s symbol and newlines by the
Document
Prolog:
PCData: \n
DocType:
PCData: \n
Element: html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"
PCData: \n\s\s
Element: head
PCData: \n\s\s\s\s
Element: title
PCData: Sample\sXHTML
PCData: \n\s\s\s\s
Element: script type="text/javascript" src="external.js"
PCData:
PCData: \n\s\s\s\s
Element: script type="text/javascript"
PCData: \n
CData: \n\s\s//\sinline\n
PCData: \n\s\s\s\s
PCData: \n\s\s
PCData: \n\s\s
Element: body
PCData: \n\s\s\s\s
Comment:
PCData: \n\s\s\s\s
Element: p
PCData: Link\sto\s
Element: a href="http://example.com/"
PCData: example
PCData: .
PCData: \n\s\s
PCData: \n
Document
PCData: \n
PCData: \n
Element: html xmlns="http://www.


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