Closed
Description
- arrayToXML(['BBB096630BD' => 'data...'], ...) - Its ok
- arrayToXML(['096630FR' => 'data...'], ...) - No ok
The problem with the second example is that it starts with a digit, and passes the check for! is_numeric, and when parsing back into an object, this xml gives an error.
The solution I think is to add a check for the first character not a digit and if a digit then add 'item'
Metadata
Metadata
Assignees
Labels
No labels
Activity