Skip to content

Commit

Permalink
Use 'xml-js-builder' npm package instead of built-in XML manager
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jul 15, 2017
1 parent 11f59b3 commit 15e4f2d
Show file tree
Hide file tree
Showing 54 changed files with 264 additions and 233 deletions.
29 changes: 0 additions & 29 deletions lib/helper/XML.d.ts
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;
};
}

0 comments on commit 15e4f2d

Please sign in to comment.