children

Adding attributes with ascending integer values to XML elements only if they have children

Adding attributes with ascending integer values to XML elements only if they have children Question: I want to add the add attribute ‘id="number"’ to an existing file. id attributes should only be added if the element has at least one child. So right now my XML file looks like this: <Invoice> <Fussteil> <Summen> <QF/> <UstSatz>21.00</UstSatz> …

Total answers: 1