>>>>> "FMA" == Frizzell, Michael A <[EMAIL PROTECTED]> writes:

FMA> This problem occurs only when I try and use a
FMA> "filter:url(#Filter_Name)" inside the style tag of a given
FMA> item. Whenever I run the file with that filter info in the style
FMA> tag it returns a "java.lang.NullPointerException".

FMA> Successful fixes: 

FMA> - Print out the dom that I'm creating to a file, use a rasterizer
FMA> to import the xml and create the jpg.

FMA> My filter code looks as such:

FMA> public void addFilter() { 

FMA> Element newDefs = doc.createElement("defs");

     I think you want 'doc.createElementNS(svg_ns, "defs");'
Likewise for all your other elements.  The DOM is not quite as
user friendly as the raw XML.


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

Reply via email to