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 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 60294d6f9208a28d66112876a4fc8f73952a6d16 Maintainer: takagi Status: ready -->
3
+ <!-- EN-Revision: 5b39b84a3bc51cc2bf78aebd109d10619fc41b7b Maintainer: takagi Status: ready -->
4
4
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
5
5
<!-- Credits: mumumu -->
6
6
<refentry xml : id =" function.xmlwriter-start-attribute" xmlns =" http://docbook.org/ns/docbook" >
50
50
</para >
51
51
</refsect1 >
52
52
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
+
53
81
<refsect1 role =" seealso" >
54
82
&reftitle.seealso;
55
83
<para >
You can’t perform that action at this time.
0 commit comments