这种在解析期间修改文档结构的做法可以使 DOM树占用更少的内存,而且还可以减少在内存中遍历和修改文档时所花的时间。
Such modifications of the document structure during parsing can result in a smaller memory footprint for the DOM tree, and also reduce the time spent traversing a document and modifying it in memory.
新的过滤器API使您可以在解析期间通过请求解析器接受、忽略一个节点及其子节点或者将它们从产生的树中删除,来检查和修改文档的结构。
The new filter API lets you examine and modify a document’s structure during parsing by asking a parser to accept, skip, or remove a node and its children from the resulting tree.
如果文档结构发生变化,再需要重新生成代码,并修改应用程序代码以使用最终修改后的数据类。
If the document structure changes, you need to rerun the code generation and modify your application code to work with the resulting modified data classes.
对输入文档的结构进行任何修改,都需要对表达式进行大量调整。
Any changes to the structure of the input document create more places in which you have to adjust the expression.
修改映射定义(而不需要改变应用程序代码)通常处理XML文档结构中微小的变化。
Modifying the mapping definition, rather than requiring changes in application code, often handles minor changes in the XML document structure.
如果校准的文档有相同或者类似的结构,不需要多少修改就能恢复翻译并重用。
If the aligned documents have the same or very similar structure, the translation can be recovered for reuse without much effort.
本文介绍了如何修改XML文档,在保留基本结构不变的同时删除或者改变内容以免泄漏敏感信息。
In this article, you learned how to modify XML documents so the basic structure stays the same, but you eliminate or modify the content so sensitive information is not leaked.
由于Castor使用具体的类,而不是接口,因此对于构造或修改文档数据结构,它要比jaxb略微简单。
Since Castor USES concrete classes rather than interfaces, it's a little simpler than JAXB for constructing or modifying document data structures.
一些程序查询和修改XML文档中包含的值,而其它程序则通过添加和除去节点来修改文档本身的结构。
While some programs look up and modify the values contained in XML documents, others modify the structure of the document itself by adding and removing nodes.
它为XML文档提供了一种结构化的表示方法,使用户可以访问和修改XML文档的内容。
It provides a structural representation of an XML document, enabling users to access and modify its contents.
xml解析器可以利用这种父子结构来遍历文档,甚至修改文档的结构或内容。
XML parsers can use this parent-child structure to navigate to a document, and even to modify the structure or content of the document.
xml解析器可以利用这种父子结构来遍历文档,甚至修改文档的结构或内容。
XML parsers can use this parent-child structure to navigate to a document, and even to modify the structure or content of the document.
应用推荐