Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Why XML::Smart model can't work (

by Anonymous Monk
on Dec 17, 2013 at 11:22 UTC ( #1067454=note: print w/ replies, xml ) Need Help??


in reply to Why XML::Smart module can't work

Could someone be helpful?

Sure, use ddumperBasic debugging checklist Basic debugging checklist item 4

use Data::Dump qw/ dd pp /; use XML::Smart; my $x = XML::Smart->new( q{<root> hi <foo bar="bar"> fooooooooo </foo> + </root>} ); dd( $x ); dd( $x->{root}->content ); __END__ do { my $a = bless(do{\(my $o = bless({ a => [], b => \sub { ... }, c => sub { ... }, g => \*Object::MultiType::Saver::NULL, h => {}, parser => "", point => { "/nodes" => { root => 1 }, "/order" => ["root"], "root" => { "/nodes" => { foo => 1 }, "/order" => ["CONTENT", "foo"], "CONTENT" => " hi ", "foo" => { "/order" => ["bar", "CONTENT"], "bar" => "bar", "CONTENT" => " fooooooooo ", }, }, }, s => \sub { ... }, TIEONUSE => { a => "XML::Smart::Tie::Array", h => "XML::Smart::Tie +::Hash" }, tree => 'fix', }, "Object::MultiType::Saver"))}, "XML::Smart"); $$a->{tree} = $$a->{point}; $a; } " hi "

Now that probably isn't very helpful ... but its all I got, I haven't read XML::Smart::Tutorial much , I stick with DOM1(XML::LibXML), XML::Twig, and XML::Rules,... Re: Reading XML LibXML (ddumper), Re^3: Parse multiple xml tags with different names to an array, ... xpather.pl


Comment on Re: Why XML::Smart model can't work (
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067454]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-08-23 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls