using createDocument() to read an SVG file with new lines
Anjello <[email protected]>
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I use the createDocument() method to read in an SVG file. When I read a file with tags separated with new lines, and then try to access the last element of the document element, i get the exception java.lang.ClassCastException: org.apache.batik.dom.GenericText cannot be cast to org.w3c.dom.Element but if the same file didnt have any newlines or spaces between the tags, everything works perfectly. is this a problem of encoding? How can I solve this problem? Thanks in advance.. Anjello -- View this message in context: http://batik.2283329.n4.nabble.com/using-createDocument-to-read-an-SVG-file-with-new-lines-tp3590714p3590714.html Sent from the Batik - Users mailing list archive at Nabble.com.