这个我以前玩过,不过作者这样说明: The use of this module in new code is discouraged. Other modules are available which provide more straightforward and consistent interfaces. In particular, XML::LibXML <http://search.cpan.org/perldoc?XML%3A%3ALibXML> is highly recommended.
你试试XML::LibXML? 我倒是玩过,不过没怎么深入。 2013/5/25 Ken Peng <[email protected]> > give a try this one? > > http://search.cpan.org/~grantm/XML-Simple-2.20/lib/XML/Simple.pm > > > 在 2013-5-26,上午8:46, kevin_li 写道: > > 请问有没有稍微轻量点的 读XML的 模块? > > 我使用XML::DOM::Parser 读一个 60M左右的XML 就占了1G 多内存, > 处理完毕后,dispose 释放 总是卡在某个地方 很诡异。 > > 谢谢:) > > > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 [email protected]。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 通过以下网址访问此论坛:http://groups.google.com/group/perlchina?hl=zh-CN。 > 要查看更多选项,请访问 https://groups.google.com/groups/opt_out。 > > > > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 [email protected]。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 通过以下网址访问此论坛:http://groups.google.com/group/perlchina?hl=zh-CN。 > 要查看更多选项,请访问 https://groups.google.com/groups/opt_out。 > > > -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 [email protected]。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 通过以下网址访问此论坛:http://groups.google.com/group/perlchina?hl=zh-CN。 要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
