Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: LiBXML: New markup while preserving earlier tags?

by Anonymous Monk
on Mar 28, 2018 at 21:13 UTC ( #1211949=note: print w/replies, xml ) Need Help??


in reply to LiBXML: New markup while preserving earlier tags?

What immediately pops into my mind is that this is exactly the sort of thing that you can do with XSLT, which LibXML also fully supports. And in any case, no, you should not "circumvent" anything. Do your transformations within the DOM. Or, consider an alternate package such as XML::Twig which takes a fundamentally different approach to the problem.
  • Comment on Re: LiBXML: New markup while preserving earlier tags?

Replies are listed 'Best First'.
Re^2: LiBXML: New markup while preserving earlier tags?
by Your Mother (Bishop) on Jun 23, 2018 at 16:00 UTC

    Ah, you got one under the radar; garnered some upvotes or else I'd let it go. Shame on both of us. And me without my coffee.

    What immediately pops into my mind, is a code phrase for you. If you want to be stealthy, try indicating that you perhaps thought about a problem instead of coughed up whatever hair ball of buzzwords wouldn't pass. You've been recommending XSLT lately. Don't do it unless you're ready to show code. It's difficult and unpleasant and recommending it to beginners without any support is uncool. You also recommended XML::Twig without code. Unhelpful.

    Look at the effort between your reply and choroba's reply. The care. The knowledge. The willingness to spend some time understanding a question and really try to help.

    libxml does not "support" libxslt. They are separate packages. A perusal of the XML::LibXML distribution shows not one XSLT package included either. There is a separate distribution for that; XML::LibXSLT.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2019-04-20 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (110 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 18:53 UTC) Welcome new users!