By the way, I am sorry if I miss lead you in my last email addAttributesNS<-- doesn't exist on the specification. A real example should be:
anyElement.setAttributeNS(null,"color","red"); All the best Abraham On Fri, Mar 7, 2008 at 2:18 AM, G. Wade Johnson <[EMAIL PROTECTED]> wrote: > On Thu, 6 Mar 2008 21:05:27 +0000 > "Abraham Rodriguez Mota" <[EMAIL PROTECTED]> wrote: > > > Hi Eric, > > > > I think the problem is that you are not using the name space aware > > methods of batik. > > > > anyElement.addAttributesNS(svgNS,"color","red"); > > Although we do need to use the namespace-aware methods, most SVG > attributes are in the null namespace. > > anyElement.addAttributesNS(null,"color","red"); > > > > However, If you want a simple but raw solution, and if you don't have > > problems saving and loading files, you can try just to save the file > > after changes and reload it from the file system . Batik will read > > it properly, I guess. > > > > All the best > > Abraham. > > > > > > > > On Thu, Mar 6, 2008 at 7:57 PM, Cameron McCormack <[EMAIL PROTECTED]> > > wrote: > > > > > Hi Eric. > > > > > > Eric Hamacher: > > > > I am loading an existing SVG file into a Document and adding some > > > > nodes to it. > > > > > > > > When I take the resulting Document and transcode it to JPEG or > > > > PNG, the additions (a new <path>) I made do not show up in the > > > > image. I printed the dom to inspect it and my additions were > > > > present and formatted correctly. > > > … > > > > //perform addition of new <path> . . . > > > > > > I think you'll have to show us this part of your code to see if > > > there's any problem with it. The rest of the code looks OK. > > > > > > -- > > > Cameron McCormack, http://mcc.id.au/ > > > xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] For additional > > > commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > "Half of being clever is making certain you are not being stupid." > -- "Owlflight", Mercedes Lackey > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
