php: replace text in xml doc

Out of context: Reply #24

  • Started
  • Last post
  • 27 Responses
  • acescence0

    well that will set every leaf node to goodbye, but it's close. i still think you're doing this all ass backwards. why not read in the whole doc to a native php datatype, do all your manipulation, then write it all back out to an xml file? you could even just store it in a file as a serialized php object and not have to fuck with dom manipulation, then just overwrite a new xml file when it's updated.

View thread