libxml2

View the Project on GitHub miyako/libxml2

version platform license downloads

Licensing

libxml2

dependencies.json

{
    "dependencies": {
        "libxml2": {
            "github": "miyako/libxml2",
            "version": "*"
        }
    }
}

libxml2

Usage - xmllint

$one:="<tag att1=\"one\" att2=\"two\">\n  content\n</tag>"
$two:="<tag att2=\"two\" att1=\"one\">\n  content\n</tag>"

var $xmllint : cs.libxml2.xmllint
$xmllint:=cs.libxml2.xmllint.new()

ALERT($xmllint.c14n($one).data=$xmllint.c14n($two).data ? "same" : "not same")

/*
	also check .error to be sure
*/