1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

demonstrate searching xsd (xml schema)

My comments perhaps diminish the value of this oneliner.

But I felt it helpful to add some context for future travelers.
This commit is contained in:
Eli Flanagan 2021-04-12 10:59:14 -04:00
parent 7de79470c5
commit e76db8261a

View 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