Posts Tagged ‘UniBasic’

Xalan errors in U2 XML

December 1, 2009 Leave a comment

Just a quick note about errors from U2 XML. I’m assuming UniVerse uses the same XML parser as UniData.

I was playing around with converting XML to HTML using XDOMTransform yesterday when an error got returned. After using XMLGetError I could see it was an ‘uncaught XalanDOMException’ (code 14 to be exact, UD error code 16.) That meant exactly zilch to me, so I looked up the Xalan documentation and found the following:

XalanDOMException Class Reference

Turns out it was unhappy about my namespace attribute in the html tag inside my xslt file.

Maybe this reference will be useful to someone else if you encounter other XalanDOMException errors from U2.


Statement Code Coverage Testing

November 27, 2009 1 comment

On the right-hand side you will see a link to the “Unibasic Code Coverage” project on sourceforge. This tool will enable you to perform statement level code coverage tests on UniData code. The results are then tabulated and saved as a colour coded HTML file.

This is based on the original prototype I wrote before further developing it for my current employer. Although this open source version is relatively simplistic, I will be progressing it by back-porting features as well as trialling new ideas.

If you try it out, leave a comment or send me an email and let me know how it went. If you are interested in helping with the development of it, or making the minor changes needed to port it to UniVerse then get in touch!

%d bloggers like this: