<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 46: Error on SAXParserFactory.newInstance() in WinForm App</title><link>https://sourceforge.net/p/itextdotnet/support-requests/46/</link><description>Recent changes to 46: Error on SAXParserFactory.newInstance() in WinForm App</description><atom:link href="https://sourceforge.net/p/itextdotnet/support-requests/46/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 29 Aug 2008 06:34:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/itextdotnet/support-requests/46/feed.rss" rel="self" type="application/rss+xml"/><item><title>Error on SAXParserFactory.newInstance() in WinForm App</title><link>https://sourceforge.net/p/itextdotnet/support-requests/46/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When you call com.lowagie.text.xml.XmlParser (XmlParser.java , v 1.18 2006/09/14) in a WinForm .Net application, you receive the exception : "Provider for javax.xml.parsers.SAXParserFactory cannot be found".&lt;/p&gt;
&lt;p&gt;I change the code of the constructor for XmlParser() like this :&lt;/p&gt;
&lt;p&gt;Before the code was :&lt;br /&gt;
parser = SAXParserFactory.newInstance().newSAXParser();&lt;/p&gt;
&lt;p&gt;I change to :&lt;br /&gt;
public XmlParser() {&lt;br /&gt;
try {&lt;br /&gt;
//ORIG : parser = SAXParserFactory.newInstance().newSAXParser();&lt;/p&gt;
&lt;p&gt;org.apache.crimson.jaxp.SAXParserFactoryImpl saxParserFactoryImpl = new org.apache.crimson.jaxp.SAXParserFactoryImpl();&lt;br /&gt;
parser = saxParserFactoryImpl.newSAXParser();&lt;br /&gt;
}&lt;br /&gt;
catch(ParserConfigurationException pce) {&lt;br /&gt;
throw new ExceptionConverter(pce);&lt;br /&gt;
}&lt;br /&gt;
catch (Exception se)&lt;br /&gt;
{&lt;br /&gt;
throw new ExceptionConverter(se);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 29 Aug 2008 06:34:29 -0000</pubDate><guid>https://sourceforge.net936146c4d60eb61986f643bb6fae8f4b298de424</guid></item></channel></rss>