
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
fast-xml-builder
Advanced tools
Build XML from JSON
XML Builder was the part of fast-xml-parser for years. But considering that any bug in parser may false-alarm the users who are only using builder, we have decided to split it into a separate package.
npm install fast-xml-builder
import XMLBuilder from 'fast-xml-builder';
const builder = new XMLBuilder();
const xml = builder.build({ name: 'value' });
fast-xml-builder fully support the response generated by fast-xml-parser. So you can use the maximum options as you are using for fast-xml-parser like preserveOrder, ignoreAttributes, attributeNamePrefix, textNodeName, cdataTagName, cdataPositionChar, format, indentBy, suppressEmptyNode and many more. Any change in parser will reflect here time to time.
xml2js is a popular library for converting XML to JavaScript objects and vice versa. It offers more comprehensive XML parsing capabilities compared to fast-xml-builder, which focuses primarily on building XML from JSON.
xmlbuilder is another library for building XML documents in Node.js. It provides a more feature-rich API for constructing XML, including support for namespaces and complex document structures, whereas fast-xml-builder is optimized for speed and simplicity.
js2xmlparser is a library that converts JavaScript objects to XML. It offers similar functionality to fast-xml-builder but includes additional options for customizing the output, such as different attribute and value handling.
FAQs
Build XML from JSON without C/C++ based libraries
The npm package fast-xml-builder receives a total of 29,774,288 weekly downloads. As such, fast-xml-builder popularity was classified as popular.
We found that fast-xml-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.