oh sorry, guess I was not quite clear. The name attribute is unique.
Example:
<root>
<field1 name="John">
<field2 name="Mike" />
</field1>
</root>
When I try to add another attribute field called name, Infopath displays an error "A field or group with that name already exists."
As I understand it, any changes you make to one field updates the other field automatically. Which is not what I want to do.
Thanks for the help.