T
terry
Using Java, could I append new record into a xml file?
The xml file example is in the following:
<?xml version='1.0' encoding='utf-8'?>
<test>
<emp>
<id>1</id>
<name>Terry</name>
<position>Doctor</position>
</emp>
<emp>
<id>2</id>
<name>Kitty</name>
<position>Nurse</position>
</emp>
<emp>
<id>3</id>
<name>Candy</name>
<position>Nurse</position>
</emp>
</test>
The xml file example is in the following:
<?xml version='1.0' encoding='utf-8'?>
<test>
<emp>
<id>1</id>
<name>Terry</name>
<position>Doctor</position>
</emp>
<emp>
<id>2</id>
<name>Kitty</name>
<position>Nurse</position>
</emp>
<emp>
<id>3</id>
<name>Candy</name>
<position>Nurse</position>
</emp>
</test>