sadsad hdsgfh wrote:

I got the following error :
java.lang.NullPointerException
at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown Source)

This indicates that there is a bug in the SVG Content (currently CVS doesn't have this NPE and properly displays the line number of the SVG error).

only when I use this part of code :

DOMTreeManager treeManager = svg.getDOMTreeManager();

Element img1 = document.createElement( "image" );

You need to use createElementNS to create an SVG image element otherwise you create an image element in the anonymous namespace. Similarly for your svg element below.

The worse part is that IE can display it #1 ??!! It got this Printing error only when i use that code.

Well ASV will display just about anything, this isn't a very strong indicator of correctness.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to