[1] | 1 | <HTML
|
---|
| 2 | ><HEAD
|
---|
| 3 | ><TITLE
|
---|
| 4 | >DomDocument->create_attribute</TITLE
|
---|
| 5 | ><META
|
---|
| 6 | NAME="GENERATOR"
|
---|
| 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
---|
| 8 | REL="HOME"
|
---|
| 9 | TITLE="Manuál PHP"
|
---|
| 10 | HREF="index.html"><LINK
|
---|
| 11 | REL="UP"
|
---|
| 12 | TITLE="DOM XML funkce"
|
---|
| 13 | HREF="ref.domxml.html"><LINK
|
---|
| 14 | REL="PREVIOUS"
|
---|
| 15 | TITLE="DomDocument->add_root [deprecated]"
|
---|
| 16 | HREF="function.domdocument-add-root.html"><LINK
|
---|
| 17 | REL="NEXT"
|
---|
| 18 | TITLE="DomDocument->create_cdata_section"
|
---|
| 19 | HREF="function.domdocument-create-cdata-section.html"><META
|
---|
| 20 | HTTP-EQUIV="Content-type"
|
---|
| 21 | CONTENT="text/html; charset=ISO-8859-2"></HEAD
|
---|
| 22 | ><BODY
|
---|
| 23 | CLASS="refentry"
|
---|
| 24 | BGCOLOR="#FFFFFF"
|
---|
| 25 | TEXT="#000000"
|
---|
| 26 | LINK="#0000FF"
|
---|
| 27 | VLINK="#840084"
|
---|
| 28 | ALINK="#0000FF"
|
---|
| 29 | ><DIV
|
---|
| 30 | CLASS="NAVHEADER"
|
---|
| 31 | ><TABLE
|
---|
| 32 | SUMMARY="Header navigation table"
|
---|
| 33 | WIDTH="100%"
|
---|
| 34 | BORDER="0"
|
---|
| 35 | CELLPADDING="0"
|
---|
| 36 | CELLSPACING="0"
|
---|
| 37 | ><TR
|
---|
| 38 | ><TH
|
---|
| 39 | COLSPAN="3"
|
---|
| 40 | ALIGN="center"
|
---|
| 41 | >Manuál PHP</TH
|
---|
| 42 | ></TR
|
---|
| 43 | ><TR
|
---|
| 44 | ><TD
|
---|
| 45 | WIDTH="10%"
|
---|
| 46 | ALIGN="left"
|
---|
| 47 | VALIGN="bottom"
|
---|
| 48 | ><A
|
---|
| 49 | HREF="function.domdocument-add-root.html"
|
---|
| 50 | ACCESSKEY="P"
|
---|
| 51 | >Pøedcházející</A
|
---|
| 52 | ></TD
|
---|
| 53 | ><TD
|
---|
| 54 | WIDTH="80%"
|
---|
| 55 | ALIGN="center"
|
---|
| 56 | VALIGN="bottom"
|
---|
| 57 | ></TD
|
---|
| 58 | ><TD
|
---|
| 59 | WIDTH="10%"
|
---|
| 60 | ALIGN="right"
|
---|
| 61 | VALIGN="bottom"
|
---|
| 62 | ><A
|
---|
| 63 | HREF="function.domdocument-create-cdata-section.html"
|
---|
| 64 | ACCESSKEY="N"
|
---|
| 65 | >Dal¹í</A
|
---|
| 66 | ></TD
|
---|
| 67 | ></TR
|
---|
| 68 | ></TABLE
|
---|
| 69 | ><HR
|
---|
| 70 | ALIGN="LEFT"
|
---|
| 71 | WIDTH="100%"></DIV
|
---|
| 72 | ><H1
|
---|
| 73 | ><A
|
---|
| 74 | NAME="function.DomDocument-create-attribute"
|
---|
| 75 | ></A
|
---|
| 76 | >DomDocument->create_attribute</H1
|
---|
| 77 | ><DIV
|
---|
| 78 | CLASS="refnamediv"
|
---|
| 79 | ><A
|
---|
| 80 | NAME="AEN17869"
|
---|
| 81 | ></A
|
---|
| 82 | ><P
|
---|
| 83 | > (no version information, might be only in CVS)</P
|
---|
| 84 | >DomDocument->create_attribute --
|
---|
| 85 | Create new attribute
|
---|
| 86 | </DIV
|
---|
| 87 | ><DIV
|
---|
| 88 | CLASS="refsect1"
|
---|
| 89 | ><A
|
---|
| 90 | NAME="AEN17872"
|
---|
| 91 | ></A
|
---|
| 92 | ><H2
|
---|
| 93 | >Description</H2
|
---|
| 94 | >object <B
|
---|
| 95 | CLASS="methodname"
|
---|
| 96 | >DomDocument->create_attribute</B
|
---|
| 97 | > ( string name, string value)<BR
|
---|
| 98 | ></BR
|
---|
| 99 | ><P
|
---|
| 100 | > This function returns a new instance of class
|
---|
| 101 | <B
|
---|
| 102 | CLASS="classname"
|
---|
| 103 | >DomAttribute</B
|
---|
| 104 | >. The name of the attribute is the
|
---|
| 105 | value of the first parameter. The value of the attribute is the value of
|
---|
| 106 | the second parameter. This node will not show up in the
|
---|
| 107 | document unless it is inserted with e.g.
|
---|
| 108 | <B
|
---|
| 109 | CLASS="function"
|
---|
| 110 | >DomNode_append_child()</B
|
---|
| 111 | >.
|
---|
| 112 | </P
|
---|
| 113 | ><P
|
---|
| 114 | > The return value is false if an error occured.
|
---|
| 115 | </P
|
---|
| 116 | ><P
|
---|
| 117 | > See also <B
|
---|
| 118 | CLASS="function"
|
---|
| 119 | >DomNode_append_child()</B
|
---|
| 120 | >,
|
---|
| 121 | <B
|
---|
| 122 | CLASS="function"
|
---|
| 123 | >DomDocument_create_element()</B
|
---|
| 124 | >,
|
---|
| 125 | <B
|
---|
| 126 | CLASS="function"
|
---|
| 127 | >DomDocument_create_text()</B
|
---|
| 128 | >,
|
---|
| 129 | <B
|
---|
| 130 | CLASS="function"
|
---|
| 131 | >DomDocument_create_cdata_section()</B
|
---|
| 132 | >,
|
---|
| 133 | <B
|
---|
| 134 | CLASS="function"
|
---|
| 135 | >DomDocument_create_processing_instruction()</B
|
---|
| 136 | >,
|
---|
| 137 | <B
|
---|
| 138 | CLASS="function"
|
---|
| 139 | >DomDocument_create_entity_reference()</B
|
---|
| 140 | >,
|
---|
| 141 | <B
|
---|
| 142 | CLASS="function"
|
---|
| 143 | >DomNode_insert_before()</B
|
---|
| 144 | >.
|
---|
| 145 | </P
|
---|
| 146 | ></DIV
|
---|
| 147 | ><DIV
|
---|
| 148 | CLASS="NAVFOOTER"
|
---|
| 149 | ><HR
|
---|
| 150 | ALIGN="LEFT"
|
---|
| 151 | WIDTH="100%"><TABLE
|
---|
| 152 | SUMMARY="Footer navigation table"
|
---|
| 153 | WIDTH="100%"
|
---|
| 154 | BORDER="0"
|
---|
| 155 | CELLPADDING="0"
|
---|
| 156 | CELLSPACING="0"
|
---|
| 157 | ><TR
|
---|
| 158 | ><TD
|
---|
| 159 | WIDTH="33%"
|
---|
| 160 | ALIGN="left"
|
---|
| 161 | VALIGN="top"
|
---|
| 162 | ><A
|
---|
| 163 | HREF="function.domdocument-add-root.html"
|
---|
| 164 | ACCESSKEY="P"
|
---|
| 165 | >Pøedcházející</A
|
---|
| 166 | ></TD
|
---|
| 167 | ><TD
|
---|
| 168 | WIDTH="34%"
|
---|
| 169 | ALIGN="center"
|
---|
| 170 | VALIGN="top"
|
---|
| 171 | ><A
|
---|
| 172 | HREF="index.html"
|
---|
| 173 | ACCESSKEY="H"
|
---|
| 174 | >Domù</A
|
---|
| 175 | ></TD
|
---|
| 176 | ><TD
|
---|
| 177 | WIDTH="33%"
|
---|
| 178 | ALIGN="right"
|
---|
| 179 | VALIGN="top"
|
---|
| 180 | ><A
|
---|
| 181 | HREF="function.domdocument-create-cdata-section.html"
|
---|
| 182 | ACCESSKEY="N"
|
---|
| 183 | >Dal¹í</A
|
---|
| 184 | ></TD
|
---|
| 185 | ></TR
|
---|
| 186 | ><TR
|
---|
| 187 | ><TD
|
---|
| 188 | WIDTH="33%"
|
---|
| 189 | ALIGN="left"
|
---|
| 190 | VALIGN="top"
|
---|
| 191 | >DomDocument->add_root [deprecated]</TD
|
---|
| 192 | ><TD
|
---|
| 193 | WIDTH="34%"
|
---|
| 194 | ALIGN="center"
|
---|
| 195 | VALIGN="top"
|
---|
| 196 | ><A
|
---|
| 197 | HREF="ref.domxml.html"
|
---|
| 198 | ACCESSKEY="U"
|
---|
| 199 | >Nahoru</A
|
---|
| 200 | ></TD
|
---|
| 201 | ><TD
|
---|
| 202 | WIDTH="33%"
|
---|
| 203 | ALIGN="right"
|
---|
| 204 | VALIGN="top"
|
---|
| 205 | >DomDocument->create_cdata_section</TD
|
---|
| 206 | ></TR
|
---|
| 207 | ></TABLE
|
---|
| 208 | ></DIV
|
---|
| 209 | ></BODY
|
---|
| 210 | ></HTML
|
---|
| 211 | >
|
---|