Problem with doctype tag and XmlTextReader

G

Guest

XmlTextReader (C# , Compact Framework) throws a
"NotSupportedException" when reading a SVG file generated by Batik.
The exception is thrown when reading the doctype tag.
The tag looks like this:
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>

The XmlTextReader is supposed to not validate, only check for wellformedness.

Any idees?
 
I

imaworking

jompert said:
XmlTextReader (C# , Compact Framework) throws a
"NotSupportedException" when reading a SVG file generated by Batik.
The exception is thrown when reading the doctype tag.
The tag looks like this:
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>

The XmlTextReader is supposed to not validate, only check for wellformedness.

Any idees?

Support for parsing DTDs was removed to increase perf and size. It was
considered for .NetCF v2 but was cut again in favor of XmlSchema
support.

// RDY
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top