After you're finished, close the parser to release any resources it's holding onto and reset it for the next document.
完成遍历后,关闭解析器以释放它所持有的任何资源,并且重置解析器以便用于下一个文档。
The next document you process will contain the new attribute keywords, allowing you to do full-text search in the XPath queries.
您处理的下一个文档将包含新属性keywords,它允许您在XPath查询中执行全文搜索。
Second, it allows you to change a document, even remove it, without having your code fail when you proceed to the next document.
其次,它允许您更改文档,甚至删除文档,而您处理下一文档时代码不会失败。
应用推荐