php change attribute

Posted by Kemrop on Stack Overflow See other posts from Stack Overflow or by Kemrop
Published on 2010-03-25T18:52:06Z Indexed on 2010/03/25 19:03 UTC
Read the original article Hit count: 85

Filed under:

I have an xml file of the following format some title some description

I am looking for an efficient way to replace contents of the attributes,be it DOM or simpleXML Example of my function call would be: changeAttribute("collection","collection id","new collection id")

Would result in something like some title some description

Thanks

© Stack Overflow or respective owner

Related posts about php