Then it introduced you to SAX and event-based parsing, the approach you must take if your XML document is very large or is an unending stream.
然后介绍了SAX和基于事件的解析,如果XML文档非常大或者是一个无终止的流,必须采用这种方法。
Unlike SAX, the DOM API permits editing and saving an XML document back to a file or stream.
与SAX不同,DOMAPI允许对XML文档进行编辑并保存为一个文件或者流。
If the XML document won't fit in memory or is a stream of unknown length, you can't use XML: : Simple.
如果XML文档不能全部装入内存或者是长度未知的流,就不能使用XML:Simple。
When parsing a stream that represents a whole XML document, the first event returned by XMLEventReader is StartDocument.
解析表示完整X ML文档的流时,XMLEventReader返回的第一个事件是StartDocument。
The DocumentBuilder class provides a way to build an XML document tree from a stream of bytes.
documentbuilder类提供了一种方法来通过一个字节流构建一个XML文档树。
Unlike tree style parsing, stream parsing does not load the entire XML document into memory.
和树解析方式不同,流解析不需要将整个文档加载到内存中。
You need different code to retrieve each of these feeds because they are presented in different formats, the CSV is in a stream and the Atom is in an XML document.
您需要不同的代码来获取这些提要,因为它们以不同的格式呈现,CSV在数据流中,而Atom在XML文档中。
You can optionally set properties to specify an XSL Transformation (XSLT) style sheet that formats the XML document before it is written to the output stream.
您可以选择性地设置属性,以指定一个在XML文档写入输出流之前对其进行格式化的XSL转换 (XSLT)样式表。
Saves the XML document to the specified stream.
将XML文档保存到指定的流。
Reads an XML document or document stream and returns the deserialized object.
读取一个XML文档或文档流,并返回反序列化的对象。
Reads an XML document or document stream and returns the deserialized object.
读取一个XML文档或文档流,并返回反序列化的对象。
应用推荐