Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: LiBXML: New markup while preserving earlier tags?

by Anonymous Monk
on Mar 29, 2018 at 01: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 (Archbishop) on Jun 23, 2018 at 20: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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2021-01-28 08:47 GMT
Find Nodes?
    Voting Booth?