Newlines in XML
I've seen several threads mentioning that the XML parser reads from top to bottom and right to left. To me that top to bottom part is most interesting since it seems to imply I can put newlines in my xml file to make it easier to read (rather than having every element property be all on one line)
ex: rather than
<button localtext="click me" MyElem="first" MySecond="second" Location="250,30" Name="mybutton" ScrollExtent="42,42" Size="42,42">mybutton</button>
having
<button localtext="click me"
MyElem="first"
MySecond="second"
Location="250,30" Name="mybutton" ScrollExtent="42,42" Size="42,42">
mybutton</button>
However, whenever I have any xml file with newlines like those in it - my game crashes immediately upon loading the UI.
Am I misunderstanding the the top-to-bottom reading? Or are there special end of line characters I need to be inserting (or not inserting) - I use Emacs under Windows for my xml editing. I've tried manually adding some ^M characters at the end with no luck. I've also tried editing in Notepad with the same results.
Putting all the property elements on a single line works but is incredibly annoying to edit.
Thanks
|