How to create and set values for attribute in XML ? I need to set ateam id=\"101\" ? With this I listed my code. By using createAttribute i created but i dont know how to se
The easiest way is using setAttribute:
$v->setAttribute('id', 101);