Problem with doctype tag and XmlTextReader

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top