We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This package has a simple interface and TypeScript types can be added by including an index.d.ts file containing:
interface XMLElement { name: string; attributes: { [name: string]: string; }; value: string; children: XMLElement[]; } export default class XMLParser { constructor(); public parseFromString(string: string): XMLElement; public toString(xml: XMLElement): string; public getElementsByTagName(tagName: string): XMLElement[]; }
The text was updated successfully, but these errors were encountered:
For React users:
declare module 'react-xml-parser' { interface XMLElement { name: string; attributes: { [name: string]: string; }; value: string; children: XMLElement[]; getElementsByTagName(tagName: string): XMLElement[]; } export default class XMLParser { constructor(); public parseFromString(string: string): XMLElement; public toString(xml: XMLElement): string; } }
Sorry, something went wrong.
No branches or pull requests
This package has a simple interface and TypeScript types can be added by including an index.d.ts file containing:
The text was updated successfully, but these errors were encountered: