Comparing version 1.0.0 to 1.1.0
# Change Log | ||
## [v1.0.0](https://github.com/nfarina/xmldoc/tree/v1.0.0) (2016-12-26) | ||
[Full Changelog](https://github.com/nfarina/xmldoc/compare/v0.5.1...v1.0.0) | ||
**Closed issues:** | ||
- Excellent library with a beautiful, clean API [\#42](https://github.com/nfarina/xmldoc/issues/42) | ||
- Order of elements changed [\#41](https://github.com/nfarina/xmldoc/issues/41) | ||
- While writing back xml document to a file it removes all comments [\#39](https://github.com/nfarina/xmldoc/issues/39) | ||
- react native using xmldoc to parser xml [\#38](https://github.com/nfarina/xmldoc/issues/38) | ||
- Order of val in relation to children? [\#37](https://github.com/nfarina/xmldoc/issues/37) | ||
**Merged pull requests:** | ||
- Fix CData overwriting bug [\#43](https://github.com/nfarina/xmldoc/pull/43) ([calebmer](https://github.com/calebmer)) | ||
## [v0.5.1](https://github.com/nfarina/xmldoc/tree/v0.5.1) (2016-05-12) | ||
@@ -4,0 +19,0 @@ [Full Changelog](https://github.com/nfarina/xmldoc/compare/v0.5.0...v0.5.1) |
@@ -178,3 +178,10 @@ (function () { | ||
} | ||
else s += "/>"; | ||
else if (options && options.html) { | ||
var whiteList = ["br", "img", "input", "link", "meta"]; | ||
if (whiteList.indexOf(this.name) !== -1) s += "/>"; | ||
else s += "></" + this.name + ">"; | ||
} | ||
else { | ||
s += "/>"; | ||
} | ||
@@ -181,0 +188,0 @@ return s; |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "./index", | ||
@@ -12,0 +12,0 @@ "scripts": { |
@@ -25,6 +25,12 @@ | ||
## Installation - React Native | ||
I haven't tested this myself but [installing `buffer` and `stream` separately](https://github.com/nfarina/xmldoc/issues/38) may be necessary for `xmldoc` to work on React Native: | ||
npm install buffer stream xmldoc | ||
## Usage | ||
```js | ||
var xmldoc = require('../lib/xmldoc'); | ||
var xmldoc = require('xmldoc'); | ||
@@ -31,0 +37,0 @@ var document = new xmldoc.XmlDocument("<some>xml</some>"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38694
625
152