Hi all, I'm new to Batik (and also new to SVG) and I have a question about the Batik DOM API. I looked at the DOM API tutorial at xml.apache.org/batik/domapi.html but it's unclear to me what the Batik DOM API provides on top of a plain DOM API that I can get by just using Crimson or Xerces directly?
Does the Batik DOM API provide a more explicit interface for creating SVG than what is shown in the tutorial mentioned above? In other words, instead of doing this: Element rectangle = doc.createElementNS(svgNS, "rect"); rectangle.setAttributeNS(null, "x", "10"); rectangle.setAttributeNS(null, "y", "20"); rectangle.setAttributeNS(null, "width", "100"); rectangle.setAttributeNS(null, "height", "50"); rectangle.setAttributeNS(null, "style", "fill:red"); is there a way to do this: RectangleElement rectangle = new RectangleElement(10, 20, 100, 50, "fill:red"); If not, the question remains: what does the Batik DOM API offer on top of Crimson or Xerces? Thanks for your help, Thomas ************************************ If this email is not intended for you, or you are not responsible for the delivery of this message to the addressee, please note that this message may contain ITT Privileged/Proprietary Information. In such a case, you may not copy or deliver this message to anyone. You should destroy this message and kindly notify the sender by reply email. Information contained in this message that does not relate to the business of ITT is neither endorsed by nor attributable to ITT. ************************************ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
