PHP order xml elements to match XSD
Budget: $10 – $30 USD
I have various XSD files provided by AmazonMWS that make up the required elements, data types and order that XML must be submitted in order to validate.
Currently the XML files do not have the elements in the same order as required by the XSD's.
A require a function to read XSD and order the XML appropriately, and validate returning true for success, or an array containing the validation failure.
Input: Unordered XML string and XSD files
Output: Ordered XML validated with XSD.
Currently the XML files do not have the elements in the same order as required by the XSD's.
A require a function to read XSD and order the XML appropriately, and validate returning true for success, or an array containing the validation failure.
Input: Unordered XML string and XSD files
Output: Ordered XML validated with XSD.