Skip to content

metyatech/qti-xml-core

qti-xml-core

Minimal, dependency-free helpers for parsing QTI XML with DOMParser.

Overview

This library provides small, focused utilities for parsing QTI 3.0 XML using the runtime's DOMParser.

Install

npm install qti-xml-core

Setup

  • Uses the runtime DOMParser when available; falls back to @xmldom/xmldom in Node.

Usage

import {
  extractItemIdentifier,
  parseAssessmentItemRefsFromXml,
  parseAssessmentTestXml,
  parseResultItemRefsFromXml,
  parseResultsXmlRaw,
  resolveAssessmentHref,
  resolveRelativePath,
} from "qti-xml-core";

Development commands

  • Build: npm run build
  • Test: npm test
  • Lint: npm run lint
  • Format: npm run format
  • Typecheck: npm run typecheck
  • Verify (all checks): npm run verify

Publishing

This package is published to npm as qti-xml-core.

Related Documents

About

Minimal, dependency-free helpers for parsing QTI 3.0 XML with DOMParser.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors