Minimal, dependency-free helpers for parsing QTI XML with DOMParser.
This library provides small, focused utilities for parsing QTI 3.0 XML using the runtime's DOMParser.
npm install qti-xml-core- Uses the runtime DOMParser when available; falls back to @xmldom/xmldom in Node.
import {
extractItemIdentifier,
parseAssessmentItemRefsFromXml,
parseAssessmentTestXml,
parseResultItemRefsFromXml,
parseResultsXmlRaw,
resolveAssessmentHref,
resolveRelativePath,
} from "qti-xml-core";- 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
This package is published to npm as qti-xml-core.