- Timestamp:
- 01/25/08 20:09:22 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/xml/stubLibXmlXMLStreamWriter.php
r1296 r1301 1 1 <?php 2 2 /** 3 * XML S Tream Writer based on libxml3 * XML Stream Writer based on libxml 4 4 * 5 5 * @author Stephan Schmidt <schst@stubbles.net> … … 12 12 ); 13 13 /** 14 * XML S Tream Writer based on libxml14 * XML Stream Writer based on libxml 15 15 * 16 16 * @package stubbles … … 35 35 * Create a new writer 36 36 * 37 * @param string$xmlVersion38 * @param string$encoding37 * @param string $xmlVersion 38 * @param string $encoding 39 39 */ 40 40 public function __construct($xmlVersion = '1.0', $encoding = 'UTF-8') … … 64 64 * Write an opening tag 65 65 * 66 * @param string$elementName66 * @param string $elementName 67 67 */ 68 68 public function writeStartElement($elementName) … … 74 74 * Write a text node 75 75 * 76 * @param string$data76 * @param string $data 77 77 */ 78 78 public function writeText($data) … … 84 84 * Write a cdata section 85 85 * 86 * @param string$cdata86 * @param string $cdata 87 87 */ 88 88 public function writeCData($cdata) … … 94 94 * Write a comment 95 95 * 96 * @param string$comment96 * @param string $comment 97 97 */ 98 98 public function writeComment($comment) … … 104 104 * Write a processing instruction 105 105 * 106 * @param string$target107 * @param string$data106 * @param string $target 107 * @param string $data 108 108 */ 109 109 public function writeProcessingInstruction($target, $data = '') … … 115 115 * Write an xml fragment 116 116 * 117 * @param string$fragment117 * @param string $fragment 118 118 */ 119 119 public function writeXmlFragment($fragment) … … 125 125 * Write an attribute 126 126 * 127 * @param string$attributeName128 * @param string$attributeValue127 * @param string $attributeName 128 * @param string $attributeValue 129 129 */ 130 130 public function writeAttribute($attributeName, $attributeValue) … … 144 144 * Write a full element 145 145 * 146 * @param string$elementName147 * @param array$attributes148 * @param string$cdata146 * @param string $elementName 147 * @param array $attributes 148 * @param string $cdata 149 149 */ 150 150 public function writeElement($elementName, array $attributes = array(), $cdata = null) … … 163 163 * Import another stream 164 164 * 165 * @param stubXMLStreamWriter 165 * @param stubXMLStreamWriter $writer 166 166 * @throws stubMethodNotSupportedException 167 167 */ … … 174 174 * Return the XML as a DOM 175 175 * 176 * @return DOMDocument176 * @return DOMDocument 177 177 */ 178 178 public function asDom() … … 186 186 * Return the XML as a string 187 187 * 188 * @return string188 * @return string 189 189 */ 190 190 public function asXML()
