XML 操作
在线手册:中文 英文
PHP手册

XML 解析器


XML 操作
在线手册:中文 英文
PHP手册
PHP手册 - N: XML 解析器

用户评论:

marcgear at gmail dot com (04-Aug-2010 06:12)

While this SAX event based parser is better for memory management than the tree based parsers of SimpleXML and DOM, the pull-based parser XMLReader is much easier to use than the xml_parser_* functions, and still doesn't require loading the file into memory.

nat (04-Sep-2009 08:19)

An event-based parser such XML Parser is preferable for large files, because tree-based parsers must fully load the file into memory in order to parse the XML. Event-based parsers do not need to load the entire file into memory to begin parsing.

pavel dot lishin at gmail dot com (28-Jul-2009 05:33)

If you're wanting to actually work with XML data as it was intended, treating it as a tree, try http://us2.php.net/manual/en/book.simplexml.php .