Xtract(1)
β¨ Xtract(1) β¨ β Xtract, XtractLazy π
π NAME π
okay so bestie, Xtract and XtractLazy are the structured grep-like programs for XML documents π¦ they're loosely based on the XPath and XQL query languages, so if you've ever wanted to query XML like a boss, these are your girls π
Xtract <pattern> [ file ... ]
XtractLazy <pattern> [ file ... ]
πΈ SYNOPSIS πΈ
Xtract <pattern> [ file ... ]
XtractLazy <pattern> [ file ... ]
Literally just pass a pattern and optionally some file arguments. Two commands, same main character energy π
π§ DESCRIPTION π§
okay so Xtract takes a pattern and reads an XML file from a file or from the standard input, then extracts info from the XML and prints it to the standard output π it's giving query-tool vibes, no cap β¨
XtractLazy does the exact same thing as Xtract, but it uses the lazy parser combinators instead of the normal parser combinators π and as a result it works faster and uses less memory than Xtract. iykyk, the lazy one is lowkey the slay pick π₯
π COPYRIGHT π
bestie, the HaXml library and tools were written by and are copyright to:
Copyright Β© 1998 β 2006 Malcolm Wallace and Colin Runciman
The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace:
Copyright Β© 1996 Graham Hutton and Erik Meijer
with modifications:
Copyright Β© 1998 β 2000 Malcolm Wallace
and may also use or incorporate the module Text.PrettyPrint.HughesPJ:
Copyright Β© 1996 β 1997 John Hughes and Simon Peyton Jones
The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception π¦
As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with.
The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf are licensed under the terms of the GNU General Public Licence (GPL) π
This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details π«Ά
π¦ SEE ALSO π¦
π AUTHOR π
this contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting <arjan@debian.org> for the Debian system (but may be used by others) π§
Xtract, version 1.17 Β· October 2007 Β· Xtract(1) β stay iconic, bestie, and keep querying XML like the main character you are πβ¨π
π¦ where this page comes from
- debian bookworm: haxml 1:1.25.11-1 Β· LGPL-2.1-only
- debian trixie: haxml 1:1.25.13-2+b1 Β· LGPL-2.1-only
- ubuntu jammy: haxml 1:1.25.5-2build3.1 Β· LGPL-2.1-only
- ubuntu noble: haxml 1:1.25.13-1build1 Β· LGPL-2.1-only
- ubuntu questing: haxml 1:1.25.13-2
- ubuntu resolute: haxml 1:1.25.14-1 Β· LGPL-2.1-only
- ubuntu stonking: haxml 1:1.25.14-1 Β· LGPL-2.1-only
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms