Hi all,
       following is my SVG file

<?xml version="1.0" standalone="no"?>
<!-- Generator: Mayura Draw 4.0 -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; [
        <!ENTITY st0 "stroke:red;stroke-width:3;fill:none">
]>
<svg xml:space="preserve" width="123" height="117" viewBox="0 0 123 117">
<desc>rect.md</desc>
<ellipse style="&st0;" transform="matrix(1 0 0 -1 39.63 832)" cx="21.303" cy="773.835" 
rx="52.313" ry="48.576"/>
</svg>
   
    When i try to create a DOM object for this SVG file using following line of code 
it gives me
 java.io.IOException: External entity not found: 
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";.

DocumentFactory f = new SAXDocumentFactory(new ExtensibleSVGDOMImplementation(), 
XMLResourceDescriptor.getXMLParserClassName());
       f.setValidating(false);
       try
             {
          //doc = domfactory.createDocument(null,null,null,new FileReader(fileName));
          doc = 
f.createDocument(SVGConstants.SVG_NAMESPACE_URI,SVGConstants.SVG_SVG_TAG,null,new 
FileReader(fileName));
        

Error. If i remove the URL from SVG file it is working fine. Can any one know how to 
solve this problem.

Regards
Bala
       
-- 

Powered by Outblaze

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

Reply via email to