• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DOM Document to xml

 
Don Kiddick
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating a Document via the following
I then want to make some changes to the Document via the setNodeValue method.
I then want to transform the xml back into String. How do I do this ? When I call toString an my Document all I get is [#document: null].
Could write a bit of code meself but I figure there must be a way to do this, n'est pas ?
thanks,
D.
[ July 11, 2003: Message edited by: Don Kiddick ]
 
Pavel Halas
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using JDOM classes (not in j2sdk), this could be done like this:


Be sure what type of Document you're using. This function works with org.jdom.Document, standard DOM Document could be converted into.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic