Oh Oh...
I tried with changing the fileOut to URI (file:///d:/out.xml) and also as a Java File object. Its throwing the same error again.

org.xml.sax.SAXException: Parser configuration problem: namespace reporting is not enabled
org.xml.sax.SAXException: Parser configuration problem: namespace reporting is not enabled
        at net.sf.saxon.event.ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:383)
        at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:314)


Did that program ran without any errors for you?
I am out of clues. :( :( :(

Rajath



From:        Michael Kay <mike@saxonica.com>
To:        saxon-help@lists.sourceforge.net
Date:        10/13/2011 02:00 PM
Subject:        Re: [saxon] Parser configuration problem: namespace reporting is not        enabled




On 13/10/2011 04:40, Rajath.Sakkari@continental-corporation.com wrote:

Hi,


I have attached the complete code.  This code was part of my main application, i separated it for simplicity. Now there is one more issue.


--> If local name is empty as below


xmlHandler.startElement(XMLConstants.NULL_NS_URI, "",nodeName, atts);


it throws


org.xml.sax.SAXException
: Parser configuration problem: namespace reporting is not enabled


Yes. We've explained why this happens and I think you now know how to fix it.


--> if local name is something like "abcxyz"


xmlHandler.startElement(XMLConstants.NULL_NS_URI, "abcxyz",nodeName, atts);


it throws


org.xml.sax.SAXException
: java.lang.IllegalArgumentException: URI scheme is not "file"

net.sf.saxon.trans.XPathException
: java.lang.IllegalArgumentException: URI scheme is not "file"

This is happening because you called

new StreamResult(fileOUT);

where fileOUT holds a Windows filename when the API specification requires a URI. You can change it to a URI (
"file:///d:/out.xml"), or you can supply a Java File object instead:

new StreamResult(new File(fileOUT));

Michael Kay
Saxonica
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help