edit XML with simpleXML

前端 未结 4 417
醉酒成梦
醉酒成梦 2020-11-30 14:56

How can I edit the value\'s in a xml file using simpleXML ?

I know how to create the file, but not how to edit the value in an existing file ?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 15:40

    Keep in mind that although you can edit XML with SimpleXML, there are limitations. For example, you can remove or delete a node or element. You can clear it so that its blank, but you can't eliminate it altogether. For that, you need DOM, or something like that.

提交回复
热议问题