Skip to content

Commit 2428777

Browse files
author
Yoshinari Takaoka
committed
Integrate user note 103376
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350611 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent e8daaef commit 2428777

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

reference/xmlwriter/functions/xmlwriter-start-attribute.xml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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">
@@ -50,6 +50,34 @@
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>

0 commit comments

Comments
 (0)