Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^4: xml_merge

by mirod (Canon)
on Feb 11, 2005 at 12:07 UTC ( #430062=note: print w/replies, xml ) Need Help??

in reply to Re^3: xml_merge
in thread xml_merge

my twig is v.3.14

That's the explanation. You NEED 3.16. First the split on a given level (-l option, or default) will not work, and then merging back will not work because of the way processing instructions were handled (NOT!) when parsing with the twig_roots and twig_print_outside_roots options.

I am afraid you will have to upgrade ;--)

3.16 is tested with perl 5.8.5/expat 1.95.7/XML::Parser 2.34/whatever else is useful on linux, perl 5.8.6/expat 1.95.8/ recent version of other modules on Mac OS 10.3, more tests are on the way.

Replies are listed 'Best First'.
Re^5: xml_merge
by morfeas (Novice) on Feb 11, 2005 at 12:54 UTC
    Please accept my appologies for the spended time on my answer. Updated the Twig to 3.16 and everything work fine ;). I was wondering : Can we XSLT the just splited xmls and then merge them in one (big and transformed) xml? is there any option in Twig or just XSLT the spliteed xmls and then merge them? Thnx in advance

      As long as the file name remains the same and the PI is the enclosing document remains intact and in the same place, you can certainly process the generated XML chunks in any way you want.

      I certainly see a usage for these tools to extract a few small parts of a huge document, transform those and then put back the transformed documents in the original document. Note though that in this case you are just doing what XML::Twig already does normally when using the twig_roots/twig_print_outside_roots options (see Building_an_XML_filter for example).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://430062]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-12-16 06:09 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (449 votes). Check out past polls.