API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classXmlFactory
AssetFactory implementation that loads XML files and produces a parsed Document via the browser's built-in DOMParser. Throws if the response body is not well-formed XML. Use the returned `Document` directly with standard DOM APIs — `doc.querySelector`, `doc.getElementsByTagName`, etc. — or pass it to a format-specific parser (e.g. for Tiled TMX, BMFont, or TexturePacker XML atlas files).
import { XmlFactory } from '@codexo/exojs' AssetFactory implementation that loads XML files and produces a parsed Document via the browser's built-in DOMParser.
Throws if the response body is not well-formed XML. Use the returned `Document` directly with standard DOM APIs — `doc.querySelector`, `doc.getElementsByTagName`, etc. — or pass it to a format-specific parser (e.g. for Tiled TMX, BMFont, or TexturePacker XML atlas files).
new(): XmlFactory create(source: string): Promise<Document> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<string> revokeObjectUrl(objectUrl: string): void storageName: "xml"