Hello
I am looking for a method to insert random XML data in Java (or Perl).
<vehicles ID="DJ3RKFF9">
<vehicle>
<make>Toyota</make>
<model>Yaris</model>
<year>2009</year>
</vehicle>
<vehicle>
<make>Ford</make>
<model>Taurus</model>
<year>2008</year>
</vehicle>
</vehicles>
In the above example, I would need to make the ID
attribute a random series of characters. The rest of the data can remain the same.
It is only the insertion that I need help with, not creating the strings (thanks Sinan Ünür!)
Thanks in advance.