954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

XML problem

Ummm, I'm not sure if this is the right place to post this question, but I've been having some problems with XML. I'm using Java to make an XML file that breaks apart classes into segments, but for some reason, it won't allow me to input newlines.

<?xml version="1.0" ?> 
- <classInformation>
- <className>
  XMLBuild 
  <superClass>class java.lang.Object</superClass> 
  <classes /> 
  <strong><methods>public java.lang.String XMLBuild.CreateXML(java.lang.Class) throws java.io.IOException private static java.lang.String XMLBuild.Version() private static void XMLBuild.Methods(java.lang.Class,java.io.FileOutputStream) private static void XMLBuild.Fields(java.lang.Class,java.io.FileOutputStream) private static void XMLBuild.Classes(java.lang.Class,java.io.FileOutputStream)</methods> </strong>   <fields /> 
  </className>
  </classInformation>


I'm putting in new lines every time I post a different method, but when I open the XML file after I make it, those linebreaks dissappear. Is this an automatic thing that I can't fix?

Rete
Newbie Poster
23 posts since Jun 2005
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You