Skip to content

miyako/libxml2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version platform license downloads

Licensing

  • the source code of this component is licensed under the MIT license.
  • see gnome.org for the licensing of libxml2.

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
*/