Codeigniter - Disallowed Key Characters when sending XML in RESTful server

MrInfect

New Member
I'm implementing a REST server with codeigniter and it includes a function where some XML will be posted to retrieve some data.The XML is passed through the body of the request and retrieved with:\[code\]$xml = file_get_contents('php://input');\[/code\]The XML is then validated by this:\[code\]try{$doc = new DOMDocument();$doc->preserveWhiteSpace = FALSE;$doc->loadXML($xml);if ($doc->schemaValidate(APPPATH.'views/xml/xmlvalidate.xsd')){//--this is valid}}\[/code\]This works fine with the RESTclient in firefox, but when i use Advanced REST Client in chrome I get the "disallowed key characters" error, the offending string, as according to codeigniter, being:\[code\]<?xml version\[/code\]Anyone have any idea why it only works with firefox RESTclient? I need to get down to the cause of the problem in case it might error out in use after testing goes fine.
 
Back
Top