Analyzing Fragmented HTML Documents
Learn how to implement a fragmented position analyzer.
We'll cover the following...
Implementing the FragmentsPositionAnalyzer
class
We can see our fragments parser provides an immense amount of information about our source document. Importantly, our results have avoided potentially problematic areas of our input document by skipping over the results of other parsers.
We can bring all this information together to begin asking interesting questions about where those skipped regions appear in our document.
For instance, if we wanted to write a code formatter that formatted our embedded languages and our ...