from Hacker News

XML: Twig – A Time-Tested Powerhouse for Processing XML

by oalders on 12/9/24, 10:39 PM with 8 comments

  • by 22c on 12/10/24, 2:19 AM

    As a polyglot, sometimes the existence of a certain library or interface greatly influences what language I decide to write something in.

    Twig is indeed time-tested, but I don't see a good reason to use Twig unless you are already using Perl. I was kinda hoping this would give reasons to use Twig over proven XML libraries from other languages, but I suppose it makes sense given this article was published to a Perl specific website.

    Nice write-up, though!

  • by hilti on 12/10/24, 5:29 AM

    Thank you for this article! I can also recommend Xidel which is my powerhouse for processing XML, JSON and HTML
  • by robertlagrant on 12/10/24, 2:00 PM

    It's 2024 and I'm here for new articles about XML and Perl.
  • by ValtteriL on 12/10/24, 6:27 AM

    What a nice surprise seeing trusty Twig here. Breaks my heart that I have less and less use cases for Perl.
  • by warpspin on 12/10/24, 10:54 PM

    Hmm, always preferred to use libxml2, even in Perl.