Therefore, you must pass it a root element when you create it.
因此,创建 Document 时,必须给它传递一个根元素。
Notice that we had to pass only the root element when we invoked the buildZip function.
注意:在调用buildzip函数时,仅需要传递根元素。
Finally, when you invoke the Xml.parse utility method, you now pass in a handler that is generated from the root element.
最后,在调用Xml . parse实用方法时,您将传递一个通过根元素生成的处理程序。
应用推荐