MKXMLTYPE(1p)

πŸ“¦
version 0.69 Β· 2 versions
  • 0.69 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.69 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

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

ok so this is a page from the User Contributed Perl Documentation section, bestie β€” it's mkxmltype, and we're gonna get you comfy with it ✨


🌸 NAME 🌸

mkxmltype β€” make XML analysis using XML::DT πŸ¦‹


✨ SYNOPSIS ✨

mkxmltype <xmlfile>

πŸ’… DESCRIPTION πŸ’…

okay so basically this command is out here trying to infer DTD and Camlila-like types for one specific XML file. that's the whole vibe. it looks at your file and goes "hmm, what's the shape of this thing" πŸŽ€


🌈 Options 🌈

no cap, here's every single one, in order:

  • -latin1 β€” the input file encoding gets forced to latin1. periodt.
  • -html β€” uses the html (libxml2) parser instead 🧚
  • -show_att β€” shows you the attribute values πŸ‘€
  • -expand_att_id β€” yep, it's here. the original doesn't say a single word more about it and I'm not about to make stuff up, so that's all we got πŸ™ˆ
  • -lines=20000 β€” only reads the first 20000 lines of the XML file. like, just the beginning, not the whole novel πŸ“–
  • -t β€” also listed, also no description. mysterious main character energy fr fr πŸ’€
  • -class β€” <div class="a" id="b"> gets treated as div+a+b ✨ iconic
  • -shell β€” drops you into interactive shell mode, so you can hang out and poke around 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


just a lil reminder: run it on an actual <xmlfile> or it's giving nothing πŸ’–

ok that's the whole page, bestie, you're all caught up πŸ’… this was perl v5.36.0 documentation from 2022-12-10, so it's lowkey vintage but still slaying 🌸 go forth and analyze some XML πŸ‘‘

πŸ“¦ where this page comes from