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


In reply to Re: Why XML::Smart model can't work ( by Anonymous Monk
in thread Why XML::Smart module can't work by sanguine_perl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.