original_string: protected function decodeXml($body)
      {
          try {
              $xml = Xml::build($body, ['return' => 'domdocument', 'readFile' => false]);
              // We might not get child nodes if there are nested inline entities.
              if ((int)$xml->childNodes->length > 0) {
                  return Xml::toArray($xml);
              }
  
              return [];
          } catch (XmlException $e) {
              return [];
          }
      }
code: protected function decodeXml($body)
      {
          try {
              $xml = Xml::build($body, ['return' => 'domdocument', 'readFile' => false]);
              // We might not get child nodes if there are nested inline entities.
              if ((int)$xml->childNodes->length > 0) {
                  return Xml::toArray($xml);
              }
  
              return [];
          } catch (XmlException $e) {
              return [];
          }
      }
code_tokens: protected function decodeXml ( $ body ) { try { $ xml = Xml :: build ( $ body , [ 'return' => 'domdocument' , 'readFile' => false ] ) ; // We might not get child nodes if there are nested inline entities. if ( ( int ) $ xml -> childNodes -> length > 0 ) { return Xml :: toArray ( $ xml ) ; } return [ ] ; } catch ( XmlException $ e ) { return [ ] ; } }
docstring: Decode XML into an array.
  
  @param string $body The request body to decode
  @return array
docstring_tokens: Decode XML into an array .