Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: XML::Twig and the monasteries XML ( normalize_space normalise_space )

by Anonymous Monk
on Jun 14, 2019 at 00:48 UTC ( [id://11101321]=note: print w/replies, xml ) Need Help??


in reply to Re^4: XML::Twig and the monasteries XML ( normalize_space normalise_space )
in thread XML::Twig and the monasteries XML

Not for me. It would help if you showed your code. Probably a version problem?

Eh?

print pp $twig->parse( $data)->simplify( normalise_space => 111 );
XML::Twig 3.49
  • Comment on Re^5: XML::Twig and the monasteries XML ( normalize_space normalise_space )
  • Download Code

Replies are listed 'Best First'.
Re^6: XML::Twig and the monasteries XML ( normalize_space normalise_space )
by LanX (Saint) on Jun 14, 2019 at 09:38 UTC
    Thanks, that is working now.

    I had the same code but I used 1 not 111 ! (?)

    print pp $twig->parse( $data)->simplify(normalise_space => 1);

    Couldn't find the difference documented in XML::Twig...

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2026-02-08 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.