Jorg Heymans wrote:
> to quickly prove my point, i changed
> String s = e.getAttributeNS(null,SVG_D_ATTRIBUTE);
> in SVGPathElementBridge.buildShape() to
> String s = e.getAttributeNS("",SVG_D_ATTRIBUTE); and it works!
> is getAttributeNS("",...) valid
Well, you will have a lot more problems than just this.
Everywhere in Batik we fetch attributes with getAttributeNS(null, ...).
Similarly for setting. To be honest I don't know if 'null' or "" is
the proper value to use for attributes with 'no namespace'. I trust
the folks who did all the initial DOM work to know so I suspect that
'null' is correct.
> or do i try and track down how i can prevent from parsing an empty
> string instead of null when the attribute namespace is not defined.