NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2092 most downloaded on npm
An XML builder for node.js
Last release 10 months ago
01 Dec 2025
Ships unpredictably
gaps range from 2 weeks to 2.4 years
Most releases are documented
notes for 39 of 50 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
50 releases · first in 2019
Fixed a bug where text-only element nodes were printed on new lines in callback mode (see #94).
Added back minified browser bundle.
### Bug Fixes - Updated dependencies.
One column per quarter.
Fixed a bug where attributes were grouped even if the group option was not set (see #192).
chore: Bump version to 3.1.1
chore: Bump version to 3.1.0
chore: Bump version to 3.1.0
Fixed a bug where some predefined entities where not being decoded when parsed (see #99).
Fixed a bug which prevented web workers from consuming the webpack bundle (see #77).
Fixed a bug where parsers did not decode predefined entities (see #82, #88 and #98).
import function to callback API (see #2).Fixed node type dependency to * (see #69 and #84).
Fixed a bug where the input of custom parsers were not sanitized.
declaration function to serializers.Fixed a bug where YAML serializer would not escape special characters.
element function of a custom parser would throw an error if it changed the node name (see #46).encoding and standalone in XML declaration.ele function would throw an error if it failed to create any child nodes.Fixed a bug where JSON serializer would not escape special characters (see #44).
Fixed a bug where each would stop traversing the document tree if the current node was removed inside the callback.
each would stop traversing the document tree if the current node was removed inside the callback.verbose option to object serializer to create consistent yet verbose output (see #30).Prevented object converter from grouping attributes into element content (see #29).
Added minified browser bundle from transpiled ES5 code so that the library can be used on old browsers (see #28). Note that Proxy and Reflect polyfill
Proxy and Reflect polyfills are required to use the library on IE 11.Fixed a bug where carriage return characters ('\r') were escaped in text and attribute contents (see #24).
'\r') were escaped in text and attribute contents (see #24).Fixed a bug where mixin classes overwrote DOM class constructors (see #23).
Fixed a bug where child nodes did not inherit the parent namespace (see #18).
Fixed a bug where the noDoubleEncoding flag kept named entities other than those specified in the spec (see #16).
noDoubleEncoding flag kept named entities other than those specified in the spec (see #16).Fixed a bug where calling end on a document fragment node would serialize the fragment's owner document not the fragment itself.
end on a document fragment node would serialize the fragment's owner document not the fragment itself.Added the noDoubleEncoding option to prevent html entities from being re-encoded when serialized (see #15).
noDoubleEncoding option to prevent html entities from being re-encoded when serialized (see #15).Fixed namespace inheritance logic, so that a preferred prefix is not retrieved from a parent element if the element has no prefix and its namespace ma
invalidCharReplacement option to sanitize input strings by replacing invalid characters (see #12). The option has no defaults and must be configured by the user.Fixed where JS object, map and JSON serializers' group setting defaulted to true.
group setting defaulted to true.Added EventEmitter interface to callback builder object.
EventEmitter interface to callback builder object.Added JSON output format to callback API.
Added converter options to callback API similar to regular API.
Fixed collection functions to return child node indices not descendant node indices.
keepNullNodes and keepNullAttributes flags now properly keep null and undefined values (see #5). Without these flags, null and undefined will be silen
keepNullNodes and keepNullAttributes flags now properly keep null and undefined values (see #5). Without these flags, null and undefined will be silently skipped.Added types to package.json to help IDEs infer types (see #4).
types to package.json to help IDEs infer types (see #4).Renamed callback API functions.
### Features - Added callback API (see #2).
### Features - Added namespace aliases.
Prevented null namespaces from being converted to the string "null".
"null".### Features - Added namespace aliases.
Prevented child element namespaces to be inherited from their parent elements (see #1).
{ "prefix:name@ns": {} } notation.Fixed width option to work in pretty-printing mode to wrap attributes.
width option to work in pretty-printing mode to wrap attributes.A CDATA node will not be indented in pretty-printing mode if it is the single child of its parent element.
[1.1.0]: https://github.com/oozcitak/xmlbuilder2/compare/v1.0.0...v1.1.0 [1.1.1]: https://github.com/oozcitak/xmlbuilder2/compare/v1.1.0...v1.1.1 [1.1
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →