moddle-xml
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -61,3 +61,3 @@ 'use strict'; | ||
function normalizeNamespaces(node, model, defaultNsUri) { | ||
var uri, childUri, prefix; | ||
var uri, prefix; | ||
@@ -486,4 +486,3 @@ uri = node.uri || defaultNsUri; | ||
var model = this.model, | ||
self = this; | ||
var model = this.model; | ||
@@ -490,0 +489,0 @@ rootHandler.context = context; |
@@ -109,4 +109,3 @@ 'use strict'; | ||
BodySerializer.prototype.serializeValue = BodySerializer.prototype.serializeTo = function(writer) { | ||
var value = this.value, | ||
escape = this.escape; | ||
var escape = this.escape; | ||
@@ -297,4 +296,3 @@ if (escape) { | ||
body = this.body, | ||
element = this.element, | ||
typeDesc = element.$descriptor; | ||
element = this.element; | ||
@@ -433,4 +431,3 @@ _.forEach(properties, function(p) { | ||
ElementSerializer.prototype.serializeAttributes = function(writer) { | ||
var element = this.element, | ||
attrs = this.attrs, | ||
var attrs = this.attrs, | ||
root = !this.parent, | ||
@@ -437,0 +434,0 @@ namespaces = this.namespaces; |
{ | ||
"name": "moddle-xml", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "XML import/export for documents described with moddle", | ||
@@ -5,0 +5,0 @@ "directories": { |
# moddle-xml | ||
XML import/export for documents described with [moddle](https://github.com/bpmn-io/moddle). | ||
[![Build Status](https://travis-ci.org/bpmn-io/moddle-xml.svg)](https://travis-ci.org/bpmn-io/moddle-xml) | ||
Read and write XML documents described with [moddle](https://github.com/bpmn-io/moddle). | ||
## Usage | ||
@@ -16,3 +19,3 @@ | ||
Instantiate a [moddle instance](https://github.com/bpmn-io/moddle) | ||
Create a [moddle instance](https://github.com/bpmn-io/moddle) | ||
@@ -29,3 +32,3 @@ ``` | ||
Use the reader to parse XML into an object tree that represents your model descriptor: | ||
Use the reader to parse XML into an easily accessible object tree: | ||
@@ -39,3 +42,3 @@ ```javascript | ||
'<my:engine power="121" fuelConsumption="10" />' + | ||
'</my:car> | ||
'</my:car>' + | ||
'</my:root>'; | ||
@@ -73,3 +76,2 @@ | ||
}); | ||
``` | ||
@@ -76,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26
97
0
98445
2766