EMP Basefile Edit Help

Hi,

I need to know how to add an attribute to a basefile section in endpoint manager. This is as close as I have gotten:

<addOnModules>
   <addOnModule idx="1">
      <deviceType>7916</deviceType>
      <deviceLine>24</deviceLine>
      <loadInformation>B016-1-0-4-2</loadInformation>
   </addOnModule idx="1">
</addOnModules>

As you can see, I was trying to add the idx=“1” attribute to the addOnModule section. But it ended up closing with:
</addOnModule idx="1">
that causes an XML parse error on my phone,
I need it to open with:
<addOnModule idx="1">
and close with:
</addOnModule>

Anyone know how I can do this?
Thank you