readXML() — astro Function Reference
Architecture documentation for the readXML() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b2ff3d1c_3baf_6707_d502_0f4b2a220a11["readXML()"] 4b1e6526_afae_1cc3_9eb4_67fe4c476b26["test-utils.js"] b2ff3d1c_3baf_6707_d502_0f4b2a220a11 -->|defined in| 4b1e6526_afae_1cc3_9eb4_67fe4c476b26 style b2ff3d1c_3baf_6707_d502_0f4b2a220a11 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/sitemap/test/test-utils.js lines 19–29
export function readXML(fileOrPromise) {
const parseString = xml2js.parseString;
return Promise.resolve(fileOrPromise).then((xml) => {
return new Promise((resolve, reject) => {
parseString(xml, function (err, result) {
if (err) return reject(err);
resolve(result);
});
});
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does readXML() do?
readXML() is a function in the astro codebase, defined in packages/integrations/sitemap/test/test-utils.js.
Where is readXML() defined?
readXML() is defined in packages/integrations/sitemap/test/test-utils.js at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free