Wizou
13th March 2006 23:10 UTC
new version of nsisXML
a new version of my easy-to-use XML (MSXML) plugin is out
this new version has 2 functions to load an XML document :
a simple load (just performing well-formed XML check)
a loadAndValidate (which also validate the document according to the schema and eventually resolves external URL references)
Most of the time, you will still use "load" (as before, if you used my plugin already) because you don't care about validation and you don't want an Internet connection to be established
Plugin homepage: http://omarcoux.free.fr/nsisXML
Wizou
22nd March 2006 23:31 UTC
another version is out
I added an "insertBefore" function, to control even more where you insert a node in the XML tree
checkout http://omarcoux.free.fr/nsisXML
or http://nsis.sourceforge.net/NsisXML_...%28by_Wizou%29
for latest version
PoRtAbLe_StEaLtH
23rd May 2013 10:57 UTC
Runtime Crash
I tried to implement your plugin yesterday but kept crashing on me w/no output.
i can get it to write XML Text to 1 XML file but as soon as it begins to load another.. it crashes.. i tried releasing $0 .. etc..
can you enlighten me to what i may be doing wrong?
i set messageboxes to find where it was crashing.. and it's as soon as the next XML file is loaded.. it's almost like NSIS is not waiting for your plugin..
!define XMLWriteText "!insertmacro XMLWriteText"
>!macro XMLWriteText _FILE _XPATH _VALUE
nsisXML::create
nsisXML::load "${_FILE}"
nsisXML::select "${_XPATH}"
nsisXML::setText "${_VALUE}"
nsisXML::save "${_FILE}"
>!macroend
>
"FILE" "XPATH" "VALUE"