Jump to content

Alter Xml File Without Xml Lib


ThunderAI

Recommended Posts

How would I go about changing an xml file with custom tags. All i want to do is open the file, change some numbers and save the file. I'd rather not make an XML scheme for the file and do it that way.

 

for example, I have a file with many tags like this:

 

<tag x="3364.994" y="599.9155" z="0.3324151" />

 

and I want to alter the x and y values based on some criteria.

 

What would be the best approach to do that?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/271220-alter-xml-file-without-xml-lib/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.