Parsing and traversing a Document
- implicit tags (e.g. a naked
<td>Table data</td>
is wrapped into a<table><tr><td>…
) - reliably creating the document structure ( containing a
head
andbody
, and only appropriate elements within the head)
- The inheritance chain is:
Document
extends extends.
TextNode
extends.
- An Element contains a list of children Nodes, and has one parent Element. They also have provide a filtered list of child Elements only.
See also
- Extracting data: