File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
reference/xmlwriter/functions Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 60294d6f9208a28d66112876a4fc8f73952a6d16 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 5b39b84a3bc51cc2bf78aebd109d10619fc41b7b Maintainer: takagi Status: ready -->
44<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
55<!-- Credits: mumumu -->
66<refentry xml : id =" function.xmlwriter-start-attribute" xmlns =" http://docbook.org/ns/docbook" >
5050 </para >
5151 </refsect1 >
5252
53+ <refsect1 role =" examples" >
54+ &reftitle.examples;
55+ <example xml : id =" xmlwriter-start-attribute.example.basic" >
56+ <title ><methodname >XMLWriter::startAttribute</methodname > の基本的な使い方</title >
57+ <programlisting role =" php" >
58+ <![CDATA[
59+ <?php
60+ $writer = new XMLWriter;
61+ $writer->openURI('php://output');
62+ $writer->startDocument('1.0', 'UTF-8');?>
63+ $writer->startElement('element');
64+ $writer->startAttribute('attribute');
65+ $writer->text('value');
66+ $writer->endAttribute();
67+ $writer->endElement();
68+ $writer->endDocument();
69+ ]]>
70+ </programlisting >
71+ &example.outputs.similar;
72+ <screen >
73+ <![CDATA[
74+ <?xml version="1.0" encoding="UTF-8"?>
75+ <element attribute="value"/>
76+ ]]>
77+ </screen >
78+ </example >
79+ </refsect1 >
80+
5381 <refsect1 role =" seealso" >
5482 &reftitle.seealso;
5583 <para >
You can’t perform that action at this time.
0 commit comments