Search the web
Sign In
New User? Sign Up
elliecomputing_group · Ellie Computing
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
validate_xml macro   Message List  
Reply | Forward Message #22 of 63 |
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




Fri Nov 23, 2007 11:11 am

elliecomputing
Offline Offline
Send Email Send Email

Forward
Message #22 of 63 |
Expand Messages Author Sort by Date

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...
elliecomputing
Offline Send Email
Nov 23, 2007
11:11 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help