@ooxml-sanad/schema
v0.2.0
Published
Generated OOXML types, readers, writers, validators, coverage manifest.
Readme
@ooxml/schema
Generated OOXML types, readers, writers, validators, and coverage manifest for ECMA-376.
Install
npm install @ooxml/schemaOverview
This package provides TypeScript types and XML serialization for the full OOXML schema surface. It is auto-generated from the official XSD schemas by @ooxml/codegen and includes:
- Types — One TypeScript interface per OOXML complex/simple type
- Readers — SAX-based deserialization into typed objects
- Writers — Serialization back to OOXML XML
- Validators — Structural validation against the schema
- Coverage manifest — Tracks which schema elements are implemented
Namespaces covered
wml, dml-main, dml-wordprocessingDrawing, dml-picture, dml-chart, dml-chartDrawing, dml-diagram, dml-spreadsheetDrawing, math, vml, vml-office, vml-word, vml-excel, vml-powerpoint, opc-content-types, opc-core-properties, opc-relationships, opc-digital-signature, sml, pml, bibliography, characteristics, custom-xml, doc-props-custom, doc-props-extended, doc-props-vt, relationships, schema-library, shared-types
Usage
import { readFileSync } from '@ooxml/schema/runtime';
import type { CT_Document } from '@ooxml/schema/generated/wml/types';License
MIT
