hello,

I have a sample.svg with the contents as shown below which was created in
adobe illustrator.
please note the <style type="text/css"> element

<svg
  xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
  i:viewOrigin="-1 3.8677" i:rulerOrigin="0 342" i:pageBounds="0 0 558 -342"
  xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;"
  xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/";
         width="560" height="347.168" viewBox="0 0 560 347.168"
  overflow="visible" enable-background="new 0 0 560 347.168" xml:space="preserve">
  <style type="text/css">
  ..........
  <text>....</text>
  ..........
</svg>

when I create an SVG DOM and a GVT of sample.svg and then change content
of <text> element and transcode this file into a jpeg and save the
contents back to sample.svg, there is a new attribute added like shown
below

<style type="text/css" xml:space="preserve">

Again when i load the sample.svg and repeat the process as mentioned above
the new contents are

<style type="text/css" xml:space="preserve" xml:space="preserve">

why is an xml:space="preserve" being added, and since there are two
attributes of the same kind, i get a exception
java.io.IOException: Attribute "xml:space" was already specified for
element "style".

please help
thanks,
Ananth


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

Reply via email to