fishbones/core/Pump.php
/**
	 * output xml doc <data><line><value>x</value></line></data>
	 * 
	 * @param $data String the data
	 * createa an xml document with a value node in a line node in a data root node
	 * send that to output, and die the script
	 * 
	 */
output xml doc x

@param $data String the data
createa an xml document with a value node in a line node in a data root node
send that to output, and die the script
output xml doc x @param $data String the data createa an xml document with a value node in a line node in a data root node send that to output and die the script
public function outXmlValue( $value ) {
		header("Content-Type: text/xml");
		header("Cache-Control: no-store, no-cache, must-revalidate");
		$domXml = new DOMDocument('1.0', 'utf-8');
		$dataNode = $domXml->appendChild(new DOMElement('data'));	
		$lineNode = $dataNode->appendChild( new DOMElement('line') );	
		$valueNode = $lineNode->appendChild( new DOMElement('value') );	
		$texNode = $domXml->createTextNode( $value );
		$valueNode->appendChild( $texNode );
		$xmlString = $domXml->saveXML();
		Fishbones::getLog()->writeOutput( $xmlString );
		die( $xmlString );
	}
public function outXmlValue ( $ value ) { header ( " Content-Type: text/xml " ) ; header ( " Cache-Control: no-store, no-cache, must-revalidate " ) ; $ domXml = new DOMDocument ( '1.0' , 'utf-8' ) ; $ dataNode = $ domXml -> appendChild ( new DOMElement ( 'data' ) ) ; $ lineNode = $ dataNode -> appendChild ( new DOMElement ( 'line' ) ) ; $ valueNode = $ lineNode -> appendChild ( new DOMElement ( 'value' ) ) ; $ texNode = $ domXml -> createTextNode ( $ value ) ; $ valueNode -> appendChild ( $ texNode ) ; $ xmlString = $ domXml -> saveXML ( ) ; Fishbones :: getLog ( ) -> writeOutput ( $ xmlString ) ; die ( $ xmlString ) ; }
output xml doc <data><line><value>x</value></line></data>
output xml doc <data > <line > <value > x< / value > < / line > < / data >
//$valueNode = $lineNode->appendChild( new DOMElement('value', $value ) );	