Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Strip XML document

by corfuitl (Sexton)
on Dec 19, 2018 at 16:12 UTC ( [id://1227470]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Strip XML document
in thread Strip XML document

Thanks for your efforts

This works fine, however, how is it possible to export the formatting tags for the <seg>? I mean, the and other similar tags may appear.

Replies are listed 'Best First'.
Re^5: Strip XML document
by poj (Abbot) on Dec 19, 2018 at 17:22 UTC

    try

    # ($props{$lang} = $tuv->findvalue('seg')) =~ s{\n}{<lb/>}g; my $seg = $tuv->findnodes('seg')->get_node(1); #first $props{$lang} = join '',map {$_->toString} $seg->childNodes(); $props{$lang} =~ s{\n}{<lb/>}g;
    poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-23 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found