Hey guys,
I'm currently trying to use xml as a simple storage system. I'm trying to store users that have their username, id, password, etc as their attributes, but I'm trying to format it such that I'd get something that looks something like this:
<?xml version="1.0" encoding="UTF-8"?>
<Account>
<Users>
<Mike
name="Mike"
id="1"
marginAccount="100"
/>
<Phil
name="Phil"
id="2"
marginAccount="200"
/>
<Sean
name="Sean"
id="3"
marginAccount="300"
/>
<Cory
name="Cory"
id="4"
marginAccount="400"
/>
<Gary
name="Gary"
id="5"
marginAccount="500"
/>
</Users>
</Account>
How can I set it so that, like in the example shown above, there would be \n and indent before each attribute?
I've taken a look at the Format api, tried messing around with setIndent, setLineSeperator, but to no avail.
Any help would be appreciated.
Thank you, and best regards,
VWind