XML-XREAD(1)

πŸ’– NAME πŸ’–

xml-xread β€” a simple command-line XML parsing application, and honestly? she's little but she works. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

xml-xread [options] document.xml

🌸 DESCRIPTION 🌸

okay so bestie, xml-xread is a simple command-line XML parser. like, that's her whole job and she's not pretending otherwise πŸ’…

she's literally just a tiny little wrapper around the JAXP XMLReader, but with catalog support baked in so you don't have to suffer. no cap.

⚠️ real talk though: the process ends with error-level 1 if there were errors. she will absolutely let you know. 😭

✨ OPTIONS ✨

command-line options are below, bestie, read them all, they're short:

  • -c catalogfile β€” load a particular catalog file. yes, that catalog file. the one you point at. πŸŽ€
  • -w β€” do a well-formed parse, not a validating parse. lowkey the chill option.
  • -v β€” do a validating parse. this one is the default, so if you don't say anything, this is the vibe you get πŸ‘‘
  • -s β€” enable W3C XML Schema validation. she's fancy now 🌈
  • -n β€” do a namespace-ignorant parse. namespaces? never heard of her πŸ™ˆ
  • -N β€” do a namespace-aware parse. this one is the default, so she's actually paying attention to namespaces unless you tell her not to ✨
  • -d integer β€” set the debug level. warnings get shown if the debug level is > 2. so like, crank it past 2 if you want the tea πŸ“
  • -E integer β€” set the maximum number of errors to display. because sometimes you just need to cap the chaos πŸ’€

and that's the whole page, bestie, go parse something iconic 🫢

this lil cutie comes to you from xml-commons-resolver, dated 11 April 2013 β€” old enough to be vintage, still serving main character energy πŸ‘‘πŸ’–βœ¨