File tree Expand file tree Collapse file tree
reference/simplexml/simplexmlelement Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: mch Status: ready -->
2+ <!-- EN-Revision: dca2a8354fc170f26545210ac78424ccc30950ea Maintainer: mch Status: ready -->
33<!-- Reviewed: no -->
44<refentry xml : id =" simplexmlelement.addchild" xmlns =" http://docbook.org/ns/docbook" >
55 <refnamediv >
3131 <para >
3232 Название дочернего элемента, который требуется добавить.
3333 </para >
34+ <para >
35+ Спецсимволы <literal >< </literal > и <literal >> </literal > экранируются
36+ автоматически, символ <literal >& </literal > требуется экранировать вручную.
37+ </para >
3438 </listitem >
3539 </varlistentry >
3640 <varlistentry >
@@ -95,8 +99,6 @@ $rating = $movie->addChild('rating', '5');
9599$rating->addAttribute('type', 'stars');
96100
97101echo $sxe->asXML();
98-
99- ?>
100102]]>
101103 </programlisting >
102104 &example.outputs.similar;
You can’t perform that action at this time.
0 commit comments