aspose file tools*
The moose likes XML and Related Technologies and the fly likes Exception coming while transforming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Exception coming while transforming" Watch "Exception coming while transforming" New topic
Author

Exception coming while transforming

sanchit dua
Ranch Hand

Joined: Dec 05, 2011
Posts: 31
the following is the filter post processing logic:


throwing an exception:

How to fix it.. As I'm newbie to use Transformer class.
Thanks!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
That exception points out a flaw in your input XML document, NOT your program.

Where is the XML input coming from?

Bill
sanchit dua
Ranch Hand

Joined: Dec 05, 2011
Posts: 31
The xml elements are being read from a jsp page using an xsl file as:

customers.jsp


customers.xsl as:


Thanks!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

The error message is referring to the actual XML that is being processed, not the program which is producing that XML. Therefore you should look at the actual XML that is being processed and not at the program which is producing that XML.
sanchit dua
Ranch Hand

Joined: Dec 05, 2011
Posts: 31
Actually the project is based on applying xslt on jsp pages and there is no such xml file in this project.
But why its giving exception even if the contents are to be read from jsp file..?

Thanks.!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception coming while transforming