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中

類似的軟件

RTextDoc
RTextDoc

17 Feb 15

svn2cl
svn2cl

17 Feb 15

queXML
queXML

20 Feb 15

rst2marsedit
rst2marsedit

14 Apr 15

意見 XML::Parser::Wrapper

評論沒有發現
添加評論
打開圖片!