Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have spent a few hours trying to write a program in perl that will find a node in one file using XPath and then find a node in a second file using an XPath. Then replace the first node with the second and write out the modified file.
I did not see how to replace the node with XML::XPath and I could not get XML::Twig to find my paths. I gave up at one point and wrote it in ruby:
This is a bit slow but works and was easy to find and get to work. Maybe there are just too many XML packages available in Perl and that makes it hard to find the right one. Anyway I would love to find a solution to this problem with a perl package. Thanks in advance.
-- gam3 A picture is worth a thousand words, but takes 200K. In reply to XPATH problems by gam3
|
|