in reply to Re^3: Conatenating XML files
in thread Concatenating XML files

To clear things up a bit: all xml files to be concatenated have to have the same, known root tag (and the script will probably warn if it's wrong, and skip that file).

Additionally the result file will surely fit into memory (I'd be very surprised if a result file even approaches 50MB), so no need to worry.

And yes, there is a DTD available, but sadly it doesn't match the required structure of the XML files. The developers "solved" this problem by not referencing the DTD.

Replies are listed 'Best First'.
Re^5: Conatenating XML files
by mirod (Canon) on Jul 30, 2007 at 18:37 UTC

    OK, so either an XML::LibXML or an XML::Twig solution will work.

    Your comment "there is a DTD available, but sadly it doesn't match the required structure of the XML files. The developers "solved" this problem by not referencing the DTD" is both hilarious, sad, and even more sadly not surprising at all. A _LOT_ of XML in the Real World (tm) is of tragically bad quality.