XML::Parser::Wrapper

软件截图:
XML::Parser::Wrapper
软件详细信息:
版本: 0.15
上传日期: 14 Apr 15
开发: Don Owens
许可: 免费
人气: 3

Rating: nan/5 (Total Votes: 0)

XML解析器:: ::包装是一个Perl模块用于解析XML。 XML解析器:: ::包装是在XML解析器::顶部的包装,它提供了更友好的API

概要

使用XML解析器:: ::包装。
我$ XML = {QQ的Hello World!};
我的$ =根XML解析器:: :: Wrapper->新($ XML);
我$ root2 = XML解析器:: :: Wrapper->新({文件=>'/tmp/test.xml'});
我$ root_tag_name = $根 - >名;
我$ roots_children = $根 - >元素;
的foreach我的$元(@ $ roots_children){
如果($元素 - >名EQ'头'){
我的$ id = $元素 - > ATTR('身份证');
我$ hello_world_text = $元素 - >文本; #EQ!“Hello World”的
}}

$ head_element = $根 - >元素('HEAD2');我
$ head_elements = $根 - >元素( “HEAD2');我
$测试= $根 - >元素('HEAD2') - >元素('test_tag');我
$ new_element = $根 - > add_child(”TEST4“, {attR1位=>'VAL1'});
我小时候$ = $根 - > update_kid('root_child',{attR2位=>'stuff2'},'嗒嗒'); $
kid-> update_node({new_attr =>'new_stuff'});
$ new_element-> add_child('孩子',{myattr =>'东西'}'的Bleh');我
$ new_xml = $根 - > to_xml;

要求

  • 在Perl中

类似的软件

Nemo Templates
Nemo Templates

14 Apr 15

uni2ascii
uni2ascii

11 May 15

PyYAML
PyYAML

12 May 15

itools
itools

20 Feb 15

意见 XML::Parser::Wrapper

评论没有发现
添加评论
打开图片!