XML Parser: adding attribute name to ID

Hello all,

 

I wrote an xml parser to handle a new set of xml files we will be localizing. The xml structure looks something like this:

 <Value Id="EnterNewPhoneNumber" Text="Enter Phone Number" Text2="Enter Mobile Number" ToolTip="Enter Phone Number" Link="Enter Phone Number here">
    <Validation>
      <MaxSize target="Text" max="36" />
    </Validation>
  </Value>

In order to prevent a bunch of duplicate keys, and for context, I want the attribute name (ie. Text, Text2, ToolTip, Link) to be part of the string ID, for example something like this: EnterNewPhoneNumber.Text, EnterNewPhoneNumber.ToolTip etc.

I have not been able to find a way to do that. Does anyone know if it is possible, and how to do that?

Thanks!

Penny

Parents Reply Children
No Data