public function partialFormat($data, $nodeName = null)
    {
        if (!$nodeName) {
            $nodeName = $this->getNodeName($data);
        }
        $data = $this->parseData($data);

        if (is_scalar($data)) {
            return "<$nodeName>" . $this->parseScalarData($data) . "</$nodeName>";
        }
        return "<$nodeName>".$this->parseNonScalarData($data, $nodeName)."</$nodeName>";
    }
public function partialFormat($data, $nodeName = null)
    {
        if (!$nodeName) {
            $nodeName = $this->getNodeName($data);
        }
        $data = $this->parseData($data);

        if (is_scalar($data)) {
            return "<$nodeName>" . $this->parseScalarData($data) . "</$nodeName>";
        }
        return "<$nodeName>".$this->parseNonScalarData($data, $nodeName)."</$nodeName>";
    }
public function partialFormat ( $ data , $ nodeName = null ) { if ( ! $ nodeName ) { $ nodeName = $ this -> getNodeName ( $ data ) ; } $ data = $ this -> parseData ( $ data ) ; if ( is_scalar ( $ data ) ) { return "<$nodeName>" . $ this -> parseScalarData ( $ data ) . "</$nodeName>" ; } return "<$nodeName>" . $ this -> parseNonScalarData ( $ data , $ nodeName ) . "</$nodeName>" ; }
Format part of the data
@param mixed $data The data to be serialised into xml
@param string|null $nodeName The node currently being worked on
@return string
Format part of the data