Hi Prad, please don't post your question again and again if you don't like the answers people provide.
Numerous people have told you that you have to properly use XML namespaces to introduce new elements and attributes in SVG. No surprise that XML parsers will fail in case you don't use namespaces. See also http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/ 200608.mbox/%3cOFC52BE707.A9600D40-ON852571CD.00455DA5-852571CD. [EMAIL PROTECTED] Please accept reality and adopt your SVG files rather than bothering tool makers who properly implement SVG. If you don't like that reality grab the source code of an SVG viewer, adopt it to your needs and stay incompatible with the rest of the world. Andreas --- In [email protected], "prad4svg" <[EMAIL PROTECTED]> wrote: > > Hi All, > Am finding difficult to get the dom for a svg file. > > Following sample code is workin fine for normal svg file > ie > <svg> > ....... > </svg> > > String parser = XMLResourceDescriptor.getXMLParserClassName(); > SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); > String uri = "somefile.svg"; > Document doc = f.createDocument(uri); > > But If the svg file contains other tags like > <svg> > <segments> > </segments> > ........ > </svg> > am gettin error........any help please reply soon > > Thanks & regards > prad > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

