接下来,解析修改的列表,生成已经修改和删除的文件的列表(见清单6)。
Next, the list of changes is parsed and a list of the files that have been changed and deleted is generated (see Listing 6).
这种在解析期间修改文档结构的做法可以使 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.
可以使用这种更新功能修改xml列中的文档,而不需要解析xml文档或把文档读取到应用程序中。
You can use this update functionality to change documents in an XML column without XML parsing or reading the document into your application.
目前,开发者需要修改清单5中样本解析代码以达到自己的目的。
Currently, developers need to modify the sample parsing code in Listing 5 for their own purposes.
在备份服务器上修改IP地址(主机名)以解析为原始服务器的IP地址(或主机名)。
Change the IP address (or host name) on the backup server to resolve to the IP address (or the host name) of the original server.
对原始脚本的一处修改是解析消息内容,并根据电子邮件发送者或者主题对邮件进行归档。
A modification of the original script is to parse the message contents and file the mail according to the E-mail sender or subject.
类一旦被解析,就会以一种线程安全的方式修改原始代码位置以便直接访问静态字段的地址,因为此时已获知该地址。
Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.
最可能进行的修改意味着您保留您的程序的基本结构和大部分用户体验,只修改解析xml的部分。
That modification most likely means that you preserve the basic structure of your program and much of the user experience but modify the part where it parses the XML.
此时,客户机需要解析并修改文件,然后传输回服务器,这种模式的工作原理是什么?
At this point, the client has to parse and modify the file for transmission back to the server. How might this type of scheme work?
请注意,很容易理解和修改这个扩展,而且该扩展可以与前面的非解析示例一样出色地完成工作(请参阅带命令行开关的事件循环)。
Note that the extension is easy to understand and modify, and that it can do the job just as well as the previous, non-parsing example (see the Event loop with command-line switches).
如果一个成分无需修改,比如这个示例中的元素,就保持xml类型,不做任何进一步的解析。
If a component is not going to change, such as the element in this example, leave it as type XML, and don't do any further parsing.
客户机随后使用某种模式将这些文件传递到本地存储中,然后您可以使用dom 4j解析并修改文件数据。
Clients then use some scheme to transfer these files into local storage, and you can use dom4j to parse and modify the file data.
此方法中的解析代码是从前一教程复制过来的,并稍微进行了一些修改,以获得更类似Groovy的语法。
Conf files; the parsing code from this method is copied from the previous tutorial and modified slightly to use a more Groovy-like syntax.
修改控制器以便从USPSWeb services接收和解析XML响应。
Modify the controller to receive and parse a XML response from the USPS web service.
php脚本返回和原来相同的XML格式,因此不需要修改 XML解析的代码。
The search.php script returns the same XML format as the original, so the code that does the XML parsing doesn't need to change.
它们有优势,它们可以很容易的进行手工修改,但同时也很容易被解析。
They have the advantage that they are quite easy to edit by hand, but are also easy to parse.
我们布置的家庭作业是要求修改这个类,使之能够打印每一个方法的参数。这对于理解 SAX 的解析与回调过程是十分有好处的。
The assignment, which was to modify this class so that it prints out the arguments supplied to each method, provided some useful insight into the SAX parsing and callback process.
新的过滤器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.
SAX解析器、文档处理程序以及用于其他元素的外部类都不需要作任何修改。
The SAX parser, the document handler, and the external classes for the other elements do not need any changes.
获取、解析和修改XML文档的过程也可以封装在数据库服务器上运行的存储过程中。
This process of retrieving, parsing, and changing an XML document can also be encapsulated in a stored procedure that runs on the database server.
字节码转换:这些注解处理器解析带有注解的类文件并释放出修改过的类和新产生的类。
Bytecode Transformers: These annotation handlers parse the class files with Annotations and emit modified classes and newly generated classes.
我们希望恰好在对HTTP消息体进行解码之前,而在解析了头之后,对输入流进行修改。
We want to modify the input stream just before the body of the HTTP message is decoded, but after the headers have been parsed.
过去,要在文档修改后对它进行重新验证,必须将它保存为一个文件,再用验证解析器读回去。
In the past, to revalidate your document once it had been modified you had to save it to a file and read it back with a validating parser.
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.
可以很容易地修改SimpleNode . dump,以提供任何节点的m_text值供其在解析期间存储—我把这作为一个众所周知的练习留给您来完成。
You can easily modify SimpleNode.dump to emit the value of m_text for any node that's stored it during a parse — I'll leave that as a proverbial exercise for you.
为了查明这一点,在消息文件中查看TCPWrappers如何解析主机名,然后相应地修改hosts . allow文件。
To test this, look at how TCP Wrappers resolves the hostname in the messages file, then amend the hosts.allow file accordingly.
RecDescent的解析能力在于可无休止地修改它。
The parsing capabilities of Parse::RecDescent are endlessly adaptable.
可以使用在第3部分中描述过的解析器来构建index视图,但一旦任何代码进行了修改,该视图就不得不解析CDT工作空间中的每个源文件。
You could build an Index view using the parser described in Part 3, but it would have to parse every source file in the CDT workspace whenever any code is modified.
例如,如果您打算添加一个字段,它或许可以在不做修改的情况下接受新文件,而这取决于解析器是如何编写的。
If you were to add a field, for example, it might be able to accept the new file without modification, depending on how the parser was written.
例如,如果您打算添加一个字段,它或许可以在不做修改的情况下接受新文件,而这取决于解析器是如何编写的。
If you were to add a field, for example, it might be able to accept the new file without modification, depending on how the parser was written.
应用推荐