0

I have some XML data:

<entries><entry><templateID>F04FD51B-C537-4d02-BB1D-E89971D1D65</templateID><entryID>41</entryID><subject>Updated Terms and Conditions</subject>

I want to format the XMl data into proper format using Java code

Can any one suggest, how to format XML data using Java.

6
  • What do you mean "format"? It might help if you showed us a snippet of the file now, and a snippet of how you want it to look. Commented Apr 28, 2011 at 7:53
  • That doesn't look like XML data to me. I suggest you work out how to make it look like valid XML data in an editor first before you try to program it. Commented Apr 28, 2011 at 7:53
  • @Peter - I'm not seeing a link or data? Commented Apr 28, 2011 at 7:54
  • Ahh - I though F04FD... was the file name! OK yes, this is not xml. Commented Apr 28, 2011 at 7:55
  • 1
    possible duplicate of how to pretty print xml from Java Commented Apr 28, 2011 at 7:58

1 Answer 1

1

See how-to-pretty-print-xml-from-java

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.