So this might seem like a dumb question, but I can not find a single example of it. What I am looking for is a way to update an XML file WITHOUT knowing the names or attributes or anything about the file per say to hard code.
How I intend to do this, is I have php that reads the xml file, and creates a html form with a text field for each name + attribue combo ex:
<Tools>
<RangeScrew Red="255" Green="192" Blue="203"/>
<RangeRing Red="255" Green="192" Blue="203"/>
</Tools>
If it loaded something like this, it would look something like this:
So from here say I changed one of the values and clicked update value, I can pass any info to the next function, such as the name of the attribute, the node of the xml tree, or the whole node/parent combo. Since it will be heavily nested XML files.
There is a ton of examples where people hard code the path to these nodes to update them but I can't find a dynamic way. Any suggestions if I wanted to update? lets say if the example I gave was nested several deep.