Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: XML::Twig - setting text and elements

by slugger415 (Monk)
on Sep 09, 2015 at 16:40 UTC ( [id://1141441]=note: print w/replies, xml ) Need Help??


in reply to Re: XML::Twig - setting text and elements
in thread XML::Twig - setting text and elements

Sorry i wasn't clear about that. I'd like everything inside of linktext to go inside of xref.

<xref><keyword conref="ds"/> support for IPv6 addresses</xref>

I also didn't mention there might be other elements midway.

<linktext><keyword conref="ds"/> support for <b>IPv6</b> addresses</li +nktext>

So I need to iterate through the @children array and handle each child, which is either text or an element.

thanks, will try these other suggestions.

Replies are listed 'Best First'.
Re^3: XML::Twig - setting text and elements
by Anonymous Monk on Sep 09, 2015 at 22:44 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-16 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found