Socket
Socket
Sign inDemoInstall

xmlbuilder

Package Overview
Dependencies
0
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.0.1 to 13.0.2

25

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [13.0.1] - 2019-05-10
- Corrected typings for doctype and character data nodes. See [#211](https://github.com/oozcitak/xmlbuilder-js/issues/211).
## [13.0.0] - 2019-05-07

@@ -495,6 +499,6 @@

[0.3.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.0...v0.3.1
[0.3.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.1...v0.3.2
[0.3.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.2...v0.3.3
[0.3.10]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.3...v0.3.10
[0.3.11]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.10...v0.3.11
[0.3.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.1...v0.3.2
[0.3.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.2...v0.3.3
[0.4.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.11...v0.4.0

@@ -510,10 +514,2 @@ [0.4.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.0...v0.4.1

[1.1.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.1...v1.1.2
[10.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.7...v10.0.0
[10.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.0.0...v10.1.0
[10.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.0...v10.1.1
[11.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.1...v11.0.0
[11.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.0...v11.0.1
[12.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.1...v12.0.0
[12.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v12.0.0...v12.0.1
[13.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v12.0.1...v13.0.0
[2.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.2...v2.0.0

@@ -562,1 +558,10 @@ [2.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.0.0...v2.0.1

[9.0.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.4...v9.0.7
[10.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.7...v10.0.0
[10.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.0.0...v10.1.0
[10.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.0...v10.1.1
[11.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.1...v11.0.0
[11.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.0...v11.0.1
[12.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.1...v12.0.0
[12.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v12.0.0...v12.0.1
[13.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v12.0.1...v13.0.0
[13.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v13.0.0...v13.0.1

19

lib/XMLNode.js

@@ -568,3 +568,3 @@ // Generated by CoffeeScript 2.4.1

importDocument(doc) {
var clonedRoot;
var child, clonedRoot, j, len, ref1;
clonedRoot = doc.root().clone();

@@ -574,2 +574,19 @@ clonedRoot.parent = this;

this.children.push(clonedRoot);
// set properties if imported element becomes the root node
if (this.type === NodeType.Document) {
clonedRoot.isRoot = true;
clonedRoot.documentObject = this;
this.rootObject = clonedRoot;
// set dtd name
if (this.children) {
ref1 = this.children;
for (j = 0, len = ref1.length; j < len; j++) {
child = ref1[j];
if (child.type === NodeType.DocType) {
child.name = clonedRoot.name;
break;
}
}
}
}
return this;

@@ -576,0 +593,0 @@ }

{
"name": "xmlbuilder",
"version": "13.0.1",
"version": "13.0.2",
"keywords": [

@@ -36,5 +36,4 @@ "xml",

"prepublishOnly": "coffee -co lib src",
"postpublish": "rm -rf lib",
"test": "nyc mocha \"test/**/*.coffee\""
}
}

@@ -1,7 +0,1 @@

// Type definitions for xmlbuilder
// Project: https://github.com/oozcitak/xmlbuilder-js
//
// Original definitions (https://github.com/DefinitelyTyped/DefinitelyTyped) by:
// Wallymathieu <https://github.com/wallymathieu>
// GaikwadPratik <https://github.com/GaikwadPratik>

@@ -12,2 +6,9 @@ import { Writable } from 'stream';

/**
* Type definitions for [xmlbuilder](https://github.com/oozcitak/xmlbuilder-js)
*
* Original definitions on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) by:
* - Wallymathieu <https://github.com/wallymathieu>
* - GaikwadPratik <https://github.com/GaikwadPratik>
*/
declare namespace xmlbuilder {

@@ -25,15 +26,19 @@ /**

xmldecOrOptions?: CreateOptions, doctypeOrOptions?: CreateOptions,
options?: CreateOptions): XMLElement | XMLElement;
options?: CreateOptions): XMLElement;
/**
* Defines the options used while creating an XML document with the `create`
* function.
*/
interface CreateOptions {
/**
* A version number string, e.g. 1.0
* A version number string, e.g. `1.0`
*/
version?: string;
/**
* Encoding declaration, e.g. UTF-8
* Encoding declaration, e.g. `UTF-8`
*/
encoding?: string;
/**
* Standalone document declaration: true or false
* Standalone document declaration: `true` or `false`
*/

@@ -56,7 +61,7 @@ standalone?: boolean;

/**
* Whether nodes with null values will be kept or ignored
* Whether nodes with `null` values will be kept or ignored
*/
keepNullNodes?: boolean;
/**
* Whether attributes with null values will be kept or ignored
* Whether attributes with `null` values will be kept or ignored
*/

@@ -88,3 +93,3 @@ keepNullAttributes?: boolean;

* The default XML writer to use for converting nodes to string.
* If the default writer is not set, the built-in XMLStringWriter
* If the default writer is not set, the built-in `XMLStringWriter`
* will be used instead.

@@ -95,2 +100,5 @@ */

/**
* Defines the functions used for converting values to strings.
*/
interface XMLStringifier {

@@ -142,27 +150,27 @@ /**

/**
* Converts Doctype public identifier to string
* Converts DocType public identifier to string
*/
dtdPubID?: (v: any) => string;
/**
* Converts Doctype system identifier to string
* Converts DocType system identifier to string
*/
dtdSysID?: (v: any) => string;
/**
* Converts !ELEMENT node content inside Doctype to string
* Converts `!ELEMENT` node content inside Doctype to string
*/
dtdElementValue?: (v: any) => string;
/**
* Converts !ATTLIST node type inside Doctype to string
* Converts `!ATTLIST` node type inside DocType to string
*/
dtdAttType?: (v: any) => string;
/**
* Converts !ATTLIST node default value inside Doctype to string
* Converts `!ATTLIST` node default value inside DocType to string
*/
dtdAttDefault?: (v: any) => string;
/**
* Converts !ENTITY node content inside Doctype to string
* Converts `!ENTITY` node content inside Doctype to string
*/
dtdEntityValue?: (v: any) => string;
/**
* Converts !NOTATION node content inside Doctype to string
* Converts `!NOTATION` node content inside Doctype to string
*/

@@ -184,5 +192,5 @@ dtdNData?: (v: any) => string;

*
* _Note:_ Since JS objects cannot contain duplicate keys, multiple text nodes
* can be created by adding some unique text after each object key.
* For example: `{ '#text1': 'some text', '#text2': 'more text' };`
* _Note:_ Since JS objects cannot contain duplicate keys, multiple text
* nodes can be created by adding some unique text after each object
* key. For example: `{ '#text1': 'some text', '#text2': 'more text' };`
*/

@@ -207,3 +215,3 @@ convertTextKey?: string;

/**
* Escapes special characters in text
* Escapes special characters in text.
*/

@@ -213,3 +221,3 @@ textEscape?: (v: string) => string;

/**
* Escapes special characters in attribute values
* Escapes special characters in attribute values.
*/

@@ -219,2 +227,5 @@ attEscape?: (v: string) => string;

/**
* Represents a writer which outputs an XML document.
*/
interface XMLWriter {

@@ -246,3 +257,4 @@ /**

*/
attribute?: (att: XMLAttribute, options: WriterOptions, level: number) => any
attribute?: (att: XMLAttribute, options: WriterOptions,
level: number) => any

@@ -265,3 +277,4 @@ /**

*/
comment?: (node: XMLComment, options: WriterOptions, level: number) => any
comment?: (node: XMLComment, options: WriterOptions,
level: number) => any

@@ -275,3 +288,4 @@ /**

*/
declaration?: (node: XMLDeclaration, options: WriterOptions, level: number) => any
declaration?: (node: XMLDeclaration, options: WriterOptions,
level: number) => any

@@ -288,3 +302,4 @@ /**

*/
docType?: (node: XMLDocType, options: WriterOptions, level: number) => any
docType?: (node: XMLDocType, options: WriterOptions,
level: number) => any

@@ -303,3 +318,4 @@ /**

*/
element?: (node: XMLElement, options: WriterOptions, level: number) => any
element?: (node: XMLElement, options: WriterOptions,
level: number) => any

@@ -313,3 +329,4 @@ /**

*/
processingInstruction?: (node: XMLProcessingInstruction, options: WriterOptions, level: number) => any
processingInstruction?: (node: XMLProcessingInstruction,
options: WriterOptions, level: number) => any

@@ -335,3 +352,3 @@ /**

/**
* Writes an attribute node (!ATTLIST) inside the DTD.
* Writes an attribute node (`!ATTLIST`) inside the DTD.
*

@@ -342,6 +359,7 @@ * @param node - current node

*/
dtdAttList?: (node: XMLDTDAttList, options: WriterOptions, level: number) => any
dtdAttList?: (node: XMLDTDAttList, options: WriterOptions,
level: number) => any
/**
* Writes an element node (!ELEMENT) inside the DTD.
* Writes an element node (`!ELEMENT`) inside the DTD.
*

@@ -352,6 +370,7 @@ * @param node - current node

*/
dtdElement?: (node: XMLDTDElement, options: WriterOptions, level: number) => any
dtdElement?: (node: XMLDTDElement, options: WriterOptions,
level: number) => any
/**
* Writes an entity node (!ENTITY) inside the DTD.
* Writes an entity node (`!ENTITY`) inside the DTD.
*

@@ -362,6 +381,7 @@ * @param node - current node

*/
dtdEntity?: (node: XMLDTDEntity, options: WriterOptions, level: number) => any
dtdEntity?: (node: XMLDTDEntity, options: WriterOptions,
level: number) => any
/**
* Writes a notation node (!NOTATION) inside the DTD.
* Writes a notation node (`!NOTATION`) inside the DTD.
*

@@ -372,6 +392,7 @@ * @param node - current node

*/
dtdNotation?: (node: XMLDTDNotation, options: WriterOptions, level: number) => any
dtdNotation?: (node: XMLDTDNotation, options: WriterOptions,
level: number) => any
/**
* Called right after starting writing a node. This function doesn't
* Called right after starting writing a node. This function does not
* produce any output, but can be used to alter the state of the writer.

@@ -383,6 +404,7 @@ *

*/
openNode?: (node: XMLNode, options: WriterOptions, level: number) => void
openNode?: (node: XMLNode, options: WriterOptions,
level: number) => void
/**
* Called right before completing writing a node. This function doesn't
* Called right before completing writing a node. This function does not
* produce any output, but can be used to alter the state of the writer.

@@ -394,7 +416,9 @@ *

*/
closeNode?: (node: XMLNode, options: WriterOptions, level: number) => void
closeNode?: (node: XMLNode, options: WriterOptions,
level: number) => void
/**
* Called right after starting writing an attribute. This function doesn't
* produce any output, but can be used to alter the state of the writer.
* Called right after starting writing an attribute. This function does
* not produce any output, but can be used to alter the state of the
* writer.
*

@@ -405,7 +429,8 @@ * @param node - current attribute

*/
openAttribute?: (att: XMLAttribute, options: WriterOptions, level: number) => void
openAttribute?: (att: XMLAttribute, options: WriterOptions,
level: number) => void
/**
* Called right before completing writing an attribute. This function
* doesn't produce any output, but can be used to alter the state of
* does not produce any output, but can be used to alter the state of
* the writer.

@@ -417,5 +442,9 @@ *

*/
closeAttribute?: (att: XMLAttribute, options: WriterOptions, level: number) => void
closeAttribute?: (att: XMLAttribute, options: WriterOptions,
level: number) => void
}
/**
* Defines the options passed to the XML writer.
*/
interface WriterOptions {

@@ -468,2 +497,5 @@ /**

/**
* Defines the state of the writer.
*/
enum WriterState {

@@ -475,3 +507,3 @@ /**

/**
* Writer is at an opening tag, e.g. <node>
* Writer is at an opening tag, e.g. `<node>`
*/

@@ -484,3 +516,3 @@ OpenTag = 1,

/**
* Writer is at a closing tag, e.g. </node>
* Writer is at a closing tag, e.g. `</node>`
*/

@@ -499,2 +531,6 @@ CloseTag = 3

/**
* Defines the options used while creating an XML document with the `begin`
* function.
*/
interface BeginOptions {

@@ -539,3 +575,13 @@ /**

/**
* A function to be called when a chunk of XML is written.
*
* @param chunk - a chunk of string that was written
* @param level - current depth of the XML tree
*/
type OnDataCallback = (chunk: string, level: number) => void;
/**
* A function to be called when the XML doucment is completed.
*/
type OnEndCallback = () => void;

@@ -574,2 +620,5 @@

/**
* Defines the type of a node in the XML document.
*/
enum NodeType {

@@ -593,7 +642,7 @@ /**

/**
* An entity reference node inside Doctype
* An entity reference node inside DocType
*/
EntityReference = 5,
/**
* An entity declaration node inside Doctype
* An entity declaration node inside DocType
*/

@@ -622,3 +671,3 @@ EntityDeclaration = 6,

/**
* A notation declaration node inside Doctype
* A notation declaration node inside DocType
*/

@@ -635,7 +684,7 @@ NotationDeclaration = 12,

/**
* An attribute declaraiton node inside Doctype
* An attribute declaraiton node inside DocType
*/
AttributeDeclaration = 203,
/**
* An element declaration node inside Doctype
* An element declaration node inside DocType
*/

@@ -645,5 +694,15 @@ ElementDeclaration = 204

/**
* Defines the type of a node in the XML document.
*/
export import nodeType = NodeType;
/**
* Defines the state of the writer.
*/
export import writerState = WriterState;
/**
* Defines the settings used when converting the XML document to string.
*/
interface XMLToStringOptions {

@@ -684,3 +743,3 @@ /**

* The default XML writer to use for converting nodes to string.
* If the default writer is not set, the built-in XMLStringWriter
* If the default writer is not set, the built-in `XMLStringWriter`
* will be used instead.

@@ -759,3 +818,3 @@ */

*
* @param name - element node name or a JS object defining the nodes to insert
* @param name - node name or a JS object defining the nodes to insert
* @param attributes - node attributes

@@ -787,3 +846,3 @@ * @param text - node text

*
* @param name - element node name or a JS object defining the nodes to insert
* @param name - node name or a JS object defining the nodes to insert
* @param attributes - node attributes

@@ -798,3 +857,3 @@ * @param text - node text

*
* @param name - element node name or a JS object defining the nodes to insert
* @param name - node name or a JS object defining the nodes to insert
* @param attributes - node attributes

@@ -814,3 +873,3 @@ * @param text - node text

/**
* Creates a new child node and appends it to the list of child nodes.
* Creates a new element node and appends it to the list of child nodes.
*

@@ -830,3 +889,3 @@ * _Aliases:_ `nod` and `n`

/**
* Creates a new text child node and appends it to the list of child nodes.
* Creates a new text node and appends it to the list of child nodes.
*

@@ -844,3 +903,3 @@ * _Aliases:_ `txt` and `t`

/**
* Creates a new CDATA child node and appends it to the list of child nodes.
* Creates a new CDATA node and appends it to the list of child nodes.
*

@@ -858,3 +917,3 @@ * _Aliases:_ `dat` and `d`

/**
* Creates a new comment child node and appends it to the list of child nodes.
* Creates a new comment node and appends it to the list of child nodes.
*

@@ -890,3 +949,4 @@ * _Aliases:_ `com` and `c`

/**
* Creates a new raw text child node and appends it to the list of child nodes.
* Creates a new raw text node and appends it to the list of child
* nodes.
*

@@ -903,3 +963,4 @@ * _Alias:_ `r`

/**
* Creates a new processing instruction node and appends it to the list of child nodes.
* Creates a new processing instruction node and appends it to the list
* of child nodes.
*

@@ -954,4 +1015,8 @@ * _Aliases:_ `ins` and `i`

*/
declaration(version?: string | { version?: string, encoding?: string, standalone?: boolean }, encoding?: string, standalone?: boolean): XMLElement;
dec(version?: string | { version?: string, encoding?: string, standalone?: boolean }, encoding?: string, standalone?: boolean): XMLElement;
declaration(version?: string |
{ version?: string, encoding?: string, standalone?: boolean },
encoding?: string, standalone?: boolean): XMLElement;
dec(version?: string |
{ version?: string, encoding?: string, standalone?: boolean },
encoding?: string, standalone?: boolean): XMLElement;

@@ -968,4 +1033,6 @@ /**

*/
doctype(pubID?: string | { pubID?: string, sysID?: string }, sysID?: string): XMLDocType;
dtd(pubID?: string | { pubID?: string, sysID?: string }, sysID?: string): XMLDocType;
doctype(pubID?: string | { pubID?: string, sysID?: string },
sysID?: string): XMLDocType;
dtd(pubID?: string | { pubID?: string, sysID?: string },
sysID?: string): XMLDocType;

@@ -1122,11 +1189,11 @@ /**

/**
* A version number string, e.g. 1.0
* A version number string, e.g. `1.0`
*/
version: string;
/**
* Encoding declaration, e.g. UTF-8
* Encoding declaration, e.g. `UTF-8`
*/
encoding: string;
/**
* Standalone document declaration: true or false
* Standalone document declaration: `true` or `false`
*/

@@ -1136,3 +1203,3 @@ standalone: boolean;

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1184,3 +1251,3 @@ * @param options - conversion options

/**
* Creates an attribute declaration
* Creates an attribute declaration.
*

@@ -1199,7 +1266,9 @@ * _Alias:_ `att`

*/
attList(elementName: string, attributeName: string, attributeType: string, defaultValueType: string, defaultValue?: any): XMLDocType;
att(elementName: string, attributeName: string, attributeType: string, defaultValueType: string, defaultValue?: any): XMLDocType;
attList(elementName: string, attributeName: string, attributeType: string,
defaultValueType: string, defaultValue?: any): XMLDocType;
att(elementName: string, attributeName: string, attributeType: string,
defaultValueType: string, defaultValue?: any): XMLDocType;
/**
* Creates a general entity declaration
* Creates a general entity declaration.
*

@@ -1213,7 +1282,9 @@ * _Alias:_ `ent`

*/
entity(name: string, value: string | { pubID?: string, sysID?: string, nData?: string }): XMLDocType;
ent(name: string, value: string | { pubID?: string, sysID?: string, nData?: string }): XMLDocType;
entity(name: string, value: string |
{ pubID?: string, sysID?: string, nData?: string }): XMLDocType;
ent(name: string, value: string |
{ pubID?: string, sysID?: string, nData?: string }): XMLDocType;
/**
* Creates a parameter entity declaration
* Creates a parameter entity declaration.
*

@@ -1227,7 +1298,9 @@ * _Alias:_ `pent`

*/
pEntity(name: string, value: string | { pubID?: string, sysID?: string }): XMLDocType;
pent(name: string, value: string | { pubID?: string, sysID?: string }): XMLDocType;
pEntity(name: string, value: string |
{ pubID?: string, sysID?: string }): XMLDocType;
pent(name: string, value: string |
{ pubID?: string, sysID?: string }): XMLDocType;
/**
* Creates a notation declaration
* Creates a notation declaration.
*

@@ -1241,7 +1314,9 @@ * _Alias:_ `not`

*/
notation(name: string, value: { pubID?: string, sysID?: string }): XMLDocType;
not(name: string, value: { pubID?: string, sysID?: string }): XMLDocType;
notation(name: string,
value: { pubID?: string, sysID?: string }): XMLDocType;
not(name: string,
value: { pubID?: string, sysID?: string }): XMLDocType;
/**
* Creates a new CDATA child node and appends it to the list of child nodes.
* Creates a new CDATA node and appends it to the list of child nodes.
*

@@ -1258,3 +1333,4 @@ * _Alias:_ `dat`

/**
* Creates a new comment child node and appends it to the list of child nodes.
* Creates a new comment child and appends it to the list of child
* nodes.
*

@@ -1271,3 +1347,4 @@ * _Alias:_ `com`

/**
* Creates a new processing instruction node and appends it to the list of child nodes.
* Creates a new processing instruction node and appends it to the list
* of child nodes.
*

@@ -1297,3 +1374,3 @@ * _Alias:_ `ins`

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1305,3 +1382,3 @@ * @param options - conversion options

/**
* Creates a clone of this node
* Creates a clone of this node.
*/

@@ -1354,3 +1431,3 @@ clone(): XMLDocType;

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1371,7 +1448,8 @@ * @param options - conversion options

/**
* Element content*/
* Element content
*/
value: string;
/**
* Converts the node to string
* Converts the node to string.
*

@@ -1410,3 +1488,3 @@ * @param options - conversion options

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1436,3 +1514,3 @@ * @param options - conversion options

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1486,3 +1564,3 @@ * @param options - conversion options

/**
* Converts the node to string
* Converts the node to string.
*

@@ -1516,7 +1594,8 @@ * @param options - conversion options

/**
* Creates a child element node
* Creates a child element node.
*
* _Aliases:_ `ele` and `e`
*
* @param name - element node name or a JS object defining the nodes to insert
* @param name - element node name or a JS object defining the nodes
* to insert
* @param attributes - node attributes

@@ -1546,3 +1625,3 @@ * @param text - node text

/**
* Creates a new text child node and appends it to the list of child nodes.
* Creates a new text node and appends it to the list of child nodes.
*

@@ -1560,3 +1639,3 @@ * _Aliases:_ `txt` and `t`

/**
* Creates a new CDATA child node and appends it to the list of child nodes.
* Creates a new CDATA node and appends it to the list of child nodes.
*

@@ -1574,3 +1653,3 @@ * _Aliases:_ `dat` and `d`

/**
* Creates a new comment child node and appends it to the list of child nodes.
* Creates a new comment node and appends it to the list of child nodes.
*

@@ -1588,3 +1667,4 @@ * _Aliases:_ `com` and `c`

/**
* Creates a new raw text child node and appends it to the list of child nodes.
* Creates a new raw text node and appends it to the list of child
* nodes.
*

@@ -1601,3 +1681,4 @@ * _Alias:_ `r`

/**
* Creates a new processing instruction node and appends it to the list of child nodes.
* Creates a new processing instruction node and appends it to the list
* of child nodes.
*

@@ -1632,4 +1713,6 @@ * _Aliases:_ `ins` and `i`

*/
declaration(version?: string, encoding?: string, standalone?: boolean): XMLDocumentCB;
dec(version?: string, encoding?: string, standalone?: boolean): XMLDocumentCB;
declaration(version?: string, encoding?: string,
standalone?: boolean): XMLDocumentCB;
dec(version?: string, encoding?: string,
standalone?: boolean): XMLDocumentCB;

@@ -1665,3 +1748,3 @@ /**

/**
* Creates an attribute declaration
* Creates an attribute declaration.
*

@@ -1680,8 +1763,12 @@ * _Alias:_ `att`

*/
attList(elementName: string, attributeName: string, attributeType: string, defaultValueType?: string, defaultValue?: any): XMLDocumentCB;
att(elementName: string, attributeName: string, attributeType: string, defaultValueType?: string, defaultValue?: any): XMLDocumentCB;
a(elementName: string, attributeName: string, attributeType: string, defaultValueType?: string, defaultValue?: any): XMLDocumentCB;
attList(elementName: string, attributeName: string,
attributeType: string, defaultValueType?:
string, defaultValue?: any): XMLDocumentCB;
att(elementName: string, attributeName: string, attributeType: string,
defaultValueType?: string, defaultValue?: any): XMLDocumentCB;
a(elementName: string, attributeName: string, attributeType: string,
defaultValueType?: string, defaultValue?: any): XMLDocumentCB;
/**
* Creates a general entity declaration
* Creates a general entity declaration.
*

@@ -1695,7 +1782,9 @@ * _Alias:_ `ent`

*/
entity(name: string, value: string | { pubID?: string, sysID?: string, nData?: string }): XMLDocumentCB;
ent(name: string, value: string | { pubID?: string, sysID?: string, nData?: string }): XMLDocumentCB;
entity(name: string, value: string |
{ pubID?: string, sysID?: string, nData?: string }): XMLDocumentCB;
ent(name: string, value: string |
{ pubID?: string, sysID?: string, nData?: string }): XMLDocumentCB;
/**
* Creates a parameter entity declaration
* Creates a parameter entity declaration.
*

@@ -1709,7 +1798,9 @@ * _Alias:_ `pent`

*/
pEntity(name: string, value: string | { pubID?: string, sysID?: string }): XMLDocumentCB;
pent(name: string, value: string | { pubID?: string, sysID?: string }): XMLDocumentCB;
pEntity(name: string, value: string |
{ pubID?: string, sysID?: string }): XMLDocumentCB;
pent(name: string, value: string |
{ pubID?: string, sysID?: string }): XMLDocumentCB;
/**
* Creates a notation declaration
* Creates a notation declaration.
*

@@ -1723,7 +1814,9 @@ * _Alias:_ `not`

*/
notation(name: string, value: { pubID?: string, sysID?: string }): XMLDocumentCB;
not(name: string, value: { pubID?: string, sysID?: string }): XMLDocumentCB;
notation(name: string,
value: { pubID?: string, sysID?: string }): XMLDocumentCB;
not(name: string,
value: { pubID?: string, sysID?: string }): XMLDocumentCB;
/**
* Ends the document.
* Ends the document and calls the `onEnd` callback function.
*/

@@ -1736,2 +1829,4 @@ end(): void;

* _Alias:_ `u`
*
* @returns the document builder object
*/

@@ -1738,0 +1833,0 @@ up(): XMLDocumentCB;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc