API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classXmlFactory

@codexo/exojs / resources / stable

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).

1
props
5
methods
0
events
Import
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).

Constructors 1
new(): XmlFactory
Methods 5
create(source: string): Promise<Document>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<string>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "xml"
Source