Results 1 to 6 of 6

Thread: Xml Dom Document to Formatted String

Threaded View

  1. #1

    Thread Starter
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Resolved Xml Dom Document to Formatted String

    This is probably really easy but I can't see how to do it. I have a org.w3c.dom.Document and I want to output it's contents to a JTextArea,
    for example:
    <employee id="111">
    <name>bob</name>
    <age>34</age>
    </employee>

    Iterating through all the nodes and attributes would appear to be more work than I thought necessary.

    Can any one point me in the right direction.
    Last edited by DeadEyes; Dec 12th, 2005 at 09:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width