mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Merge pull request #43 from efx/explore-a-xml-document
demonstrate searching xsd (xml schema)
This commit is contained in:
commit
617a3d7e7e
1 changed files with 6 additions and 0 deletions
6
cool_oneliners/xml_search_schema.nu
Normal file
6
cool_oneliners/xml_search_schema.nu
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Search the WordprocessingML XML Schema definition file for a simple type by name
|
||||
# You'll need the wml.xsd file.
|
||||
# To get that file, first download the following zip:
|
||||
# https://www.ecma-international.org/wp-content/uploads/ECMA-376-Fifth-Edition-Part-1-Fundamentals-And-Markup-Language-Reference.zip
|
||||
# Then, unzip the contents of OfficeOpenXML-XMLSchema-Strict.zip.
|
||||
open wml.xsd | from xml | get schema.children.simpleType | flatten | where name =~ 'BrType' | get children.restriction.children.enumeration.attributes
|
Loading…
Add table
Add a link
Reference in a new issue