Elements and Attributes
At this point, the DOM transcends the tree analogy. There are multiple types of nodes, or to phrase that within the context of the DOM extension, DOMNode has multiple subclasses. The main two you’ll be dealing with are DOMElement for elements and DOMAttr for attributes. Here are how these concepts apply to the example in the last section.
© DOM Extension — Web Scraping >>> Back to TABLE OF CONTENTS <<< | |
Views: 361 | |
Total comments: 0 | |