This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

String from Document  RSS feed

 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, how can I get string representation of Document object? I mean XML document.
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this :
Element reqMsg = doc.getDocumentElement();
System.out.println( "Request Message = " + org.apache.soap.util.xml.DOM2Writer.nodeToString(reqMsg ) );
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!