-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 'xml-js-builder' npm package instead of built-in XML manager
- Loading branch information
1 parent
11f59b3
commit 15e4f2d
Showing
54 changed files
with
264 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +0,0 @@ | ||
export interface XMLElement { | ||
declaration?: any; | ||
attributes?: any; | ||
elements: XMLElement[]; | ||
name?: string; | ||
type?: string; | ||
findIndex(name: string): number; | ||
find(name: string): XMLElement; | ||
findMany(name: string): XMLElement[]; | ||
findText(): string; | ||
findTexts(): string[]; | ||
} | ||
export declare abstract class XML { | ||
static parse(xml: string | Int8Array): XMLElement; | ||
static parseJSON(xml: string | Int8Array, compact?: boolean): XMLElement; | ||
static parseXML(xml: string | Int8Array): XMLElement; | ||
static toJSON(xml: string): string; | ||
static toXML(xml: XMLElement | any, includeDeclaration?: boolean): string; | ||
private static explodeName(name, attributes); | ||
static createElement(name: string, attributes?: any, text?: string): { | ||
type: string; | ||
name: string; | ||
attributes: any; | ||
elements: any[]; | ||
ele(name: string, attributes?: any, insertAtStart?: boolean): any; | ||
add(element: any): any; | ||
eleFn: (name: string, attributes?: any, text?: string) => any; | ||
}; | ||
} | ||
Oops, something went wrong.