src/Api/Serializer/XmlBody.php
public function build(Shape $shape, array $args)
    {
        $xml = new XMLWriter();
        $xml->openMemory();
        $xml->startDocument('1.0', 'UTF-8');
        $this->format($shape, $shape['locationName'] ?: $shape['name'], $args, $xml);
        $xml->endDocument();

        return $xml->outputMemory();
    }
public function build(Shape $shape, array $args)
    {
        $xml = new XMLWriter();
        $xml->openMemory();
        $xml->startDocument('1.0', 'UTF-8');
        $this->format($shape, $shape['locationName'] ?: $shape['name'], $args, $xml);
        $xml->endDocument();

        return $xml->outputMemory();
    }
public function build ( Shape $ shape , array $ args ) { $ xml = new XMLWriter ( ) ; $ xml -> openMemory ( ) ; $ xml -> startDocument ( '1.0' , 'UTF-8' ) ; $ this -> format ( $ shape , $ shape [ 'locationName' ] ? : $ shape [ 'name' ] , $ args , $ xml ) ; $ xml -> endDocument ( ) ; return $ xml -> outputMemory ( ) ; }
Builds the XML body based on an array of arguments.

@param Shape $shape Operation being constructed
@param array $args  Associative array of arguments

@return string
Builds the XML body based on an array of arguments .