Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML doument to a string

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written this function to covert XML document to a string, but it does not work with JWS (works well in a standalone application as well as servlet) hence I was wondering if there's another approach to convert XML document to a String -

TIA,
- Manish
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "does not work"? Does it throw an exception or is the output different from what you expected?
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It throws this exception -
Can not convert XML document to String
org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not
load output_xml.properties (check CLASSPATH)
I suspect this is due to the fact that a JWS application cannot read properties. However, I do not know what could be a possible workaround.
TIA,
- Manish
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic