Socket
Socket
Sign inDemoInstall

xmlbuilder

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlbuilder - npm Package Compare versions

Comparing version 13.0.0 to 13.0.1

332

CHANGELOG.md

@@ -5,12 +5,20 @@ # Change Log

## [13.0.0] - 2019-05-07
- Rewrote all TypeSript typings to be strictly compatible with the API. This is a breaking change for TypeScript users only.
## [12.0.1] - 2019-04-30
- Added option for pretty printing attributes.
## [12.0.0] - 2019-04-03
- Removed support for node.js 4.0 and 5.0. Minimum required version is now 6.0.
- Removed support for node.js 4.0 and 5.0\. Minimum required version is now 6.0.
## [11.0.1] - 2019-03-22
- Added TypeScript typings. See [#200](https://github.com/oozcitak/xmlbuilder-js/issues/200).
## [11.0.0] - 2019-02-18
- Calling `end()` with arguments no longer overwrites writer options. See [#120](https://github.com/oozcitak/xmlbuilder-js/issues/120).

@@ -25,5 +33,7 @@ - Added writer state and customizable space and endline functions to help customize writer behavior. Also added `openNode` and `closeNode` functions to writer. See [#193](https://github.com/oozcitak/xmlbuilder-js/issues/193).

- Renamed stringify functions. See [#194](https://github.com/oozcitak/xmlbuilder-js/issues/194):
* `eleName` -> `name`
* `attName` -> `name`
* `eleText` -> `text`
- `eleName` -> `name`
- `attName` -> `name`
- `eleText` -> `text`
- Fixed argument order for `attribute` function in the writer. See [#196](https://github.com/oozcitak/xmlbuilder-js/issues/196).

@@ -44,8 +54,11 @@ - Added `openAttribute` and `closeAttribute` functions to writer. See [#196](https://github.com/oozcitak/xmlbuilder-js/issues/196).

## [10.1.1] - 2018-10-24
- Fixed an edge case where a null node at root level would be printed although `skipNullNodes` was set. See [#187](https://github.com/oozcitak/xmlbuilder-js/issues/187).
## [10.1.0] - 2018-10-10
- Added the `skipNullNodes` option to skip nodes with null values. See [#158](https://github.com/oozcitak/xmlbuilder-js/issues/158).
## [10.0.0] - 2018-04-26
- Added current indentation level as a parameter to the onData function when in callback mode. See [#125](https://github.com/oozcitak/xmlbuilder-js/issues/125).

@@ -57,51 +70,46 @@ - Added name of the current node and parent node to error messages where possible. See [#152](https://github.com/oozcitak/xmlbuilder-js/issues/152). This has the potential to break code depending on the content of error messages.

## [9.0.7] - 2018-02-09
- Simplified regex used for validating encoding.
## [9.0.4] - 2017-08-16
- `spacebeforeslash` writer option accepts `true` as well as space char(s).
## [9.0.3] - 2017-08-15
- `spacebeforeslash` writer option can now be used with XML fragments.
## [9.0.2] - 2017-08-15
- Added the `spacebeforeslash` writer option to add a space character before closing tags of empty elements. See
[#157](https://github.com/oozcitak/xmlbuilder-js/issues/157).
- Added the `spacebeforeslash` writer option to add a space character before closing tags of empty elements. See [#157](https://github.com/oozcitak/xmlbuilder-js/issues/157).
## [9.0.1] - 2017-06-19
- Fixed character validity checks to work with node.js 4.0 and 5.0. See
[#161](https://github.com/oozcitak/xmlbuilder-js/issues/161).
- Fixed character validity checks to work with node.js 4.0 and 5.0\. See [#161](https://github.com/oozcitak/xmlbuilder-js/issues/161).
## [9.0.0] - 2017-05-05
- Removed case conversion options.
- Removed support for node.js 4.0 and 5.0. Minimum required version is now 6.0.
- Fixed valid char filter to use XML 1.1 instead of 1.0. See
[#147](https://github.com/oozcitak/xmlbuilder-js/issues/147).
- Added options for negative indentation and suppressing pretty printing of text
nodes. See
[#145](https://github.com/oozcitak/xmlbuilder-js/issues/145).
- Removed support for node.js 4.0 and 5.0\. Minimum required version is now 6.0.
- Fixed valid char filter to use XML 1.1 instead of 1.0\. See [#147](https://github.com/oozcitak/xmlbuilder-js/issues/147).
- Added options for negative indentation and suppressing pretty printing of text nodes. See [#145](https://github.com/oozcitak/xmlbuilder-js/issues/145).
## [8.2.2] - 2016-04-08
- Falsy values can now be used as a text node in callback mode.
## [8.2.1] - 2016-04-07
- Falsy values can now be used as a text node. See
[#117](https://github.com/oozcitak/xmlbuilder-js/issues/117).
- Falsy values can now be used as a text node. See [#117](https://github.com/oozcitak/xmlbuilder-js/issues/117).
## [8.2.0] - 2016-04-01
- Removed lodash dependency to keep the library small and simple. See
[#114](https://github.com/oozcitak/xmlbuilder-js/issues/114),
[#53](https://github.com/oozcitak/xmlbuilder-js/issues/53),
and [#43](https://github.com/oozcitak/xmlbuilder-js/issues/43).
- Removed lodash dependency to keep the library small and simple. See [#114](https://github.com/oozcitak/xmlbuilder-js/issues/114), [#53](https://github.com/oozcitak/xmlbuilder-js/issues/53), and [#43](https://github.com/oozcitak/xmlbuilder-js/issues/43).
- Added title case to name conversion options.
## [8.1.0] - 2016-03-29
- Added the callback option to the `begin` export function. When used with a
callback function, the XML document will be generated in chunks and each chunk
will be passed to the supplied function. In this mode, `begin` uses a different
code path and the builder should use much less memory since the entire XML tree
is not kept. There are a few drawbacks though. For example, traversing the document
tree or adding attributes to a node after it is written is not possible. It is
also not possible to remove nodes or attributes.
``` js
- Added the callback option to the `begin` export function. When used with a callback function, the XML document will be generated in chunks and each chunk will be passed to the supplied function. In this mode, `begin` uses a different code path and the builder should use much less memory since the entire XML tree is not kept. There are a few drawbacks though. For example, traversing the document tree or adding attributes to a node after it is written is not possible. It is also not possible to remove nodes or attributes.
```javascript
var result = '';

@@ -116,5 +124,6 @@

- Replaced native `Object.assign` with `lodash.assign` to support old JS engines. See [#111](https://github.com/oozcitak/xmlbuilder-js/issues/111).
- Replaced native `Object.assign` with `lodash.assign` to support old JS engines. See [#111](https://github.com/oozcitak/xmlbuilder-js/issues/111).
## [8.0.0] - 2016-03-25
- Added the `begin` export function. See the wiki for details.

@@ -125,18 +134,23 @@ - Added the ability to add comments and processing instructions before and after the root element. Added `commentBefore`, `commentAfter`, `instructionBefore` and `instructionAfter` functions for this purpose.

## [7.0.0] - 2016-03-21
- Processing instructions are now created as regular nodes. This is a major breaking change if you are using processing instructions. Previously processing instructions were inserted before their parent node. After this change processing instructions are appended to the children of the parent node. Note that it is not currently possible to insert processing instructions before or after the root element.
```js
root.ele('node').ins('pi');
// pre-v7
<?pi?><node/>
// v7
<node><?pi?></node>
```
```javascript
root.ele('node').ins('pi');
// pre-v7
<?pi?><node/>
// v7
<node><?pi?></node>
```
## [6.0.0] - 2016-03-20
- Added custom XML writers. The default string conversion functions are now collected under the `XMLStringWriter` class which can be accessed by the `stringWriter(options)` function exported by the module. An `XMLStreamWriter` is also added which outputs the XML document to a writable stream. A stream writer can be created by calling the `streamWriter(stream, options)` function exported by the module. Both classes are heavily customizable and the details are added to the wiki. It is also possible to write an XML writer from scratch and use it when calling `end()` on the XML document.
## [5.0.1] - 2016-03-08
- Moved require statements for text case conversion to the top of files to reduce lazy requires.
## [5.0.0] - 2016-03-05
- Added text case option for element names and attribute names. Valid cases are `lower`, `upper`, `camel`, `kebab` and `snake`.

@@ -148,11 +162,14 @@ - Attribute and element values are escaped according to the [Canonical XML 1.0 specification](http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html#charescaping). See [#54](https://github.com/oozcitak/xmlbuilder-js/issues/54) and [#86](https://github.com/oozcitak/xmlbuilder-js/issues/86).

## [4.2.1] - 2016-01-15
- Updated lodash dependency to 4.0.0.
## [4.2.0] - 2015-12-16
- Added the `noDoubleEncoding` option to `create()` to control whether existing html entities are encoded.
## [4.1.0] - 2015-11-11
- Added the `separateArrayItems` option to `create()` to control how arrays are handled when converting from objects. e.g.
```js
```javascript
root.ele({ number: [ "one", "two" ]});

@@ -170,2 +187,3 @@ // with separateArrayItems: true

## [4.0.0] - 2015-11-01
- Removed the `#list` decorator. Array items are now created as child nodes by default.

@@ -175,8 +193,11 @@ - Fixed a bug where the XML encoding string was checked partially.

## [3.1.0] - 2015-09-19
- `#list` decorator ignores empty arrays.
## [3.0.0] - 2015-09-10
- Allow `\r`, `\n` and `\t` in attribute values without escaping. See [#86](https://github.com/oozcitak/xmlbuilder-js/issues/86).
## [2.6.5] - 2015-09-09
- Use native `isArray` instead of lodash.

@@ -186,14 +207,19 @@ - Indentation of processing instructions are set to the parent element's.

## [2.6.4] - 2015-05-27
- Updated lodash dependency to 3.5.0.
## [2.6.3] - 2015-05-27
- Bumped version because previous release was not published on npm.
## [2.6.2] - 2015-03-10
- Updated lodash dependency to 3.5.0.
## [2.6.1] - 2015-02-20
- Updated lodash dependency to 3.3.0.
## [2.6.0] - 2015-02-20
- Fixed a bug where the `XMLNode` constructor overwrote the super class parent.

@@ -204,5 +230,7 @@ - Removed document property from cloned nodes.

## [2.5.2] - 2015-02-16
- Updated lodash dependency to 3.2.0.
## [2.5.1] - 2015-02-09
- Updated lodash dependency to 3.1.0.

@@ -212,32 +240,41 @@ - Support all node >= 0.8.

## [2.5.0] - 2015-00-03
- Updated lodash dependency to 3.0.0.
## [2.4.6] - 2015-01-26
- Show more information from attribute creation with null values.
- Added iojs as an engine.
- Self close elements with empty text.
- Show more information from attribute creation with null values.
- Added iojs as an engine.
- Self close elements with empty text.
## [2.4.5] - 2014-11-15
- Fixed prepublish script to run on windows.
- Fixed bug in XMLStringifier where an undefined value was used while reporting an invalid encoding value.
- Fixed bug in XMLStringifier where an undefined value was used while reporting an invalid encoding value.
- Moved require statements to the top of files to reduce lazy requires. See [#62](https://github.com/oozcitak/xmlbuilder-js/issues/62).
## [2.4.4] - 2014-09-08
- Added the `offset` option to `toString()` for use in XML fragments.
## [2.4.3] - 2014-08-13
- Corrected license in package description.
## [2.4.2] - 2014-08-13
- Dropped performance test and memwatch dependency.
## [2.4.1] - 2014-08-12
- Fixed a bug where empty indent string was omitted when pretty printing. See [#59](https://github.com/oozcitak/xmlbuilder-js/issues/59).
## [2.4.0] - 2014-08-04
- Correct cases of pubID and sysID.
- Use single lodash instead of separate npm modules. See [#53](https://github.com/oozcitak/xmlbuilder-js/issues/53).
- Escape according to Canonical XML 1.0. See [#54](https://github.com/oozcitak/xmlbuilder-js/issues/54).
- Escape according to Canonical XML 1.0\. See [#54](https://github.com/oozcitak/xmlbuilder-js/issues/54).
## [2.3.0] - 2014-07-17
- Convert objects to JS primitives while sanitizing user input.

@@ -249,10 +286,13 @@ - Object builder preserves items with null values. See [#44](https://github.com/oozcitak/xmlbuilder-js/issues/44).

## [2.2.1] - 2014-04-04
- Bumped version because previous release was not published on npm.
## [2.2.0] - 2014-04-04
- Switch to lodash from underscore.
- Removed legacy `ext` option from `create()`.
- Drop old node versions: 0.4, 0.5, 0.6. 0.8 is the minimum requirement from now on.
- Drop old node versions: 0.4, 0.5, 0.6\. 0.8 is the minimum requirement from now on.
## [2.1.0] - 2013-12-30
- Removed duplicate null checks from constructors.

@@ -266,5 +306,7 @@ - Fixed node count in performance test.

## [2.0.1] - 2013-12-24
- Removed performance tests from npm package.
## [2.0.0] - 2013-12-24
- Combined loops for speed up.

@@ -278,8 +320,11 @@ - Added support for the DTD and XML declaration.

## [1.1.2] - 2013-12-11
- Changed processing instruction decorator to `?`.
- Changed processing instruction decorator to `?`.
## [1.1.1] - 2013-12-11
- Added processing instructions to JS object conversion.
- Added processing instructions to JS object conversion.
## [1.1.0] - 2013-12-10
- Added license to package.

@@ -292,8 +337,11 @@ - `create()` and `element()` accept JS object to fully build the document.

## [1.0.2] - 2013-11-27
- Removed temp file which was accidentally included in the package.
## [1.0.1] - 2013-11-27
- Custom stringify functions affect current instance only.
## [1.0.0] - 2013-11-27
- Added processing instructions.

@@ -307,2 +355,3 @@ - Added stringify functions to sanitize and convert input values.

## [0.4.3] - 2013-11-08
- Added option to include surrogate pairs in XML content. See [#29](https://github.com/oozcitak/xmlbuilder-js/issues/29).

@@ -314,5 +363,7 @@ - Fixed empty value string representation in pretty mode.

## [0.4.2] - 2012-09-14
- Removed README.md from `.npmignore`.
## [0.4.1] - 2012-08-31
- Removed `begin()` calls in favor of `XMLBuilder` constructor.

@@ -322,2 +373,3 @@ - Added the `end()` function. `end()` is a convenience over `doc().toString()`.

## [0.4.0] - 2012-08-31
- Added arguments to `XMLBuilder` constructor to allow the name of the root element and XML prolog to be defined in one line.

@@ -327,11 +379,15 @@ - Soft deprecated `begin()`.

## [0.3.11] - 2012-08-13
- Package keywords are fixed to be an array of values.
## [0.3.10] - 2012-08-13
- Brought back npm package contents which were lost due to incorrect configuration of `package.json` in previous releases.
## [0.3.3] - 2012-07-27
- Implemented `importXMLBuilder()`.
## [0.3.2] - 2012-07-20
- Fixed a duplicated escaping problem on `element()`.

@@ -343,14 +399,19 @@ - Fixed a problem with text node creation from empty string.

## [0.3.1] - 2011-11-28
- Added guards for document element so that nodes cannot be inserted at document level.
## [0.3.0] - 2011-11-28
- Added `doc()` to return the document element.
## [0.2.2] - 2011-11-28
- Prevent code relying on `up()`'s older behavior to break.
## [0.2.1] - 2011-11-28
- Added the `root()` function.
## [0.2.0] - 2011-11-21
- Added Travis-CI integration.

@@ -361,11 +422,15 @@ - Added coffee-script dependency.

## [0.1.7] - 2011-10-25
- No changes. Accidental release.
## [0.1.6] - 2011-10-25
- Corrected `package.json` bugs link to `url` from `web`.
## [0.1.5] - 2011-08-08
- Added missing npm package contents.
## [0.1.4] - 2011-07-29
- Text-only nodes are no longer indented.

@@ -375,2 +440,3 @@ - Added documentation for multiple instances.

## [0.1.3] - 2011-07-27
- Exported the `create()` function to return a new instance. This allows multiple builder instances to be constructed.

@@ -381,2 +447,3 @@ - Fixed `u()` function so that it now correctly calls `up()`.

## [0.1.2] - 2011-06-03
- `ele()` accepts element text.

@@ -386,2 +453,3 @@ - `attributes()` now overrides existing attributes if passed the same attribute name.

## [0.1.1] - 2011-05-19
- Added the raw output option.

@@ -391,2 +459,3 @@ - Removed most validity checks.

## [0.1.0] - 2011-04-27
- `text()` and `cdata()` now return parent element.

@@ -396,5 +465,7 @@ - Attribute values are escaped.

## [0.0.7] - 2011-04-23
- Coerced text values to string.
- Coerced text values to string.
## [0.0.6] - 2011-02-23
- Added support for XML comments.

@@ -404,8 +475,11 @@ - Text nodes are checked against CharData.

## [0.0.5] - 2010-12-31
- Corrected the name of the main npm module in `package.json`.
## [0.0.4] - 2010-12-28
- Added `.npmignore`.
## [0.0.3] - 2010-12-27
- root element is now constructed in `begin()`.

@@ -419,2 +493,3 @@ - moved prolog to `begin()`.

## [0.0.2] - 2010-11-03
- `element()` expands nested arrays.

@@ -426,87 +501,88 @@ - Added pretty printing.

## 0.0.1 - 2010-11-02
- Initial release
[0.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.1...v0.0.2
[0.0.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.2...v0.0.3
[0.0.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.3...v0.0.4
[0.0.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.4...v0.0.5
[0.0.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.5...v0.0.6
[0.0.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.6...v0.0.7
[0.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.7...v0.1.0
[0.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.0...v0.1.1
[0.1.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.1...v0.1.2
[0.1.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.2...v0.1.3
[0.1.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.3...v0.1.4
[0.1.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.4...v0.1.5
[0.1.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.5...v0.1.6
[0.1.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.6...v0.1.7
[0.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.7...v0.2.0
[0.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.0...v0.2.1
[0.2.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.1...v0.2.2
[0.3.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.2...v0.3.0
[0.3.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.0...v0.3.1
[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
[0.4.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.0...v0.4.1
[0.4.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.1...v0.4.2
[0.4.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.2...v0.4.3
[1.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.3...v1.0.0
[1.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.0...v1.0.1
[1.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.1...v1.0.2
[1.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.2...v1.1.0
[1.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.0...v1.1.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
[12.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.1...v12.0.0
[11.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v11.0.0...v11.0.1
[11.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.1...v11.0.0
[10.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.1.0...v10.1.1
[10.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v10.0.0...v10.1.0
[10.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.7...v10.0.0
[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
[2.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.0.0...v2.0.1
[2.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.0.1...v2.1.0
[2.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.1.0...v2.2.0
[2.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.2.0...v2.2.1
[2.3.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.2.1...v2.3.0
[2.4.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.3.0...v2.4.0
[2.4.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.0...v2.4.1
[2.4.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.1...v2.4.2
[2.4.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.2...v2.4.3
[2.4.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.3...v2.4.4
[2.4.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.4...v2.4.5
[2.4.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.5...v2.4.6
[2.5.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.6...v2.5.0
[2.5.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.0...v2.5.1
[2.5.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.1...v2.5.2
[2.6.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.2...v2.6.0
[2.6.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.0...v2.6.1
[2.6.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.1...v2.6.2
[2.6.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.2...v2.6.3
[2.6.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.3...v2.6.4
[2.6.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.4...v2.6.5
[3.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.5...v3.0.0
[3.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v3.0.0...v3.1.0
[4.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v3.1.0...v4.0.0
[4.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.0.0...v4.1.0
[4.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.1.0...v4.2.0
[4.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.2.0...v4.2.1
[5.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.2.1...v5.0.0
[5.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v5.0.0...v5.0.1
[6.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v5.0.1...v6.0.0
[7.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v6.0.0...v7.0.0
[8.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v7.0.0...v8.0.0
[8.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.0.0...v8.1.0
[8.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.1.0...v8.2.0
[8.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.0...v8.2.1
[8.2.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.1...v8.2.2
[9.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.2...v9.0.0
[9.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.0...v9.0.1
[9.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.1...v9.0.2
[9.0.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.2...v9.0.3
[9.0.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.3...v9.0.4
[9.0.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.4...v9.0.7
[9.0.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.3...v9.0.4
[9.0.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.2...v9.0.3
[9.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.1...v9.0.2
[9.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v9.0.0...v9.0.1
[9.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.2...v9.0.0
[8.2.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.1...v8.2.2
[8.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.2.0...v8.2.1
[8.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.1.0...v8.2.0
[8.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v8.0.0...v8.1.0
[8.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v7.0.0...v8.0.0
[7.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v6.0.0...v7.0.0
[6.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v5.0.1...v6.0.0
[5.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v5.0.0...v5.0.1
[5.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.2.1...v5.0.0
[4.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.2.0...v4.2.1
[4.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.1.0...v4.2.0
[4.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v4.0.0...v4.1.0
[4.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v3.1.0...v4.0.0
[3.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.5...v3.0.0
[2.6.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.4...v2.6.5
[2.6.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.3...v2.6.4
[2.6.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.2...v2.6.3
[2.6.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.1...v2.6.2
[2.6.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.6.0...v2.6.1
[2.6.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.2...v2.6.0
[2.5.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.1...v2.5.2
[2.5.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.5.0...v2.5.1
[2.5.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.6...v2.5.0
[2.4.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.5...v2.4.6
[2.4.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.4...v2.4.5
[2.4.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.3...v2.4.4
[2.4.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.2...v2.4.3
[2.4.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.1...v2.4.2
[2.4.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.4.0...v2.4.1
[2.4.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.3.0...v2.4.0
[2.3.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.2.1...v2.3.0
[2.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.2.0...v2.2.1
[2.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.1.0...v2.2.0
[2.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.2...v2.0.0
[1.1.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.2...v1.1.0
[1.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.3...v1.0.0
[0.4.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.2...v0.4.3
[0.4.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.1...v0.4.2
[0.4.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.11...v0.4.0
[0.3.11]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.10...v0.3.11
[0.3.10]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.3...v0.3.10
[0.3.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.2...v0.3.0
[0.2.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.7...v0.2.0
[0.1.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.7...v0.1.0
[0.0.7]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.6...v0.0.7
[0.0.6]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.5...v0.0.6
[0.0.5]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v0.0.1...v0.0.2
{
"name": "xmlbuilder",
"version": "13.0.0",
"version": "13.0.1",
"keywords": [

@@ -5,0 +5,0 @@ "xml",

@@ -1,2 +0,1 @@

import Writable from 'stream';
// Type definitions for xmlbuilder

@@ -9,2 +8,4 @@ // Project: https://github.com/oozcitak/xmlbuilder-js

import { Writable } from 'stream';
export = xmlbuilder;

@@ -27,19 +28,35 @@

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
*/
standalone?: boolean;
/** Public identifier of the DTD */
/**
* Public identifier of the DTD
*/
pubID?: string;
/** System identifier of the DTD */
/**
* System identifier of the DTD
*/
sysID?: string;
/** Whether XML declaration and doctype will be included */
/**
* Whether XML declaration and doctype will be included
*/
headless?: 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
*/
keepNullAttributes?: boolean;

@@ -56,7 +73,13 @@ /**

separateArrayItems?: boolean;
/** Whether existing html entities are encoded */
/**
* Whether existing html entities are encoded
*/
noDoubleEncoding?: boolean;
/** Whether values will be validated and escaped or returned as is */
/**
* Whether values will be validated and escaped or returned as is
*/
noValidation?: boolean;
/** A set of functions to use for converting values to strings */
/**
* A set of functions to use for converting values to strings
*/
stringify?: XMLStringifier;

@@ -72,37 +95,73 @@ /**

interface XMLStringifier {
/** Converts an element or attribute name to string */
/**
* Converts an element or attribute name to string
*/
name?: (v: any) => string;
/** Converts the contents of a text node to string */
/**
* Converts the contents of a text node to string
*/
text?: (v: any) => string;
/** Converts the contents of a CDATA node to string */
/**
* Converts the contents of a CDATA node to string
*/
cdata?: (v: any) => string;
/** Converts the contents of a comment node to string */
/**
* Converts the contents of a comment node to string
*/
comment?: (v: any) => string;
/** Converts the contents of a raw text node to string */
/**
* Converts the contents of a raw text node to string
*/
raw?: (v: any) => string;
/** Converts attribute value to string */
/**
* Converts attribute value to string
*/
attValue?: (v: any) => string;
/** Converts processing instruction target to string */
/**
* Converts processing instruction target to string
*/
insTarget?: (v: any) => string;
/** Converts processing instruction value to string */
/**
* Converts processing instruction value to string
*/
insValue?: (v: any) => string;
/** Converts XML version to string */
/**
* Converts XML version to string
*/
xmlVersion?: (v: any) => string;
/** Converts XML encoding to string */
/**
* Converts XML encoding to string
*/
xmlEncoding?: (v: any) => string;
/** Converts standalone document declaration to string */
/**
* Converts standalone document declaration to string
*/
xmlStandalone?: (v: any) => string;
/** 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
*/
dtdNData?: (v: any) => string;

@@ -144,6 +203,10 @@

/** Escapes special characters in text */
/**
* Escapes special characters in text
*/
textEscape?: (v: string) => string;
/** Escapes special characters in attribute values */
/**
* Escapes special characters in attribute values
*/
attEscape?: (v: string) => string;

@@ -339,23 +402,45 @@ }

interface WriterOptions {
/** Pretty print the XML tree */
/**
* Pretty print the XML tree
*/
pretty?: boolean;
/** Indentation string for pretty printing */
/**
* Indentation string for pretty printing
*/
indent?: string;
/** Newline string for pretty printing */
/**
* Newline string for pretty printing
*/
newline?: string;
/** A fixed number of indents to offset strings */
/**
* A fixed number of indents to offset strings
*/
offset?: number;
/** Maximum column width */
/**
* Maximum column width
*/
width?: number;
/** Whether to output closing tags for empty element nodes */
/**
* Whether to output closing tags for empty element nodes
*/
allowEmpty?: boolean;
/** Whether to pretty print text nodes */
/**
* Whether to pretty print text nodes
*/
dontPrettyTextNodes?: boolean;
/** A string to insert before closing slash character */
/**
* A string to insert before closing slash character
*/
spaceBeforeSlash?: string | boolean;
/** User state object that is saved between writer functions */
/**
* User state object that is saved between writer functions
*/
user?: any;
/** The current state of the writer */
/**
* The current state of the writer
*/
state?: WriterState;
/** Writer function overrides */
/**
* Writer function overrides
*/
writer?: XMLWriter;

@@ -365,9 +450,17 @@ }

enum WriterState {
/** Writer state is unknown */
/**
* Writer state is unknown
*/
None = 0,
/** Writer is at an opening tag, e.g. <node> */
/**
* Writer is at an opening tag, e.g. <node>
*/
OpenTag = 1,
/** Writer is inside an element */
/**
* Writer is inside an element
*/
InsideTag = 2,
/** Writer is at a closing tag, e.g. </node> */
/**
* Writer is at a closing tag, e.g. </node>
*/
CloseTag = 3

@@ -386,5 +479,9 @@ }

interface BeginOptions {
/** 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
*/
keepNullAttributes?: boolean;

@@ -401,7 +498,13 @@ /**

separateArrayItems?: boolean;
/** Whether existing html entities are encoded */
/**
* Whether existing html entities are encoded
*/
noDoubleEncoding?: boolean;
/** Whether values will be validated and escaped or returned as is */
/**
* Whether values will be validated and escaped or returned as is
*/
noValidation?: boolean;
/** A set of functions to use for converting values to strings */
/**
* A set of functions to use for converting values to strings
*/
stringify?: XMLStringifier;

@@ -451,33 +554,65 @@ /**

enum NodeType {
/** An element node */
/**
* An element node
*/
Element = 1,
/** An attribute node */
/**
* An attribute node
*/
Attribute = 2,
/** A text node */
/**
* A text node
*/
Text = 3,
/** A CDATA node */
/**
* A CDATA node
*/
CData = 4,
/** 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
*/
EntityDeclaration = 6,
/** A processing instruction node */
/**
* A processing instruction node
*/
ProcessingInstruction = 7,
/** A comment node */
/**
* A comment node
*/
Comment = 8,
/** A document node */
/**
* A document node
*/
Document = 9,
/** A Doctype node */
/**
* A Doctype node
*/
DocType = 10,
/** A document fragment node */
/**
* A document fragment node
*/
DocumentFragment = 11,
/** A notation declaration node inside Doctype */
/**
* A notation declaration node inside Doctype
*/
NotationDeclaration = 12,
/** An XML declaration node */
/**
* An XML declaration node
*/
Declaration = 201,
/** A raw text node */
/**
* A raw text node
*/
Raw = 202,
/** 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
*/
ElementDeclaration = 204

@@ -490,17 +625,33 @@ }

interface XMLToStringOptions {
/** Pretty print the XML tree */
/**
* Pretty print the XML tree
*/
pretty?: boolean;
/** Indentation string for pretty printing */
/**
* Indentation string for pretty printing
*/
indent?: string;
/** Newline string for pretty printing */
/**
* Newline string for pretty printing
*/
newline?: string;
/** A fixed number of indents to offset strings */
/**
* A fixed number of indents to offset strings
*/
offset?: number;
/** Maximum column width */
/**
* Maximum column width
*/
width?: number;
/** Whether to output closing tags for empty element nodes */
/**
* Whether to output closing tags for empty element nodes
*/
allowEmpty?: boolean;
/** Whether to pretty print text nodes */
/**
* Whether to pretty print text nodes
*/
dontPrettyTextNodes?: boolean;
/** A string to insert before closing slash character */
/**
* A string to insert before closing slash character
*/
spaceBeforeSlash?: string | boolean;

@@ -745,5 +896,5 @@ /**

* @returns the parent node
*/
*/
instructionBefore(target: string, value: any): XMLElement;
/**

@@ -756,3 +907,3 @@ * Creates a processing instruction node after the current node.

* @returns the parent node
*/
*/
instructionAfter(target: string, value: any): XMLElement;

@@ -837,3 +988,5 @@

abstract class XMLCharacterData extends XMLNode {
/** Node value */
/**
* Node value
*/
value: string;

@@ -845,3 +998,3 @@ }

*/
class XMLCData extends CharacterData {
class XMLCData extends XMLCharacterData {
/**

@@ -854,3 +1007,5 @@ * Converts the node to string

/** Creates a clone of this node */
/**
* Creates a clone of this node
*/
clone(): XMLCData;

@@ -862,3 +1017,3 @@ }

*/
class XMLComment extends CharacterData {
class XMLComment extends XMLCharacterData {
/**

@@ -871,3 +1026,5 @@ * Converts the node to string

/** Creates a clone of this node */
/**
* Creates a clone of this node
*/
clone(): XMLComment;

@@ -879,4 +1036,5 @@ }

*/
class XMLProcessingInstruction extends CharacterData {
/** Instruction target */
class XMLProcessingInstruction extends XMLCharacterData {
/** Instruction target
*/
target: string;

@@ -891,3 +1049,5 @@

/** Creates a clone of this node */
/**
* Creates a clone of this node
*/
clone(): XMLProcessingInstruction;

@@ -899,3 +1059,3 @@ }

*/
class XMLRaw extends CharacterData {
class XMLRaw extends XMLCharacterData {
/**

@@ -908,3 +1068,5 @@ * Converts the node to string

/** Creates a clone of this node */
/**
* Creates a clone of this node
*/
clone(): XMLRaw;

@@ -916,3 +1078,3 @@ }

*/
class XMLText extends CharacterData {
class XMLText extends XMLCharacterData {
/**

@@ -925,3 +1087,5 @@ * Converts the node to string

/** Creates a clone of this node */
/**
* Creates a clone of this node
*/
clone(): XMLText;

@@ -934,7 +1098,13 @@ }

class XMLDeclaration {
/** 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
*/
standalone: boolean;

@@ -953,6 +1123,23 @@

*/
class XMLDocType extends XMLNode {
/** Public identifier of the DTD */
class XMLDocType {
/**
* Type of the node
*/
type: NodeType;
/**
* Parent element node
*/
parent: XMLElement;
/**
* Child nodes
*/
children: XMLNode[]
/**
* Public identifier of the DTD
*/
pubID: string;
/** System identifier of the DTD */
/**
* System identifier of the DTD
*/
sysID: string;

@@ -980,5 +1167,5 @@

* @param attributeName - attribute name
* @param attributeType - type of the attribute (defaults to `CDATA`)
* @param attributeType - type of the attribute
* @param defaultValueType - default value type (either `#REQUIRED`,
* `#IMPLIED`, `#FIXED` or `#DEFAULT`) (defaults to `#IMPLIED`)
* `#IMPLIED`, `#FIXED` or `#DEFAULT`)
* @param defaultValue - default value of the attribute (only used

@@ -989,4 +1176,4 @@ * for `#FIXED` or `#DEFAULT`)

*/
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;

@@ -1072,3 +1259,3 @@ /**

ins(obj: Object): XMLDocType;
/**

@@ -1093,2 +1280,17 @@ * Returns the root element node.

clone(): XMLDocType;
/**
* Returns the document node.
*
* _Alias:_ `doc`
*/
document(): XMLDocument;
doc(): XMLDocument;
/**
* Converts the XML document to string.
*
* @param options - conversion options
*/
end(options?: XMLWriter | XMLToStringOptions): string;
}

@@ -1100,7 +1302,13 @@

class XMLDTDAttList {
/** The name of the element containing this attribute */
/**
* The name of the element containing this attribute
*/
elementName: string;
/** Attribute name */
/**
* Attribute name
*/
attributeName: string;
/** Type of the attribute */
/**
* Type of the attribute
*/
attributeType: string;

@@ -1130,5 +1338,8 @@ /**

class XMLDTDElement {
/** The name of the element */
/**
* The name of the element
*/
name: string;
/** Element content*/
/**
* Element content*/
value: string;

@@ -1153,9 +1364,17 @@

pe: boolean;
/** The name of the entity */
/**
* The name of the entity
*/
name: string;
/** Public identifier */
/**
* Public identifier
*/
pubID: string;
/** System identifier */
/**
* System identifier
*/
sysID: string;
/** Notation declaration */
/**
* Notation declaration
*/
nData: string;

@@ -1175,7 +1394,13 @@

class XMLDTDNotation {
/** The name of the notation */
/**
* The name of the notation
*/
name: string;
/** Public identifier */
/**
* Public identifier
*/
pubID: string;
/** System identifier */
/**
* System identifier
*/
sysID: string;

@@ -1195,5 +1420,9 @@

class XMLElement extends XMLNode {
/** Element node name */
/**
* Element node name
*/
name: string;
/** Element attributes */
/**
* Element attributes
*/
attribs: { string: XMLAttribute };

@@ -1200,0 +1429,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc