开发者

php xml attribute value replace

开发者 https://www.devze.com 2022-12-25 01:48 出处:网络
Say i have an xml file of this nature some data I wan to replace attributes of each later using one function in php开发者_StackOverflow中文版:

Say i have an xml file of this nature some data

I wan to replace attributes of each later using one function in php开发者_StackOverflow中文版: example say: replaceAttribute("collections","somecollection,"newcollection");


Check this http://www.w3schools.com/DOM/tryit.asp?filename=try_dom_setattribute1 . Hope it helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号