XML_MERGE(1p)

πŸ’– XML_MERGE(1p) πŸ’–

okay bestie, gather round, this is a page from the User Contributed Perl Documentation and it's about to be your new fave little command 🫢


✨ NAME ✨

xml_merge β€” the girlypop that merges back XML files you split with xml_split πŸ’…


🌸 DESCRIPTION 🌸

so like, xml_merge takes a bunch of xml files that were split apart using xml_split and puts them back together into one single file. that's it. that's the whole vibe. it's giving ✨reassembly✨, it's giving restoration era, it's giving "we can rebuild her" πŸ˜­πŸ’–


πŸŽ€ OPTIONS πŸŽ€

  • -o <output_file> β€” tells it where to write the merged file. and if you don't use this? the program's output just goes straight to STDOUT, no cap, right into your terminal like a little surprise πŸ¦‹
  • -i β€” the files use XInclude instead of processing instructions (basically they were made with the -i option back over in xml_split, iykyk) πŸ’«
  • -v β€” verbose output, so it tells you what it's doing instead of being mysterious and silent πŸ™ˆ
  • -V β€” outputs the version and then exits, periodt πŸ‘‘
  • -h β€” short help, the lil quickie version 🌸
  • -m β€” man page time! (heads up though: this one requires pod2text to be in the path, or it's not happening bestie) πŸ’€

⭐ EXAMPLES ⭐

here's the energy, fr fr:

xml_merge foo-00.xml             # output to stdout
xml_merge -o foo.xml foo-00.xml  # output to foo.xml

first one just yeets it at stdout, second one tucks it all neatly into foo.xml πŸŽ€


🌈 SEE ALSO 🌈

  • XML::Twig
  • xml_split

go check 'em out, they're iconic πŸ’–


πŸ’€ TODO/BUGS πŸ’€

literally nothing here. the section exists and it is empty. no bugs to report, no to-dos pending. she's flawless, she's booked, she's thriving βœ¨πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Michel Rodriguez <mirod@cpan.org> β€” the actual legend who made this happen 🫢


πŸ“œ LICENSE πŸ“œ

this tool is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay πŸ’…


and that's the whole page bestie!! this lil gem shipped with perl v5.40.1 and the page is dated 2025-12-18, so go forth and merge those XMLs, you absolute main character πŸŒΈπŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from