How to create and set values for attribute in XML?

前端 未结 1 974
一整个雨季
一整个雨季 2020-12-07 02:29

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

相关标签:
1条回答
  • 2020-12-07 03:13

    The easiest way is using setAttribute:

    $v->setAttribute('id', 101);
    
    0 讨论(0)
提交回复
热议问题