{
  "id": "task_libraries:xml/javascript",
  "path": "/exapedia/javascript-xml-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript XML libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript XML libraries parse XML documents into objects or DOM trees and write XML back out. A streaming parser emits an event for each tag rather than loading the whole document into memory. These libraries let apps read feeds, sitemaps, and SOAP responses from services that return XML."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript XML libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#saxes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-xml-parser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xmldom-xmldom",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xml-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xmlbuildertwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xml-js-library",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#libxmljstwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#saxes",
          "label": [
            {
              "t": "text",
              "text": "saxes"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F141"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Incremental XML input",
            "XML generation",
            "XSD validation"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#saxes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sax",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-xml-parser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xmldom-xmldom",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xml-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xmlbuildertwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xml-js-library",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#libxmljstwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "saxes",
          "name": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lddubeau/saxes"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/saxes"
            },
            {
              "label": "Docs",
              "href": "https://github.com/lddubeau/saxes/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/lddubeau/saxes/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { SaxesParser } = require('saxes');\n\nconst parser = new SaxesParser({ xmlns: true });\nparser.on('text', text => console.log(text));\nparser.write('<root>Hello</root>').close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/lddubeau/saxes/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=saxes%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sax",
          "name": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/isaacs/sax-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sax"
            },
            {
              "label": "Docs",
              "href": "https://github.com/isaacs/sax-js/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/isaacs/sax-js/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F154"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Leonidas-from-XIV/node-xml2js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function() {\n      var attrkey, charkey, ontext, stack;\n      this.removeAllListeners();\n      this.saxParser = sax.parser(this.options.strict, {\n        trim: false,\n        normalize: false,\n        xmlns: this.options.xmlns\n      });\n      this.saxParser.errThrown = false;\n      this.saxParser.onerror = (function(_this) {\n        return function(error) {\n          _this.saxParser.resume();\n          if (!_this.saxParser.errThrown) {\n            _this.saxParser.errThrown = true;\n            return _this.emit(\"error\", error);\n          }\n        };\n      })(this);\n      this.saxParser.onend = (function(_this) {\n        return function() {\n          if (!_this.saxParser.ended) {\n            _this.saxParser.ended = true;\n            return _this.emit(\"end\", _this.resultObject);\n          }\n        };\n      })(this);\n      this.saxParser.ended = false;\n      this.EXPLICIT_CHARKEY = this.options.explicitCharkey;\n      this.resultObject = null;\n      stack = [];\n      attrkey = this.options.attrkey;\n      charkey = this.options.charkey;\n      this.saxParser.onopentag = (function(_this) {\n        return function(node) {\n          var key, newValue, obj, processedKey, ref;\n          obj = {};\n          obj[charkey] = \"\";\n          if (!_this.options.ignoreAttrs) {\n            ref = node.attributes;\n            for (key in ref) {\n              if (!hasProp.call(ref, key)) continue;\n              if (!(attrkey in obj) && !_this.options.mergeAttrs) {\n                obj[attrkey] = {};\n              }\n              newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];\n              processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;\n              if (_this.options.mergeAttrs) {\n                _this.assignOrPush(obj, processedKey, newValue);\n              } else {\n                defineProperty(obj[attrkey], processedKey, newValue);\n              }\n            }\n          }\n          obj[\"#name\"] = _this.options.tagNameProcessors ? processItem(_this.options.tagNameProcessors, node.name) : node.name;\n          if (_this.options.xmlns) {\n            obj[_this.options.xmlnskey] = {\n              uri: node.uri,\n              local: node.local\n            };\n          }\n          return stack.push(obj);\n        };\n      })(this);\n      this.saxParser.onclosetag = (function(_this) {\n        return function() {\n          var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath;\n          obj = stack.pop();\n          nodeName = obj[\"#name\"];\n          if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) {\n            delete obj[\"#name\"];\n          }\n          if (obj.cdata === true) {\n            cdata = obj.cdata;\n            delete obj.cdata;\n          }\n          s = stack[stack.length - 1];\n          if (obj[charkey].match(/^\\s*$/) && !cdata) {\n            emptyStr = obj[charkey];\n            delete obj[charkey];\n          } else {\n            if (_this.options.trim) {\n              obj[charkey] = obj[charkey].trim();\n            }\n            if (_this.options.normalize) {\n              obj[charkey] = obj[charkey].replace(/\\s{2,}/g, \" \").trim();\n            }\n            obj[charkey] = _this.options.valueProcessors ? processItem(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey];\n            if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n              obj = obj[charkey];\n            }\n          }\n          if (isEmpty(obj)) {\n            if (typeof _this.options.emptyTag === 'function') {\n              obj = _this.options.emptyTag();\n            } else {\n              obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;\n            }\n          }\n          if (_this.options.validator != null) {\n            xpath = \"/\" + ((function() {\n              var i, len, results;\n              results = [];\n              for (i = 0, len = stack.length; i < len; i++) {\n                node = stack[i];\n                results.push(node[\"#name\"]);\n              }\n              return results;\n            })()).concat(nodeName).join(\"/\");\n            (function() {\n              var err;\n              try {\n                return obj = _this.options.validator(xpath, s && s[nodeName], obj);\n              } catch (error1) {\n                err = error1;\n                return _this.emit(\"error\", err);\n              }\n            })();\n          }\n          if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {\n            if (!_this.options.preserveChildrenOrder) {\n              node = {};\n              if (_this.options.attrkey in obj) {\n                node[_this.options.attrkey] = obj[_this.options.attrkey];\n                delete obj[_this.options.attrkey];\n              }\n              if (!_this.options.charsAsChildren && _this.options.charkey in obj) {\n                node[_this.options.charkey] = obj[_this.options.charkey];\n                delete obj[_this.options.charkey];\n              }\n              if (Object.getOwnPropertyNames(obj).length > 0) {\n                node[_this.options.childkey] = obj;\n              }\n              obj = node;\n            } else if (s) {\n              s[_this.options.childkey] = s[_this.options.childkey] || [];\n              objClone = {};\n              for (key in obj) {\n                if (!hasProp.call(obj, key)) continue;\n                defineProperty(objClone, key, obj[key]);\n              }\n              s[_this.options.childkey].push(objClone);\n              delete obj[\"#name\"];\n              if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n                obj = obj[charkey];\n              }\n            }\n          }\n          if (stack.length > 0) {\n            return _this.assignOrPush(s, nodeName, obj);\n          } else {\n            if (_this.options.explicitRoot) {\n              old = obj;\n              obj = {};\n              defineProperty(obj, nodeName, old);\n            }\n            _this.resultObject = obj;\n            _this.saxParser.ended = true;\n            return _this.emit(\"end\", _this.resultObject);\n          }\n        };\n      })(this);\n      ontext = (function(_this) {\n        return function(text) {\n          var charChild, s;\n          s = stack[stack.length - 1];\n          if (s) {\n            s[charkey] += text;\n            if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\n/g, '').trim() !== '')) {\n              s[_this.options.childkey] = s[_this.options.childkey] || [];\n              charChild = {\n                '#name': '__text__'\n              };\n              charChild[charkey] = text;\n              if (_this.options.normalize) {\n                charChild[charkey] = charChild[charkey].replace(/\\s{2,}/g, \" \").trim();\n              }\n              s[_this.options.childkey].push(charChild);\n            }\n            return s;\n          }\n        };\n      })(this);\n      this.saxParser.ontext = ontext;\n      return this.saxParser.oncdata = (function(_this) {\n        return function(text) {\n          var s;\n          s = ontext(text);\n          if (s) {\n            return s.cdata = true;\n          }\n        };\n      })(this);\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Leonidas-from-XIV/node-xml2js/blob/7173c245aab4c2b417cd4c24f0b54e697a369864/lib/parser.js#L119-L311",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sax%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F154"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const sax = require('sax');\n\nconst parser = sax.parser(true);\nparser.ontext = text => console.log(text);\nparser.write('<root>Hello</root>').close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/isaacs/sax-js/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F159"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fast-xml-parser",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/NaturalIntelligence/fast-xml-parser"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fast-xml-parser"
            },
            {
              "label": "Docs",
              "href": "https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jhipster/generator-jhipster",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export const sortPomFile = (pomFile: string, { xmlParserOptions, xmlBuildOptions }: SortPomFileOptions = {}): string => {\n  const parser = new XMLParser({ ...defaultXmlParserOptions, ...xmlParserOptions });\n  const pomObject = parser.parse(pomFile);\n  pomObject.project = sortPomProject(pomObject.project);\n\n  const builder = new FastXmlBuilder({ ...defaultXmlBuildOptions, ...xmlBuildOptions });\n  return formatPomFirstLevel(builder.build(pomObject));\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jhipster/generator-jhipster/blob/761fcb688c9dacc6d2559f76f14518f22f26515f/generators/java-simple-application/generators/maven/support/pom-file-sort.ts#L27-L34",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20fast-xml-parser%20for%20XML%20parsing%2C%20document%20editing%2C%20serialization%2C%20XPath%20or%20schema%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const { XMLParser } = require('fast-xml-parser');\n\nconst parser = new XMLParser();\nconst result = parser.parse('<root>text</root>');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/fast-xml-parser@5.12.1/src/fxp.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xmldom-xmldom",
          "name": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/xmldom/xmldom"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@xmldom/xmldom"
            },
            {
              "label": "Docs",
              "href": "https://github.com/xmldom/xmldom/blob/0af8cf829d8a92bbac612903422c6947f5458f06/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F43"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/xmldom/xmldom/blob/0af8cf829d8a92bbac612903422c6947f5458f06/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F48"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F49"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F50"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F51"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/appium/appium",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function runQuery(query: string, xmlStr: string): Element[] {\n  const dom = new DOMParser().parseFromString(xmlStr, MIME_TYPE.XML_TEXT);\n  let nodes: ReturnType<typeof xpathQuery>;\n  try {\n    // @ts-expect-error Missing Node properties are not needed.\n    // https://github.com/xmldom/xmldom/issues/724\n    nodes = xpathQuery(query, dom);\n  } catch (err) {\n    // report a malformed query the same way drivers do instead of as an unknown server error.\n    // messages such as 'Unknown function foo' tell the user what to fix, the generic one does not\n    const reason = (err as Error).message;\n    const details = reason && reason !== GENERIC_XPATH_PARSE_ERROR ? ` (${reason})` : '';\n    throw new errors.InvalidSelectorError(`Invalid XPath selector: ${query}${details}`, err as Error);\n  }\n  // the xpath typings describe lib.dom nodes rather than xmldom ones, so this is the one place\n  // where the two type worlds have to be bridged\n  return nodes as unknown as Element[];\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/appium/appium/blob/4f9fe0544297564a96c1210141c1f0532b609b1c/packages/universal-xml-plugin/lib/xpath.ts#L14-L31",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20%40xmldom/xmldom%20for%20XML%20parsing%2C%20document%20editing%2C%20serialization%2C%20XPath%20or%20schema%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const { DOMParser, MIME_TYPE } = require('@xmldom/xmldom');\n\nconst document = new DOMParser().parseFromString('<root/>', MIME_TYPE.XML_TEXT);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@xmldom/xmldom@0.9.12/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xml-js",
          "name": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Leonidas-from-XIV/node-xml2js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xml2js"
            },
            {
              "label": "Docs",
              "href": "https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F68"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F74"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F75"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F76"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/lingodotdev/lingo.dev",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export default function createXmlLoader(): ILoader<\n  string,\n  Record<string, any>\n> {\n  return createLoader({\n    async pull(locale, input) {\n      let result: Record<string, any> = {};\n\n      try {\n        const parsed = await parseStringPromise(input, {\n          explicitArray: false,\n          mergeAttrs: false,\n          normalize: true,\n          preserveChildrenOrder: true,\n          normalizeTags: true,\n          includeWhiteChars: true,\n          trim: true,\n        });\n        result = parsed;\n      } catch (error) {\n        console.error(\"Failed to parse XML:\", error);\n        result = {};\n      }\n\n      return result;\n    },\n\n    async push(locale, data) {\n      try {\n        const builder = new Builder({ headless: true });\n        const xmlOutput = builder.buildObject(data);\n        const expectedOutput = normalizeXMLString(xmlOutput);\n        return expectedOutput;\n      } catch (error) {\n        console.error(\"Failed to build XML:\", error);\n        return \"\";\n      }\n    },\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/lingodotdev/lingo.dev/blob/fbc666cf717bbe80a57ce49b8d0fce690ee1766f/packages/cli/src/cli/loaders/xml.ts#L12-L51",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20xml2js%20for%20XML%20parsing%2C%20document%20editing%2C%20serialization%2C%20XPath%20or%20schema%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import xml2js from 'xml2js';\n\nconst result = await xml2js.parseStringPromise('<root>text</root>');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xmlbuildertwo",
          "name": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/oozcitak/xmlbuilder2"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xmlbuilder2"
            },
            {
              "label": "Docs",
              "href": "https://github.com/oozcitak/xmlbuilder2/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/oozcitak/xmlbuilder2/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/projen/projen",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "protected synthesizeContent(resolver: IResolver): string | undefined {\n    const obj = super.synthesizeContent(resolver);\n    if (!obj) {\n      return undefined;\n    }\n\n    const xmlString = createxml({ encoding: \"UTF-8\" }, obj).end({\n      prettyPrint: true,\n      indent: \" \".repeat(4),\n    });\n\n    return [\n      xmlString,\n      ...(this.marker ? [`<!-- ${this.marker} -->`] : []),\n    ].join(\"\\n\");\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/projen/projen/blob/8184f0234e05442df0c0491237b08815770bf48a/src/xmlfile.ts#L27-L42",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=xmlbuilder2%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { create } = require('xmlbuilder2');\n\nconst document = create().ele('root').txt('text');\nconst xml = document.end({ prettyPrint: true });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/xmlbuilder2@4.0.3/lib/builder/BuilderFunctions.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "BuilderFunctions.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xml-js-library",
          "name": [
            {
              "t": "fact",
              "fact": "F240"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nashwaan/xml-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xml-js"
            },
            {
              "label": "Docs",
              "href": "https://github.com/nashwaan/xml-js/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/nashwaan/xml-js/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F240"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/niklashigi/apk-mitm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export default async function modifyManifest(\n  path: string,\n  debuggable = false,\n  mapsApiKey = '',\n) {\n  const document = xml.xml2js(await fs.readFile(path, 'utf-8')) as xml.Element\n\n  const manifest = document.elements?.find(el => el.name === 'manifest')!\n  const application = manifest.elements?.find(el => el.name === 'application')!\n\n  application.attributes = {\n    ...application.attributes,\n\n    // Configure app to use custom Network Security Config\n    'android:networkSecurityConfig': '@xml/nsc_mitm',\n\n    // Make app debuggable when `--debuggable` flag is used\n    ...(debuggable && { 'android:debuggable': 'true' }),\n  }\n\n  const usesAppBundle =\n    application.elements?.some(\n      el =>\n        el.name === 'meta-data' &&\n        el.attributes?.['android:name'] === 'com.android.vending.splits',\n    ) ?? false\n\n  if (mapsApiKey) {\n    application.elements?.forEach(el => {\n      if (el.name === 'meta-data') {\n        const name = el.attributes?.['android:name'] + ''\n        const mapsApiName = [\n          'com.google.android.maps.v2.API_KEY',\n          'com.google.android.geo.API_KEY',\n        ]\n        if (mapsApiName.includes(name)) {\n          el.attributes!['android:value'] = mapsApiKey\n        }\n      }\n    })\n  }\n\n  await fs.writeFile(path, xml.js2xml(document, { spaces: 4 }))\n\n  return { usesAppBundle }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/niklashigi/apk-mitm/blob/5a96363fc9112b97d60fc2bd3799d6bbfd8e4e00/src/tasks/modify-manifest.ts#L4-L49",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F256"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=xml-js%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F240"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const convert = require('xml-js');\n\nconst document = convert.xml2js('<root>text</root>');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/xml-js@1.6.11/types/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "libxmljstwo",
          "name": [
            {
              "t": "fact",
              "fact": "F259"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/marudor/libxmljs2"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/libxmljs2"
            },
            {
              "label": "Docs",
              "href": "https://github.com/marudor/libxmljs2/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F266"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/marudor/libxmljs2/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F259"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/nfewizard-org/nfewizard-io",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function runJsBased(xml: string, metodo: SchemaValidateMethod): Promise<SchemaValidationResult> {\n    return new Promise(async (resolve, reject) => {\n        const { basePath, schemaPath } = getSchema(metodo);\n        if (!schemaPath) {\n            reject(makeResult(false, metodo, '', [internalIssue(\n                `Schema XSD não encontrado para o método '${metodo}'. Verifique se o nome do método está correto.`,\n            )]));\n            return;\n        }\n\n        try {\n            const completeXSD = await xsdAssembler.assemble(schemaPath);\n            const xmlDoc = libxmljs.parseXml(xml);\n            const xsdDoc = libxmljs.parseXml(completeXSD, { baseUrl: `${basePath}/` });\n\n            const isValid = xmlDoc.validate(xsdDoc);\n            if (isValid) {\n                resolve(makeResult(true, metodo, schemaPath, []));\n                return;\n            }\n\n            const errors: SchemaValidationIssue[] = (xmlDoc.validationErrors || []).map((e: any) =>\n                humanizeIssue(String(e.message ?? e).trim(), e.line, e.column),\n            );\n            reject(makeResult(false, metodo, schemaPath, errors.length ? errors : [internalIssue('XML inválido (sem detalhes do validador).')]));\n        } catch (error: any) {\n            reject(makeResult(false, metodo, schemaPath, [internalIssue(String(error?.message ?? error))]));\n        }\n    });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/nfewizard-org/nfewizard-io/blob/dd7d9e692f9cec5644f992d9123caf6721843e73/packages/shared/src/utils/validateSchema.ts#L254-L283",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=libxmljs2%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F259"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const libxml = require('libxmljs2');\n\nconst document = libxml.parseXml('<root/>');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/libxmljs2@0.37.0/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript XML library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#fast-xml-parser",
          "label": [
            {
              "t": "text",
              "text": "fast-xml-parser"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits converting XML to JavaScript objects and back. "
        },
        {
          "t": "link",
          "href": "#xmldom-xmldom",
          "label": [
            {
              "t": "text",
              "text": "xmldom"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits code that needs a standard DOM to query and edit. "
        },
        {
          "t": "link",
          "href": "#saxes",
          "label": [
            {
              "t": "text",
              "text": "saxes"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits large documents that must stream."
        }
      ]
    },
    {
      "q": "What is fast-xml-parser?",
      "a": [
        {
          "t": "link",
          "href": "#fast-xml-parser",
          "label": [
            {
              "t": "text",
              "text": "fast-xml-parser"
            }
          ]
        },
        {
          "t": "text",
          "text": " parses XML into JavaScript objects and builds XML from objects. Its options control attributes, arrays, and value parsing."
        }
      ]
    },
    {
      "q": "What is xml2js?",
      "a": [
        {
          "t": "link",
          "href": "#xml-js",
          "label": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ]
        },
        {
          "t": "text",
          "text": " maps XML to JavaScript objects and builds XML from object data. It wraps the sax parser in a callback and promise API."
        }
      ]
    },
    {
      "q": "How do I convert XML to JSON in JavaScript?",
      "a": [
        {
          "t": "text",
          "text": "Parse the XML into a JavaScript object with "
        },
        {
          "t": "link",
          "href": "#fast-xml-parser",
          "label": [
            {
              "t": "text",
              "text": "fast-xml-parser"
            }
          ]
        },
        {
          "t": "text",
          "text": " or "
        },
        {
          "t": "link",
          "href": "#xml-js-library",
          "label": [
            {
              "t": "text",
              "text": "xml-js"
            }
          ]
        },
        {
          "t": "text",
          "text": ", then pass the object to JSON.stringify."
        }
      ]
    },
    {
      "q": "What is a SAX parser?",
      "a": [
        {
          "t": "text",
          "text": "A SAX parser reads XML as a stream and emits an event for each opening tag, text node, and closing tag. "
        },
        {
          "t": "link",
          "href": "#sax",
          "label": [
            {
              "t": "text",
              "text": "sax"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#saxes",
          "label": [
            {
              "t": "text",
              "text": "saxes"
            }
          ]
        },
        {
          "t": "text",
          "text": " use this model for documents too large to hold in memory."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, fast-xml-parser",
      "display": "fast-xml-parser",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, fast-xml-parser",
      "display": "426.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, fast-xml-parser",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, fast-xml-parser",
      "display": "5.12.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, fast-xml-parser",
      "display": "v5.12.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, fast-xml-parser",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Parses XML, fast-xml-parser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Writes XML, fast-xml-parser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Output formats, fast-xml-parser",
      "display": "XML",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, fast-xml-parser",
      "display": "npm install fast-xml-parser path-expression-matcher",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, fast-xml-parser",
      "display": "Parses XML into JavaScript objects and builds XML through a configurable JavaScript API.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, fast-xml-parser",
      "display": "Controls which tags become arrays",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, fast-xml-parser",
      "display": "Use isArray to give selected XML elements a consistent shape.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, fast-xml-parser",
      "display": "Preserves tag order when configured",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, fast-xml-parser",
      "display": "Enable preserveOrder when XML content order matters.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, fast-xml-parser",
      "display": "Attributes are ignored by default",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, fast-xml-parser",
      "display": "Set ignoreAttributes:false when attributes are part of the data.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, fast-xml-parser",
      "display": "Syntax validation is opt-in",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, fast-xml-parser",
      "display": "Pass true to parse or call XMLValidator explicitly.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, fast-xml-parser",
      "display": "const { XMLParser } = require('fast-xml-parser');\nconst { Expression } = require('path-expression-matcher');\n\nconst xmlData = `\n  <root>\n    <user id=\"1\" type=\"admin\">Alice</user>\n    <user id=\"2\" type=\"regular\">Bob</user>\n  </root>`;\n\nconst adminExpr = new Expression(\"..user[type=admin]\");\n\nconst options = {\n  ignoreAttributes: false,\n  jPath: false,  // Receive Matcher instead of string\n  attributeValueProcessor: (attrName, val, matcher) => {\n    // matcher is a Matcher instance, not a string\n    console.log('Current path:', matcher.toString());  // \"root.user\"\n    console.log('Current tag:', matcher.getCurrentTag());  // \"user\"\n    console.log('Has type attr:', matcher.hasAttr('type'));  // true\n    console.log('Type value:', matcher.getAttrValue('type'));  // \"admin\" or \"regular\"\n    \n    // Pattern matching\n    if (attrName === 'id' && matcher.matches(adminExpr)) {\n      return 'ADMIN-' + val;  // Prefix admin user IDs\n    }\n    return val;\n  }\n};\n\nconst parser = new XMLParser(options);\nconst result = parser.parse(xmlData);\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart source reference, fast-xml-parser",
      "display": "2.XMLparseOptions.md",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, fast-xml-parser",
      "display": "export const sortPomFile = (pomFile: string, { xmlParserOptions, xmlBuildOptions }: SortPomFileOptions = {}): string => {\n  const parser = new XMLParser({ ...defaultXmlParserOptions, ...xmlParserOptions });\n  const pomObject = parser.parse(pomFile);\n  pomObject.project = sortPomProject(pomObject.project);\n\n  const builder = new FastXmlBuilder({ ...defaultXmlBuildOptions, ...xmlBuildOptions });\n  return formatPomFirstLevel(builder.build(pomObject));\n};\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, fast-xml-parser",
      "display": "pom-file-sort.ts · sortPomFile()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, fast-xml-parser",
      "display": "jhipster/generator-jhipster",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, jhipster/generator-jhipster",
      "display": "22.5K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, jhipster/generator-jhipster",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project function, fast-xml-parser",
      "display": "export async function transformSourceXml(\n  xmlStr: string,\n  platform: string,\n  {metadata = {} as TransformMetadata, addIndexPath = false}: TransformSourceXmlOptions = {},\n): Promise<{xml: string; unknowns: NodesAndAttributes}> {\n  // the ios <AppiumAUT> root deliberately gets no index path: the XCUITest driver leaves that\n  // wrapper out of the hierarchy it runs queries against, so index paths have to be relative to\n  // the node below it. the android <hierarchy> root does carry an index attribute and is part of\n  // the queried hierarchy, so it keeps its index path\n  const xmlObj = singletonXmlParser().parse(xmlStr);\n  const unknowns = transformNode(xmlObj, platform, {\n    metadata,\n    addIndexPath,\n    parentPath: '',\n  });\n  let transformedXml = singletonXmlBuilder().build(xmlObj).trim();\n  transformedXml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n${transformedXml}`;\n  return {xml: transformedXml, unknowns};\n}\n",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Project function reference, fast-xml-parser",
      "display": "source.ts · transformSourceXml()",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Project repository, fast-xml-parser",
      "display": "appium/appium",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Project stars, appium/appium",
      "display": "22.2K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Project push date, appium/appium",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Library name, @xmldom/xmldom",
      "display": "@xmldom/xmldom",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Monthly downloads, @xmldom/xmldom",
      "display": "326.4M",
      "asOf": "2026-11-15"
    },
    "F34": {
      "label": "License, @xmldom/xmldom",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Package release, @xmldom/xmldom",
      "display": "0.9.12",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Undated package release, @xmldom/xmldom",
      "display": "v0.9.12",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Repository stars, @xmldom/xmldom",
      "display": "476",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Parses XML, @xmldom/xmldom",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Writes XML, @xmldom/xmldom",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "XPath queries, @xmldom/xmldom",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "Output formats, @xmldom/xmldom",
      "display": "XML",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Install, @xmldom/xmldom",
      "display": "npm install @xmldom/xmldom",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "What it does, @xmldom/xmldom",
      "display": "Provides JavaScript XML DOM parsing, document-tree editing, and XML serialization.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths lead, @xmldom/xmldom",
      "display": "Edits DOM nodes directly",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "strengths, @xmldom/xmldom",
      "display": "Create elements, update attributes, and change the document tree.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "strengths lead, @xmldom/xmldom",
      "display": "Serializes DOM trees to XML",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "strengths, @xmldom/xmldom",
      "display": "Convert edited documents back to strings with XMLSerializer.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "limitations lead, @xmldom/xmldom",
      "display": "XPath integration uses another package",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "limitations, @xmldom/xmldom",
      "display": "Pair xpath, a path-query library, with the parsed DOM.",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "limitations lead, @xmldom/xmldom",
      "display": "Browser DOM compatibility is partial",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "limitations, @xmldom/xmldom",
      "display": "Check required browser APIs before sharing DOM-dependent code with Node.",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Quickstart, @xmldom/xmldom",
      "display": "const { DOMParser, XMLSerializer } = require('@xmldom/xmldom')\n\nconst source = `<xml xmlns=\"a\">\n\t<child>test</child>\n\t<child/>\n</xml>`\n\nconst doc = new DOMParser().parseFromString(source, 'text/xml')\n\nconst serialized = new XMLSerializer().serializeToString(doc)\n",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project function, @xmldom/xmldom",
      "display": "export function runQuery(query: string, xmlStr: string): Element[] {\n  const dom = new DOMParser().parseFromString(xmlStr, MIME_TYPE.XML_TEXT);\n  let nodes: ReturnType<typeof xpathQuery>;\n  try {\n    // @ts-expect-error Missing Node properties are not needed.\n    // https://github.com/xmldom/xmldom/issues/724\n    nodes = xpathQuery(query, dom);\n  } catch (err) {\n    // report a malformed query the same way drivers do instead of as an unknown server error.\n    // messages such as 'Unknown function foo' tell the user what to fix, the generic one does not\n    const reason = (err as Error).message;\n    const details = reason && reason !== GENERIC_XPATH_PARSE_ERROR ? ` (${reason})` : '';\n    throw new errors.InvalidSelectorError(`Invalid XPath selector: ${query}${details}`, err as Error);\n  }\n  // the xpath typings describe lib.dom nodes rather than xmldom ones, so this is the one place\n  // where the two type worlds have to be bridged\n  return nodes as unknown as Element[];\n}\n",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Project function reference, @xmldom/xmldom",
      "display": "xpath.ts · runQuery()",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Project repository, @xmldom/xmldom",
      "display": "appium/appium",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Project stars, appium/appium",
      "display": "22.2K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Project push date, appium/appium",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Library name, xml2js",
      "display": "xml2js",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Monthly downloads, xml2js",
      "display": "237.5M",
      "asOf": "2026-11-15"
    },
    "F60": {
      "label": "License, xml2js",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Package release, xml2js",
      "display": "0.6.2",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Undated package release, xml2js",
      "display": "v0.6.2",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Repository stars, xml2js",
      "display": "5.0K",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Parses XML, xml2js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Writes XML, xml2js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Output formats, xml2js",
      "display": "XML",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Install, xml2js",
      "display": "npm install xml2js",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "What it does, xml2js",
      "display": "Maps XML to JavaScript objects and builds XML from object data.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, xml2js",
      "display": "Offers promise-based parsing",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, xml2js",
      "display": "Use parseStringPromise in asynchronous XML loading workflows.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "strengths lead, xml2js",
      "display": "Builds attributes and text together",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "strengths, xml2js",
      "display": "Use the object’s attribute and text keys when rebuilding XML.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations lead, xml2js",
      "display": "Round trips depend on settings",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "limitations, xml2js",
      "display": "Keep defaults when exact object-to-XML round trips matter.",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "limitations lead, xml2js",
      "display": "Parser reuse needs a reset",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "limitations, xml2js",
      "display": "Create one parser per file or reset it between documents.",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Quickstart, xml2js",
      "display": "var xml2js = require('xml2js');\nvar xml = '<foo></foo>';\n\n// With parser\nvar parser = new xml2js.Parser(/* options */);\nparser.parseStringPromise(xml).then(function (result) {\n  console.dir(result);\n  console.log('Done');\n})\n.catch(function (err) {\n  // Failed\n});\n\n// Without parser\nxml2js.parseStringPromise(xml /*, options */).then(function (result) {\n  console.dir(result);\n  console.log('Done');\n})\n.catch(function (err) {\n  // Failed\n});\n",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project function, xml2js",
      "display": "export default function createXmlLoader(): ILoader<\n  string,\n  Record<string, any>\n> {\n  return createLoader({\n    async pull(locale, input) {\n      let result: Record<string, any> = {};\n\n      try {\n        const parsed = await parseStringPromise(input, {\n          explicitArray: false,\n          mergeAttrs: false,\n          normalize: true,\n          preserveChildrenOrder: true,\n          normalizeTags: true,\n          includeWhiteChars: true,\n          trim: true,\n        });\n        result = parsed;\n      } catch (error) {\n        console.error(\"Failed to parse XML:\", error);\n        result = {};\n      }\n\n      return result;\n    },\n\n    async push(locale, data) {\n      try {\n        const builder = new Builder({ headless: true });\n        const xmlOutput = builder.buildObject(data);\n        const expectedOutput = normalizeXMLString(xmlOutput);\n        return expectedOutput;\n      } catch (error) {\n        console.error(\"Failed to build XML:\", error);\n        return \"\";\n      }\n    },\n  });\n}\n",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project function reference, xml2js",
      "display": "xml.ts · createXmlLoader()",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Project repository, xml2js",
      "display": "lingodotdev/lingo.dev",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Project stars, lingodotdev/lingo.dev",
      "display": "5.4K",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Project push date, lingodotdev/lingo.dev",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F83": {
      "label": "Library name, libxml2-wasm",
      "display": "libxml2-wasm",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Monthly downloads, libxml2-wasm",
      "display": "1.7M",
      "asOf": "2026-11-15"
    },
    "F85": {
      "label": "License, libxml2-wasm",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Package release, libxml2-wasm",
      "display": "0.7.2",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Undated package release, libxml2-wasm",
      "display": "v0.7.2",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Repository stars, libxml2-wasm",
      "display": "55",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Parses XML, libxml2-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Writes XML, libxml2-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "XPath queries, libxml2-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Output formats, libxml2-wasm",
      "display": "XML",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Install, libxml2-wasm",
      "display": "npm install libxml2-wasm",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "What it does, libxml2-wasm",
      "display": "Runs libxml2 through WebAssembly for XML querying, validation, and modification.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, libxml2-wasm",
      "display": "Queries nodes with XPath",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, libxml2-wasm",
      "display": "Use XPath paths with get for one node or find for all.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "strengths lead, libxml2-wasm",
      "display": "Validates against XML schemas",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "strengths, libxml2-wasm",
      "display": "Create an XsdValidator before checking document structure.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations lead, libxml2-wasm",
      "display": "Native objects need explicit cleanup",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "limitations, libxml2-wasm",
      "display": "Call dispose() on documents, validators, and compiled XPath objects.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "limitations lead, libxml2-wasm",
      "display": "Serialization only writes UTF-8",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "limitations, libxml2-wasm",
      "display": "Convert output separately when another encoding is required.",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Quickstart, libxml2-wasm",
      "display": "import { XmlDocument, XmlXPath } from 'libxml2-wasm';\n\nconst xpath = XmlXPath.compile('/book/title');\nconst doc1 = XmlDocument.fromString('<book><title>Harry Potter</title></book>');\nconst doc2 = XmlDocument.fromString('<book><title>Learning XML</title></book>');\nconsole.log(doc1.get(xpath).content); // Harry Potter\nconsole.log(doc2.get(xpath).content); // Learning XML\ndoc1.dispose();\ndoc2.dispose();\nxpath.dispose();\n",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project function, libxml2-wasm",
      "display": "export function validateWmlXml(xml: string): ValidationIssue[] {\n\tconst validator = wmlValidator();\n\tlet parsed: XmlDocument;\n\ttry {\n\t\tparsed = XmlDocument.fromString(xml);\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\treturn [{ message: `not well-formed XML: ${message.trim()}` }];\n\t}\n\ttry {\n\t\tvalidator.validate(parsed);\n\t\treturn [];\n\t} catch (error) {\n\t\tif (error instanceof XmlValidateError) {\n\t\t\treturn error.details.map((detail) => ({\n\t\t\t\tmessage: detail.message.trim(),\n\t\t\t\tline: detail.line,\n\t\t\t}));\n\t\t}\n\t\tthrow error;\n\t} finally {\n\t\tparsed.dispose();\n\t}\n}\n",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Project function reference, libxml2-wasm",
      "display": "validate.ts · validateWmlXml()",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Project repository, libxml2-wasm",
      "display": "kklimuk/docx-cli",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Project stars, kklimuk/docx-cli",
      "display": "249",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Project push date, kklimuk/docx-cli",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F109": {
      "label": "Developer need",
      "display": "Controlling repeated elements in objects",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose fast-xml-parser",
      "display": "configurable array mapping",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "controlling repeated elements in objects",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Parsing XML in promise workflows",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose xml2js",
      "display": "promise-based parser APIs",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "parsing XML in promise workflows",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "When to consider @xmldom/xmldom",
      "display": "DOM node editing matters more than object mapping",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Developer need",
      "display": "Editing document-tree nodes",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Why choose @xmldom/xmldom",
      "display": "DOM editing methods",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Developer need in introduction",
      "display": "editing document-tree nodes",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "When to consider libxml2-wasm",
      "display": "schema validation is required",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Developer need",
      "display": "Checking XML against a schema",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Why choose libxml2-wasm",
      "display": "XSD-based document validation",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "Developer need in introduction",
      "display": "checking XML against a schema",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "Page introduction",
      "display": "JavaScript XML libraries let developers read or write XML documents.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does parsing XML also validate it against a schema?",
      "display": "fast-xml-parser describes its bundled validation as syntactic XML validation.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does parsing XML also validate it against a schema?",
      "display": "libxml2-wasm creates an XSD validator from a schema document and applies it to XML documents.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Why are attributes missing from a fast-xml-parser result?",
      "display": "ignoreAttributes defaults to true; set it to false when attributes are required.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: How can selected elements consistently become arrays?",
      "display": "The isArray callback decides which tags should be represented as arrays.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: How can fast-xml-parser retain content order?",
      "display": "preserveOrder retains the order of tags in the resulting object representation.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: What does disabling fast-xml-parser entity processing do?",
      "display": "In the cited stable release, processEntities defaults to true.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: What does disabling fast-xml-parser entity processing do?",
      "display": "With false, references remain as-is rather than being expanded.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Can entity mappings be supplied programmatically?",
      "display": "addEntity supplies entity mappings from application code without a DOCTYPE declaration.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can one xml2js parser be reused across files?",
      "display": "Its own instructions recommend a parser per file or resetting the parser before reuse.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Are arbitrary xml2js option combinations guaranteed to round-trip?",
      "display": "The guarantee covers default configuration, with specified attribute/text-key and array-option exceptions.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: How can XPath queries use an xmldom document?",
      "display": "The separate xpath package evaluates queries using an @xmldom/xmldom document as its DOM input.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Why dispose libxml2-wasm documents and validators?",
      "display": "They own WebAssembly memory; explicit disposal releases native resources without waiting for JavaScript wrapper collection.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Why dispose libxml2-wasm documents and validators?",
      "display": "The documented automatic cleanup fallback is not a perfect solution.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: How are included XML resources supplied to libxml2-wasm?",
      "display": "Virtual IO uses registered match/open/read/close callbacks to supply included resources.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: How are included XML resources supplied to libxml2-wasm?",
      "display": "The own README labels XInclude and XSD include/import experimental.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: Which encoding does libxml2-wasm serialize?",
      "display": "Its documented serialized output supports UTF-8 only.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "Library name, saxes",
      "display": "saxes",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Monthly downloads, saxes",
      "display": "617.8M",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "License, saxes",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Package release, saxes",
      "display": "6.0.0",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release date, saxes",
      "display": "Nov 2021",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Install, saxes",
      "display": "npm install saxes",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Quickstart, saxes",
      "display": "const { SaxesParser } = require('saxes');\n\nconst parser = new SaxesParser({ xmlns: true });\nparser.on('text', text => console.log(text));\nparser.write('<root>Hello</root>').close();\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Official description, saxes",
      "display": "Parses XML as a stream of events.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart source file, saxes",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Repository stars, saxes",
      "display": "86",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Incremental XML input, saxes",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "XML generation, saxes",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "XSD validation, saxes",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Interface and deployment role, saxes",
      "display": "Strict non-validating XML event parser with namespace-aware fragments; events do not automatically build a DOM or validate an XSD.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Library name, sax",
      "display": "sax",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Monthly downloads, sax",
      "display": "503.6M",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "License, sax",
      "display": "BlueOak-1.0.0",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Package release, sax",
      "display": "1.6.1",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Package release date, sax",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Install, sax",
      "display": "npm install sax",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Quickstart, sax",
      "display": "const sax = require('sax');\n\nconst parser = sax.parser(true);\nparser.ontext = text => console.log(text);\nparser.write('<root>Hello</root>').close();\n",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Official description, sax",
      "display": "Emits events while it parses an XML stream.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Quickstart source file, sax",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Repository stars, sax",
      "display": "1.2K",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Incremental XML input, sax",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "XML generation, sax",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "XSD validation, sax",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Interface and deployment role, sax",
      "display": "SAX-style strict/loose parser and stream interfaces. XML well-formedness and event delivery are different from schema validation or document generation.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, sax",
      "display": "function() {\n      var attrkey, charkey, ontext, stack;\n      this.removeAllListeners();\n      this.saxParser = sax.parser(this.options.strict, {\n        trim: false,\n        normalize: false,\n        xmlns: this.options.xmlns\n      });\n      this.saxParser.errThrown = false;\n      this.saxParser.onerror = (function(_this) {\n        return function(error) {\n          _this.saxParser.resume();\n          if (!_this.saxParser.errThrown) {\n            _this.saxParser.errThrown = true;\n            return _this.emit(\"error\", error);\n          }\n        };\n      })(this);\n      this.saxParser.onend = (function(_this) {\n        return function() {\n          if (!_this.saxParser.ended) {\n            _this.saxParser.ended = true;\n            return _this.emit(\"end\", _this.resultObject);\n          }\n        };\n      })(this);\n      this.saxParser.ended = false;\n      this.EXPLICIT_CHARKEY = this.options.explicitCharkey;\n      this.resultObject = null;\n      stack = [];\n      attrkey = this.options.attrkey;\n      charkey = this.options.charkey;\n      this.saxParser.onopentag = (function(_this) {\n        return function(node) {\n          var key, newValue, obj, processedKey, ref;\n          obj = {};\n          obj[charkey] = \"\";\n          if (!_this.options.ignoreAttrs) {\n            ref = node.attributes;\n            for (key in ref) {\n              if (!hasProp.call(ref, key)) continue;\n              if (!(attrkey in obj) && !_this.options.mergeAttrs) {\n                obj[attrkey] = {};\n              }\n              newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];\n              processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;\n              if (_this.options.mergeAttrs) {\n                _this.assignOrPush(obj, processedKey, newValue);\n              } else {\n                defineProperty(obj[attrkey], processedKey, newValue);\n              }\n            }\n          }\n          obj[\"#name\"] = _this.options.tagNameProcessors ? processItem(_this.options.tagNameProcessors, node.name) : node.name;\n          if (_this.options.xmlns) {\n            obj[_this.options.xmlnskey] = {\n              uri: node.uri,\n              local: node.local\n            };\n          }\n          return stack.push(obj);\n        };\n      })(this);\n      this.saxParser.onclosetag = (function(_this) {\n        return function() {\n          var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath;\n          obj = stack.pop();\n          nodeName = obj[\"#name\"];\n          if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) {\n            delete obj[\"#name\"];\n          }\n          if (obj.cdata === true) {\n            cdata = obj.cdata;\n            delete obj.cdata;\n          }\n          s = stack[stack.length - 1];\n          if (obj[charkey].match(/^\\s*$/) && !cdata) {\n            emptyStr = obj[charkey];\n            delete obj[charkey];\n          } else {\n            if (_this.options.trim) {\n              obj[charkey] = obj[charkey].trim();\n            }\n            if (_this.options.normalize) {\n              obj[charkey] = obj[charkey].replace(/\\s{2,}/g, \" \").trim();\n            }\n            obj[charkey] = _this.options.valueProcessors ? processItem(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey];\n            if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n              obj = obj[charkey];\n            }\n          }\n          if (isEmpty(obj)) {\n            if (typeof _this.options.emptyTag === 'function') {\n              obj = _this.options.emptyTag();\n            } else {\n              obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;\n            }\n          }\n          if (_this.options.validator != null) {\n            xpath = \"/\" + ((function() {\n              var i, len, results;\n              results = [];\n              for (i = 0, len = stack.length; i < len; i++) {\n                node = stack[i];\n                results.push(node[\"#name\"]);\n              }\n              return results;\n            })()).concat(nodeName).join(\"/\");\n            (function() {\n              var err;\n              try {\n                return obj = _this.options.validator(xpath, s && s[nodeName], obj);\n              } catch (error1) {\n                err = error1;\n                return _this.emit(\"error\", err);\n              }\n            })();\n          }\n          if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {\n            if (!_this.options.preserveChildrenOrder) {\n              node = {};\n              if (_this.options.attrkey in obj) {\n                node[_this.options.attrkey] = obj[_this.options.attrkey];\n                delete obj[_this.options.attrkey];\n              }\n              if (!_this.options.charsAsChildren && _this.options.charkey in obj) {\n                node[_this.options.charkey] = obj[_this.options.charkey];\n                delete obj[_this.options.charkey];\n              }\n              if (Object.getOwnPropertyNames(obj).length > 0) {\n                node[_this.options.childkey] = obj;\n              }\n              obj = node;\n            } else if (s) {\n              s[_this.options.childkey] = s[_this.options.childkey] || [];\n              objClone = {};\n              for (key in obj) {\n                if (!hasProp.call(obj, key)) continue;\n                defineProperty(objClone, key, obj[key]);\n              }\n              s[_this.options.childkey].push(objClone);\n              delete obj[\"#name\"];\n              if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n                obj = obj[charkey];\n              }\n            }\n          }\n          if (stack.length > 0) {\n            return _this.assignOrPush(s, nodeName, obj);\n          } else {\n            if (_this.options.explicitRoot) {\n              old = obj;\n              obj = {};\n              defineProperty(obj, nodeName, old);\n            }\n            _this.resultObject = obj;\n            _this.saxParser.ended = true;\n            return _this.emit(\"end\", _this.resultObject);\n          }\n        };\n      })(this);\n      ontext = (function(_this) {\n        return function(text) {\n          var charChild, s;\n          s = stack[stack.length - 1];\n          if (s) {\n            s[charkey] += text;\n            if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\n/g, '').trim() !== '')) {\n              s[_this.options.childkey] = s[_this.options.childkey] || [];\n              charChild = {\n                '#name': '__text__'\n              };\n              charChild[charkey] = text;\n              if (_this.options.normalize) {\n                charChild[charkey] = charChild[charkey].replace(/\\s{2,}/g, \" \").trim();\n              }\n              s[_this.options.childkey].push(charChild);\n            }\n            return s;\n          }\n        };\n      })(this);\n      this.saxParser.ontext = ontext;\n      return this.saxParser.oncdata = (function(_this) {\n        return function(text) {\n          var s;\n          s = ontext(text);\n          if (s) {\n            return s.cdata = true;\n          }\n        };\n      })(this);\n    }\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, sax",
      "display": "lib/parser.js",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, sax",
      "display": "Leonidas-from-XIV/node-xml2js",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, sax",
      "display": "5.0K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, fast-xml-parser",
      "display": "fast-xml-parser",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, fast-xml-parser",
      "display": "438.8M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, fast-xml-parser",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, fast-xml-parser",
      "display": "5.12.1",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, fast-xml-parser",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, fast-xml-parser",
      "display": "npm install fast-xml-parser",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, fast-xml-parser",
      "display": "const { XMLParser } = require('fast-xml-parser');\n\nconst parser = new XMLParser();\nconst result = parser.parse('<root>text</root>');\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Repository stars, fast-xml-parser",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Incremental XML input, fast-xml-parser",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "XML generation, fast-xml-parser",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "XSD validation, fast-xml-parser",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Interface and deployment role, fast-xml-parser",
      "display": "Configurable XML-to-plain-object parser.5.12 still exposes deprecated builder/validator convenience APIs; publisher recommends standalone packages. POM example already uses separate current fast-xml-builder.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Parser value options in real POM workflow, fast-xml-parser",
      "display": "POM defaults retain attributes/comments and disable tag/attribute numeric value parsing; actual serializer is the separate fast-xml-builder1.3.2 peer.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project function, fast-xml-parser",
      "display": "export const sortPomFile = (pomFile: string, { xmlParserOptions, xmlBuildOptions }: SortPomFileOptions = {}): string => {\n  const parser = new XMLParser({ ...defaultXmlParserOptions, ...xmlParserOptions });\n  const pomObject = parser.parse(pomFile);\n  pomObject.project = sortPomProject(pomObject.project);\n\n  const builder = new FastXmlBuilder({ ...defaultXmlBuildOptions, ...xmlBuildOptions });\n  return formatPomFirstLevel(builder.build(pomObject));\n};\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project source file, fast-xml-parser",
      "display": "generators/java-simple-application/generators/maven/support/pom-file-sort.ts",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project full_name, fast-xml-parser",
      "display": "jhipster/generator-jhipster",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project stargazers_count, fast-xml-parser",
      "display": "22.5K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Library name, @xmldom/xmldom",
      "display": "xmldom",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Monthly downloads, @xmldom/xmldom",
      "display": "334.7M",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "License, @xmldom/xmldom",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Package release, @xmldom/xmldom",
      "display": "0.9.12",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Package release date, @xmldom/xmldom",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Install, @xmldom/xmldom",
      "display": "npm install @xmldom/xmldom",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart, @xmldom/xmldom",
      "display": "const { DOMParser, MIME_TYPE } = require('@xmldom/xmldom');\n\nconst document = new DOMParser().parseFromString('<root/>', MIME_TYPE.XML_TEXT);\n",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Repository stars, @xmldom/xmldom",
      "display": "476",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Incremental XML input, @xmldom/xmldom",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "XML generation, @xmldom/xmldom",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "XSD validation, @xmldom/xmldom",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Interface and deployment role, @xmldom/xmldom",
      "display": "DOM parser and XML serializer. Appium example uses a separate fontoxpath query engine, not native XPath or XSD validation.",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project function, @xmldom/xmldom",
      "display": "export function runQuery(query: string, xmlStr: string): Element[] {\n  const dom = new DOMParser().parseFromString(xmlStr, MIME_TYPE.XML_TEXT);\n  let nodes: ReturnType<typeof xpathQuery>;\n  try {\n    // @ts-expect-error Missing Node properties are not needed.\n    // https://github.com/xmldom/xmldom/issues/724\n    nodes = xpathQuery(query, dom);\n  } catch (err) {\n    // report a malformed query the same way drivers do instead of as an unknown server error.\n    // messages such as 'Unknown function foo' tell the user what to fix, the generic one does not\n    const reason = (err as Error).message;\n    const details = reason && reason !== GENERIC_XPATH_PARSE_ERROR ? ` (${reason})` : '';\n    throw new errors.InvalidSelectorError(`Invalid XPath selector: ${query}${details}`, err as Error);\n  }\n  // the xpath typings describe lib.dom nodes rather than xmldom ones, so this is the one place\n  // where the two type worlds have to be bridged\n  return nodes as unknown as Element[];\n}\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project source file, @xmldom/xmldom",
      "display": "packages/universal-xml-plugin/lib/xpath.ts",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project full_name, @xmldom/xmldom",
      "display": "appium/appium",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project stargazers_count, @xmldom/xmldom",
      "display": "22.2K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Library name, xml2js",
      "display": "xml2js",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Monthly downloads, xml2js",
      "display": "243.7M",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "License, xml2js",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Package release, xml2js",
      "display": "0.6.2",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release date, xml2js",
      "display": "Jul 2023",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Install, xml2js",
      "display": "npm install xml2js",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart, xml2js",
      "display": "import xml2js from 'xml2js';\n\nconst result = await xml2js.parseStringPromise('<root>text</root>');\n",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Repository stars, xml2js",
      "display": "5.0K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Incremental XML input, xml2js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "XML generation, xml2js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "XSD validation, xml2js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Interface and deployment role, xml2js",
      "display": "XML/object converter and builder; asynchronous callbacks or chunk scheduling of an already supplied string are not a public incremental-input stream API.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project function, xml2js",
      "display": "export default function createXmlLoader(): ILoader<\n  string,\n  Record<string, any>\n> {\n  return createLoader({\n    async pull(locale, input) {\n      let result: Record<string, any> = {};\n\n      try {\n        const parsed = await parseStringPromise(input, {\n          explicitArray: false,\n          mergeAttrs: false,\n          normalize: true,\n          preserveChildrenOrder: true,\n          normalizeTags: true,\n          includeWhiteChars: true,\n          trim: true,\n        });\n        result = parsed;\n      } catch (error) {\n        console.error(\"Failed to parse XML:\", error);\n        result = {};\n      }\n\n      return result;\n    },\n\n    async push(locale, data) {\n      try {\n        const builder = new Builder({ headless: true });\n        const xmlOutput = builder.buildObject(data);\n        const expectedOutput = normalizeXMLString(xmlOutput);\n        return expectedOutput;\n      } catch (error) {\n        console.error(\"Failed to build XML:\", error);\n        return \"\";\n      }\n    },\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project source file, xml2js",
      "display": "packages/cli/src/cli/loaders/xml.ts",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project full_name, xml2js",
      "display": "lingodotdev/lingo.dev",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project stargazers_count, xml2js",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Library name, xmlbuilder2",
      "display": "xmlbuilder2",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Monthly downloads, xmlbuilder2",
      "display": "65.0M",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "License, xmlbuilder2",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release, xmlbuilder2",
      "display": "4.0.3",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release date, xmlbuilder2",
      "display": "Dec 2025",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Install, xmlbuilder2",
      "display": "npm install xmlbuilder2",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart, xmlbuilder2",
      "display": "const { create } = require('xmlbuilder2');\n\nconst document = create().ele('root').txt('text');\nconst xml = document.end({ prettyPrint: true });\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Official description, xmlbuilder2",
      "display": "Builds XML documents in Node.js.",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart source file, xmlbuilder2",
      "display": "lib/builder/BuilderFunctions.d.ts",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Repository stars, xmlbuilder2",
      "display": "410",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Incremental XML input, xmlbuilder2",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "XML generation, xmlbuilder2",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "XSD validation, xmlbuilder2",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Interface and deployment role, xmlbuilder2",
      "display": "DOM-based XML builder/converter with namespaces, complete XML/JSON/object inputs, and callback-style streaming OUTPUT. Publisher explicitly recommends migration from xmlbuilder; output streaming is not streaming XML input.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Migration evidence, xmlbuilder2",
      "display": "The xmlbuilder publisher points to xmlbuilder2 as its redesigned modern-DOM release; older xmlbuilder remains separately measured and eligible, not declared API-compatible.",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project function, xmlbuilder2",
      "display": "protected synthesizeContent(resolver: IResolver): string | undefined {\n    const obj = super.synthesizeContent(resolver);\n    if (!obj) {\n      return undefined;\n    }\n\n    const xmlString = createxml({ encoding: \"UTF-8\" }, obj).end({\n      prettyPrint: true,\n      indent: \" \".repeat(4),\n    });\n\n    return [\n      xmlString,\n      ...(this.marker ? [`<!-- ${this.marker} -->`] : []),\n    ].join(\"\\n\");\n  }\n",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project source file, xmlbuilder2",
      "display": "src/xmlfile.ts",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project full_name, xmlbuilder2",
      "display": "projen/projen",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project stargazers_count, xmlbuilder2",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Library name, xml-js",
      "display": "xml-js",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Monthly downloads, xml-js",
      "display": "59.5M",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "License, xml-js",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Package release, xml-js",
      "display": "1.6.11",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Package release date, xml-js",
      "display": "Feb 2019",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Install, xml-js",
      "display": "npm install xml-js",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Quickstart, xml-js",
      "display": "const convert = require('xml-js');\n\nconst document = convert.xml2js('<root>text</root>');\n",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Official description, xml-js",
      "display": "Converts between XML text and JavaScript objects or JSON.",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Quickstart source file, xml-js",
      "display": "types/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Repository stars, xml-js",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Incremental XML input, xml-js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "XML generation, xml-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "XSD validation, xml-js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Interface and deployment role, xml-js",
      "display": "Synchronous XML/JSON/object conversion with compact or ordered noncompact representations. Android example uses the default noncompact elements/attributes structure.",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Representation tradeoff, xml-js",
      "display": "Noncompact ordered elements are used by the real manifest function; compact object representation trades verbosity for a different shape/order model.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Project function, xml-js",
      "display": "export default async function modifyManifest(\n  path: string,\n  debuggable = false,\n  mapsApiKey = '',\n) {\n  const document = xml.xml2js(await fs.readFile(path, 'utf-8')) as xml.Element\n\n  const manifest = document.elements?.find(el => el.name === 'manifest')!\n  const application = manifest.elements?.find(el => el.name === 'application')!\n\n  application.attributes = {\n    ...application.attributes,\n\n    // Configure app to use custom Network Security Config\n    'android:networkSecurityConfig': '@xml/nsc_mitm',\n\n    // Make app debuggable when `--debuggable` flag is used\n    ...(debuggable && { 'android:debuggable': 'true' }),\n  }\n\n  const usesAppBundle =\n    application.elements?.some(\n      el =>\n        el.name === 'meta-data' &&\n        el.attributes?.['android:name'] === 'com.android.vending.splits',\n    ) ?? false\n\n  if (mapsApiKey) {\n    application.elements?.forEach(el => {\n      if (el.name === 'meta-data') {\n        const name = el.attributes?.['android:name'] + ''\n        const mapsApiName = [\n          'com.google.android.maps.v2.API_KEY',\n          'com.google.android.geo.API_KEY',\n        ]\n        if (mapsApiName.includes(name)) {\n          el.attributes!['android:value'] = mapsApiKey\n        }\n      }\n    })\n  }\n\n  await fs.writeFile(path, xml.js2xml(document, { spaces: 4 }))\n\n  return { usesAppBundle }\n}\n",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project source file, xml-js",
      "display": "src/tasks/modify-manifest.ts",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project full_name, xml-js",
      "display": "niklashigi/apk-mitm",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project stargazers_count, xml-js",
      "display": "5.1K",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Library name, libxmljs2",
      "display": "libxmljs2",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Monthly downloads, libxmljs2",
      "display": "3.0M",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "License, libxmljs2",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Package release, libxmljs2",
      "display": "0.37.0",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Package release date, libxmljs2",
      "display": "Jun 2025",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Install, libxmljs2",
      "display": "npm install libxmljs2",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart, libxmljs2",
      "display": "const libxml = require('libxmljs2');\n\nconst document = libxml.parseXml('<root/>');\n",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Official description, libxmljs2",
      "display": "Provides libxml bindings for JavaScript.",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Quickstart source file, libxmljs2",
      "display": "index.d.ts",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Repository stars, libxmljs2",
      "display": "0",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Incremental XML input, libxmljs2",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "XML generation, libxmljs2",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "XSD validation, libxmljs2",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Interface and deployment role, libxmljs2",
      "display": "Native Node libxml2 binding with Document/XPath/XSD interfaces and SAX push parsing; deployment differs from WASM bindings.",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project function, libxmljs2",
      "display": "function runJsBased(xml: string, metodo: SchemaValidateMethod): Promise<SchemaValidationResult> {\n    return new Promise(async (resolve, reject) => {\n        const { basePath, schemaPath } = getSchema(metodo);\n        if (!schemaPath) {\n            reject(makeResult(false, metodo, '', [internalIssue(\n                `Schema XSD não encontrado para o método '${metodo}'. Verifique se o nome do método está correto.`,\n            )]));\n            return;\n        }\n\n        try {\n            const completeXSD = await xsdAssembler.assemble(schemaPath);\n            const xmlDoc = libxmljs.parseXml(xml);\n            const xsdDoc = libxmljs.parseXml(completeXSD, { baseUrl: `${basePath}/` });\n\n            const isValid = xmlDoc.validate(xsdDoc);\n            if (isValid) {\n                resolve(makeResult(true, metodo, schemaPath, []));\n                return;\n            }\n\n            const errors: SchemaValidationIssue[] = (xmlDoc.validationErrors || []).map((e: any) =>\n                humanizeIssue(String(e.message ?? e).trim(), e.line, e.column),\n            );\n            reject(makeResult(false, metodo, schemaPath, errors.length ? errors : [internalIssue('XML inválido (sem detalhes do validador).')]));\n        } catch (error: any) {\n            reject(makeResult(false, metodo, schemaPath, [internalIssue(String(error?.message ?? error))]));\n        }\n    });\n}\n",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project source file, libxmljs2",
      "display": "packages/shared/src/utils/validateSchema.ts",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project full_name, libxmljs2",
      "display": "nfewizard-org/nfewizard-io",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project stargazers_count, libxmljs2",
      "display": "327",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript XML libraries fast-xml-parser xml2js xmldom libxml2-wasm code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
