Hello,

     This question is probably mostly XML-related, but it does apply to how I’m using Batik in a whiteboard.  I want to communicate SVGDocument changes via XMPP and I send elements as strings:

 

<svg:rect fill-opacity="1"

               stroke="black"

               id="SVGWB-0C6554F5-1BDC-CC92-88DD-6CDA9D756999"

               transform="translate(0.0, 0.0) scale(1.0, 1.0) rotate(0.0, 243.0, 283.0)"

               width="274"

               stroke-opacity="1"

               svgx:cx="243.0"

               svgx:sx="1.0"

               fill="gray"

               svgx:t="0.0"

               svgx:my="0.0"

               svgx:cy="283.0"

               svgx:sy="1.0"

               stroke-width="1"

               height="220"

               pointer-events="visible"

               svgx:mx="0.0"

               x="106"

               y="173"

               xmlns:svg=http://www.w3.org/2000/svg

               xmlns:svgx="http://je.jfcom.mil/svgx"/>

 

When the client receives this data, I want to “import” that string data as a Node / SVGElement in the client document.  Is there a way to import this data with the proper namespacing, document ownership, etc., that is required to add the element information as a proper element?

 

Michael Bishop

Reply via email to