The DOM specification covers all types of manipulations of a document representation, but it does not cover issues such as parsing a document and generating text output.
DOM 规范涵盖了文档表示的所有类型的操作,但是它没有涉及例如对文档的语法分析和生成文本输出这样的问题。
2
This worked well for generating text output, but would have been difficult to convert to other forms of output (such as a parse event stream for building a DOM representation of the document).
The process involves generating an internal representation of a method that's different from bytecodes but at a higher level than the target processor's native instructions.