I have some simple XML which I would like to parse into an array in PHP so that I can build some dynamic SQL inserts.
Sample XML:
<Data>
<Key>1</Key>
<Column>Value 1</Column>
<Column2>Value 2</Column>
</Data>
Data will be passed to PHP via http POST.
What's the easiest way to do this? There should always be one instance of but would like the option to take multiple instances from one POST.
I can certainly build out some code to parse specific PHP, but I'd like to use a single piece of code to handle the data dynamically so that it can be used to create inserts for multiple tables.