Hello all,
a few days ago one of our customers faced a problem with XML texts,
ECMerge treats XML files as text files and do not validate itself
XML validity after merge.
we have built a "validate_xml" macro on top of the SAX parser of XML
for <SCRIPT> project (http://xmljs.sourceforge.net). You just need
to download their SAX parser (xmlsax.js file in their archive), put
it aside the validate-xml.js file that you can find under
the "macros" folder in this group (nb: ECMerge loads its GUI macros
from the "macros" folders in its installation folder or under the
settings folder).
as any other macro, you can associate shortcuts to it through the
Application settings box.
to use it, place you insertion cursor/carret in the view that you
want to check and run the macro.
on our machine here, it could check a 400KB XML files in around 30s
(at 2.8GHz). Execution time should be roughly linear depending on
the density of tags with respect to simple text.
Regards
The Ellié Computing team