| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <mxmldoc xmlns="http://www.easysw.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.minixml.org/mxmldoc.xsd"> |
| 3 | <function name="mxmlAdd"> |
| 4 | <description>Add a node to a tree. |
| 5 | |
| 6 | Adds the specified node to the parent. If the child argument is not |
| 7 | NULL, puts the new node before or after the specified child depending |
| 8 | on the value of the where argument. If the child argument is NULL, |
| 9 | puts the new node at the beginning of the child list (MXML_ADD_BEFORE) |
| 10 | or at the end of the child list (MXML_ADD_AFTER). The constant |
| 11 | MXML_ADD_TO_PARENT can be used to specify a NULL child pointer.</description> |
| 12 | <argument name="parent" direction="I"> |
| 13 | <type>mxml_node_t *</type> |
| 14 | <description>Parent node</description> |
| 15 | </argument> |
| 16 | <argument name="where" direction="I"> |
| 17 | <type>int</type> |
| 18 | <description>Where to add, MXML_ADD_BEFORE or MXML_ADD_AFTER</description> |
| 19 | </argument> |
| 20 | <argument name="child" direction="I"> |
| 21 | <type>mxml_node_t *</type> |
| 22 | <description>Child node for where or MXML_ADD_TO_PARENT</description> |
| 23 | </argument> |
| 24 | <argument name="node" direction="I"> |
| 25 | <type>mxml_node_t *</type> |
| 26 | <description>Node to add</description> |
| 27 | </argument> |
| 28 | </function> |
| 29 | <function name="mxmlDelete"> |
| 30 | <description>Delete a node and all of its children. |
| 31 | |
| 32 | If the specified node has a parent, this function first removes the |
| 33 | node from its parent using the mxmlRemove() function.</description> |
| 34 | <argument name="node" direction="I"> |
| 35 | <type>mxml_node_t *</type> |
| 36 | <description>Node to delete</description> |
| 37 | </argument> |
| 38 | </function> |
| 39 | <function name="mxmlElementDeleteAttr"> |
| 40 | <description>Delete an attribute. |
| 41 | |
| 42 | @since Mini-XML 2.4@</description> |
| 43 | <argument name="node" direction="I"> |
| 44 | <type>mxml_node_t *</type> |
| 45 | <description>Element</description> |
| 46 | </argument> |
| 47 | <argument name="name" direction="I"> |
| 48 | <type>const char *</type> |
| 49 | <description>Attribute name</description> |
| 50 | </argument> |
| 51 | </function> |
| 52 | <function name="mxmlElementGetAttr"> |
| 53 | <returnvalue> |
| 54 | <type>const char *</type> |
| 55 | <description>Attribute value or NULL</description> |
| 56 | </returnvalue> |
| 57 | <description>Get an attribute. |
| 58 | |
| 59 | This function returns NULL if the node is not an element or the |
| 60 | named attribute does not exist.</description> |
| 61 | <argument name="node" direction="I"> |
| 62 | <type>mxml_node_t *</type> |
| 63 | <description>Element node</description> |
| 64 | </argument> |
| 65 | <argument name="name" direction="I"> |
| 66 | <type>const char *</type> |
| 67 | <description>Name of attribute</description> |
| 68 | </argument> |
| 69 | </function> |
| 70 | <function name="mxmlElementSetAttr"> |
| 71 | <description>Set an attribute. |
| 72 | |
| 73 | If the named attribute already exists, the value of the attribute |
| 74 | is replaced by the new string value. The string value is copied |
| 75 | into the element node. This function does nothing if the node is |
| 76 | not an element.</description> |
| 77 | <argument name="node" direction="I"> |
| 78 | <type>mxml_node_t *</type> |
| 79 | <description>Element node</description> |
| 80 | </argument> |
| 81 | <argument name="name" direction="I"> |
| 82 | <type>const char *</type> |
| 83 | <description>Name of attribute</description> |
| 84 | </argument> |
| 85 | <argument name="value" direction="I"> |
| 86 | <type>const char *</type> |
| 87 | <description>Attribute value</description> |
| 88 | </argument> |
| 89 | </function> |
| 90 | <function name="mxmlElementSetAttrf"> |
| 91 | <description>Set an attribute with a formatted value. |
| 92 | |
| 93 | If the named attribute already exists, the value of the attribute |
| 94 | is replaced by the new formatted string. The formatted string value is |
| 95 | copied into the element node. This function does nothing if the node |
| 96 | is not an element. |
| 97 | |
| 98 | @since Mini-XML 2.3@</description> |
| 99 | <argument name="node" direction="I"> |
| 100 | <type>mxml_node_t *</type> |
| 101 | <description>Element node</description> |
| 102 | </argument> |
| 103 | <argument name="name" direction="I"> |
| 104 | <type>const char *</type> |
| 105 | <description>Name of attribute</description> |
| 106 | </argument> |
| 107 | <argument name="format" direction="I"> |
| 108 | <type>const char *</type> |
| 109 | <description>Printf-style attribute value</description> |
| 110 | </argument> |
| 111 | <argument name="..." direction="I"> |
| 112 | <type /> <description>Additional arguments as needed</description> |
| 113 | </argument> |
| 114 | </function> |
| 115 | <function name="mxmlEntityAddCallback"> |
| 116 | <returnvalue> |
| 117 | <type>int</type> |
| 118 | <description>0 on success, -1 on failure</description> |
| 119 | </returnvalue> |
| 120 | <description>Add a callback to convert entities to Unicode.</description> |
| 121 | <argument name="cb" direction="I"> |
| 122 | <type>mxml_entity_cb_t</type> |
| 123 | <description>Callback function to add</description> |
| 124 | </argument> |
| 125 | </function> |
| 126 | <function name="mxmlEntityGetName"> |
| 127 | <returnvalue> |
| 128 | <type>const char *</type> |
| 129 | <description>Entity name or NULL</description> |
| 130 | </returnvalue> |
| 131 | <description>Get the name that corresponds to the character value. |
| 132 | |
| 133 | If val does not need to be represented by a named entity, NULL is returned.</description> |
| 134 | <argument name="val" direction="I"> |
| 135 | <type>int</type> |
| 136 | <description>Character value</description> |
| 137 | </argument> |
| 138 | </function> |
| 139 | <function name="mxmlEntityGetValue"> |
| 140 | <returnvalue> |
| 141 | <type>int</type> |
| 142 | <description>Character value or -1 on error</description> |
| 143 | </returnvalue> |
| 144 | <description>Get the character corresponding to a named entity. |
| 145 | |
| 146 | The entity name can also be a numeric constant. -1 is returned if the |
| 147 | name is not known.</description> |
| 148 | <argument name="name" direction="I"> |
| 149 | <type>const char *</type> |
| 150 | <description>Entity name</description> |
| 151 | </argument> |
| 152 | </function> |
| 153 | <function name="mxmlEntityRemoveCallback"> |
| 154 | <description>Remove a callback.</description> |
| 155 | <argument name="cb" direction="I"> |
| 156 | <type>mxml_entity_cb_t</type> |
| 157 | <description>Callback function to remove</description> |
| 158 | </argument> |
| 159 | </function> |
| 160 | <function name="mxmlFindElement"> |
| 161 | <returnvalue> |
| 162 | <type>mxml_node_t *</type> |
| 163 | <description>Element node or NULL</description> |
| 164 | </returnvalue> |
| 165 | <description>Find the named element. |
| 166 | |
| 167 | The search is constrained by the name, attribute name, and value; any |
| 168 | NULL names or values are treated as wildcards, so different kinds of |
| 169 | searches can be implemented by looking for all elements of a given name |
| 170 | or all elements with a specific attribute. The descend argument determines |
| 171 | whether the search descends into child nodes; normally you will use |
| 172 | MXML_DESCEND_FIRST for the initial search and MXML_NO_DESCEND to find |
| 173 | additional direct descendents of the node. The top node argument |
| 174 | constrains the search to a particular node's children.</description> |
| 175 | <argument name="node" direction="I"> |
| 176 | <type>mxml_node_t *</type> |
| 177 | <description>Current node</description> |
| 178 | </argument> |
| 179 | <argument name="top" direction="I"> |
| 180 | <type>mxml_node_t *</type> |
| 181 | <description>Top node</description> |
| 182 | </argument> |
| 183 | <argument name="name" direction="I"> |
| 184 | <type>const char *</type> |
| 185 | <description>Element name or NULL for any</description> |
| 186 | </argument> |
| 187 | <argument name="attr" direction="I"> |
| 188 | <type>const char *</type> |
| 189 | <description>Attribute name, or NULL for none</description> |
| 190 | </argument> |
| 191 | <argument name="value" direction="I"> |
| 192 | <type>const char *</type> |
| 193 | <description>Attribute value, or NULL for any</description> |
| 194 | </argument> |
| 195 | <argument name="descend" direction="I"> |
| 196 | <type>int</type> |
| 197 | <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description> |
| 198 | </argument> |
| 199 | </function> |
| 200 | <function name="mxmlFindPath"> |
| 201 | <returnvalue> |
| 202 | <type>mxml_node_t *</type> |
| 203 | <description>Found node or NULL</description> |
| 204 | </returnvalue> |
| 205 | <description>Find a node with the given path. |
| 206 | |
| 207 | The "path" is a slash-separated list of element names. The name "*" is |
| 208 | considered a wildcard for one or more levels of elements. For example, |
| 209 | "foo/one/two", "bar/two/one", "*/one", and so forth. |
| 210 | |
| 211 | The first child node of the found node is returned if the given node has |
| 212 | children and the first child is a value node. |
| 213 | |
| 214 | @since Mini-XML 2.7@</description> |
| 215 | <argument name="top" direction="I"> |
| 216 | <type>mxml_node_t *</type> |
| 217 | <description>Top node</description> |
| 218 | </argument> |
| 219 | <argument name="path" direction="I"> |
| 220 | <type>const char *</type> |
| 221 | <description>Path to element</description> |
| 222 | </argument> |
| 223 | </function> |
| 224 | <function name="mxmlGetCDATA"> |
| 225 | <returnvalue> |
| 226 | <type>const char *</type> |
| 227 | <description>CDATA value or NULL</description> |
| 228 | </returnvalue> |
| 229 | <description>Get the value for a CDATA node. |
| 230 | |
| 231 | @code NULL@ is returned if the node is not a CDATA element. |
| 232 | |
| 233 | @since Mini-XML 2.7@</description> |
| 234 | <argument name="node" direction="I"> |
| 235 | <type>mxml_node_t *</type> |
| 236 | <description>Node to get</description> |
| 237 | </argument> |
| 238 | </function> |
| 239 | <function name="mxmlGetCustom"> |
| 240 | <returnvalue> |
| 241 | <type>const void *</type> |
| 242 | <description>Custom value or NULL</description> |
| 243 | </returnvalue> |
| 244 | <description>Get the value for a custom node. |
| 245 | |
| 246 | @code NULL@ is returned if the node (or its first child) is not a custom |
| 247 | value node. |
| 248 | |
| 249 | @since Mini-XML 2.7@</description> |
| 250 | <argument name="node" direction="I"> |
| 251 | <type>mxml_node_t *</type> |
| 252 | <description>Node to get</description> |
| 253 | </argument> |
| 254 | </function> |
| 255 | <function name="mxmlGetElement"> |
| 256 | <returnvalue> |
| 257 | <type>const char *</type> |
| 258 | <description>Element name or NULL</description> |
| 259 | </returnvalue> |
| 260 | <description>Get the name for an element node. |
| 261 | |
| 262 | @code NULL@ is returned if the node is not an element node. |
| 263 | |
| 264 | @since Mini-XML 2.7@</description> |
| 265 | <argument name="node" direction="I"> |
| 266 | <type>mxml_node_t *</type> |
| 267 | <description>Node to get</description> |
| 268 | </argument> |
| 269 | </function> |
| 270 | <function name="mxmlGetFirstChild"> |
| 271 | <returnvalue> |
| 272 | <type>mxml_node_t *</type> |
| 273 | <description>First child or NULL</description> |
| 274 | </returnvalue> |
| 275 | <description>Get the first child of an element node. |
| 276 | |
| 277 | @code NULL@ is returned if the node is not an element node or if the node |
| 278 | has no children. |
| 279 | |
| 280 | @since Mini-XML 2.7@</description> |
| 281 | <argument name="node" direction="I"> |
| 282 | <type>mxml_node_t *</type> |
| 283 | <description>Node to get</description> |
| 284 | </argument> |
| 285 | </function> |
| 286 | <function name="mxmlGetInteger"> |
| 287 | <returnvalue> |
| 288 | <type>int</type> |
| 289 | <description>Integer value or 0</description> |
| 290 | </returnvalue> |
| 291 | <description>Get the integer value from the specified node or its |
| 292 | first child. |
| 293 | |
| 294 | 0 is returned if the node (or its first child) is not an integer value node. |
| 295 | |
| 296 | @since Mini-XML 2.7@</description> |
| 297 | <argument name="node" direction="I"> |
| 298 | <type>mxml_node_t *</type> |
| 299 | <description>Node to get</description> |
| 300 | </argument> |
| 301 | </function> |
| 302 | <function name="mxmlGetLastChild"> |
| 303 | <returnvalue> |
| 304 | <type>mxml_node_t *</type> |
| 305 | <description>Last child or NULL</description> |
| 306 | </returnvalue> |
| 307 | <description>Get the last child of an element node. |
| 308 | |
| 309 | @code NULL@ is returned if the node is not an element node or if the node |
| 310 | has no children. |
| 311 | |
| 312 | @since Mini-XML 2.7@</description> |
| 313 | <argument name="node" direction="I"> |
| 314 | <type>mxml_node_t *</type> |
| 315 | <description>Node to get</description> |
| 316 | </argument> |
| 317 | </function> |
| 318 | <function name="mxmlGetNextSibling"> |
| 319 | <returnvalue> |
| 320 | <type>mxml_node_t *</type> |
| 321 | <description>Get the next node for the current parent. |
| 322 | |
| 323 | @code NULL@ is returned if this is the last child for the current parent. |
| 324 | |
| 325 | @since Mini-XML 2.7@</description> |
| 326 | </returnvalue> |
| 327 | <description>Return the node type...</description> |
| 328 | <argument name="node" direction="I"> |
| 329 | <type>mxml_node_t *</type> |
| 330 | <description>Node to get</description> |
| 331 | </argument> |
| 332 | </function> |
| 333 | <function name="mxmlGetOpaque"> |
| 334 | <returnvalue> |
| 335 | <type>const char *</type> |
| 336 | <description>Opaque string or NULL</description> |
| 337 | </returnvalue> |
| 338 | <description>Get an opaque string value for a node or its first child. |
| 339 | |
| 340 | @code NULL@ is returned if the node (or its first child) is not an opaque |
| 341 | value node. |
| 342 | |
| 343 | @since Mini-XML 2.7@</description> |
| 344 | <argument name="node" direction="I"> |
| 345 | <type>mxml_node_t *</type> |
| 346 | <description>Node to get</description> |
| 347 | </argument> |
| 348 | </function> |
| 349 | <function name="mxmlGetParent"> |
| 350 | <returnvalue> |
| 351 | <type>mxml_node_t *</type> |
| 352 | <description>Parent node or NULL</description> |
| 353 | </returnvalue> |
| 354 | <description>Get the parent node. |
| 355 | |
| 356 | @code NULL@ is returned for a root node. |
| 357 | |
| 358 | @since Mini-XML 2.7@</description> |
| 359 | <argument name="node" direction="I"> |
| 360 | <type>mxml_node_t *</type> |
| 361 | <description>Node to get</description> |
| 362 | </argument> |
| 363 | </function> |
| 364 | <function name="mxmlGetPrevSibling"> |
| 365 | <returnvalue> |
| 366 | <type>mxml_node_t *</type> |
| 367 | <description>Previous node or NULL</description> |
| 368 | </returnvalue> |
| 369 | <description>Get the previous node for the current parent. |
| 370 | |
| 371 | @code NULL@ is returned if this is the first child for the current parent. |
| 372 | |
| 373 | @since Mini-XML 2.7@</description> |
| 374 | <argument name="node" direction="I"> |
| 375 | <type>mxml_node_t *</type> |
| 376 | <description>Node to get</description> |
| 377 | </argument> |
| 378 | </function> |
| 379 | <function name="mxmlGetReal"> |
| 380 | <returnvalue> |
| 381 | <type>double</type> |
| 382 | <description>Real value or 0.0</description> |
| 383 | </returnvalue> |
| 384 | <description>Get the real value for a node or its first child. |
| 385 | |
| 386 | 0.0 is returned if the node (or its first child) is not a real value node. |
| 387 | |
| 388 | @since Mini-XML 2.7@</description> |
| 389 | <argument name="node" direction="I"> |
| 390 | <type>mxml_node_t *</type> |
| 391 | <description>Node to get</description> |
| 392 | </argument> |
| 393 | </function> |
| 394 | <function name="mxmlGetRefCount"> |
| 395 | <returnvalue> |
| 396 | <type>int</type> |
| 397 | <description>Reference count</description> |
| 398 | </returnvalue> |
| 399 | <description>Get the current reference (use) count for a node. |
| 400 | |
| 401 | The initial reference count of new nodes is 1. Use the @link mxmlRetain@ |
| 402 | and @link mxmlRelease@ functions to increment and decrement a node's |
| 403 | reference count. |
| 404 | |
| 405 | @since Mini-XML 2.7@.</description> |
| 406 | <argument name="node" direction="I"> |
| 407 | <type>mxml_node_t *</type> |
| 408 | <description>Node</description> |
| 409 | </argument> |
| 410 | </function> |
| 411 | <function name="mxmlGetText"> |
| 412 | <returnvalue> |
| 413 | <type>const char *</type> |
| 414 | <description>Text string or NULL</description> |
| 415 | </returnvalue> |
| 416 | <description>Get the text value for a node or its first child. |
| 417 | |
| 418 | @code NULL@ is returned if the node (or its first child) is not a text node. |
| 419 | The "whitespace" argument can be NULL. |
| 420 | |
| 421 | @since Mini-XML 2.7@</description> |
| 422 | <argument name="node" direction="I"> |
| 423 | <type>mxml_node_t *</type> |
| 424 | <description>Node to get</description> |
| 425 | </argument> |
| 426 | <argument name="whitespace" direction="O"> |
| 427 | <type>int *</type> |
| 428 | <description>1 if string is preceded by whitespace, 0 otherwise</description> |
| 429 | </argument> |
| 430 | </function> |
| 431 | <function name="mxmlGetType"> |
| 432 | <returnvalue> |
| 433 | <type>mxml_type_t</type> |
| 434 | <description>Type of node</description> |
| 435 | </returnvalue> |
| 436 | <description>Get the node type. |
| 437 | |
| 438 | @code MXML_IGNORE@ is returned if "node" is @code NULL@. |
| 439 | |
| 440 | @since Mini-XML 2.7@</description> |
| 441 | <argument name="node" direction="I"> |
| 442 | <type>mxml_node_t *</type> |
| 443 | <description>Node to get</description> |
| 444 | </argument> |
| 445 | </function> |
| 446 | <function name="mxmlGetUserData"> |
| 447 | <returnvalue> |
| 448 | <type>void *</type> |
| 449 | <description>User data pointer</description> |
| 450 | </returnvalue> |
| 451 | <description>Get the user data pointer for a node. |
| 452 | |
| 453 | @since Mini-XML 2.7@</description> |
| 454 | <argument name="node" direction="I"> |
| 455 | <type>mxml_node_t *</type> |
| 456 | <description>Node to get</description> |
| 457 | </argument> |
| 458 | </function> |
| 459 | <function name="mxmlIndexDelete"> |
| 460 | <description>Delete an index.</description> |
| 461 | <argument name="ind" direction="I"> |
| 462 | <type>mxml_index_t *</type> |
| 463 | <description>Index to delete</description> |
| 464 | </argument> |
| 465 | </function> |
| 466 | <function name="mxmlIndexEnum"> |
| 467 | <returnvalue> |
| 468 | <type>mxml_node_t *</type> |
| 469 | <description>Next node or NULL if there is none</description> |
| 470 | </returnvalue> |
| 471 | <description>Return the next node in the index. |
| 472 | |
| 473 | Nodes are returned in the sorted order of the index.</description> |
| 474 | <argument name="ind" direction="I"> |
| 475 | <type>mxml_index_t *</type> |
| 476 | <description>Index to enumerate</description> |
| 477 | </argument> |
| 478 | </function> |
| 479 | <function name="mxmlIndexFind"> |
| 480 | <returnvalue> |
| 481 | <type>mxml_node_t *</type> |
| 482 | <description>Node or NULL if none found</description> |
| 483 | </returnvalue> |
| 484 | <description>Find the next matching node. |
| 485 | |
| 486 | You should call mxmlIndexReset() prior to using this function for |
| 487 | the first time with a particular set of "element" and "value" |
| 488 | strings. Passing NULL for both "element" and "value" is equivalent |
| 489 | to calling mxmlIndexEnum().</description> |
| 490 | <argument name="ind" direction="I"> |
| 491 | <type>mxml_index_t *</type> |
| 492 | <description>Index to search</description> |
| 493 | </argument> |
| 494 | <argument name="element" direction="I"> |
| 495 | <type>const char *</type> |
| 496 | <description>Element name to find, if any</description> |
| 497 | </argument> |
| 498 | <argument name="value" direction="I"> |
| 499 | <type>const char *</type> |
| 500 | <description>Attribute value, if any</description> |
| 501 | </argument> |
| 502 | </function> |
| 503 | <function name="mxmlIndexGetCount"> |
| 504 | <returnvalue> |
| 505 | <type>int</type> |
| 506 | <description>Number of nodes in index</description> |
| 507 | </returnvalue> |
| 508 | <description>Get the number of nodes in an index. |
| 509 | |
| 510 | @since Mini-XML 2.7@</description> |
| 511 | <argument name="ind" direction="I"> |
| 512 | <type>mxml_index_t *</type> |
| 513 | <description>Index of nodes</description> |
| 514 | </argument> |
| 515 | </function> |
| 516 | <function name="mxmlIndexNew"> |
| 517 | <returnvalue> |
| 518 | <type>mxml_index_t *</type> |
| 519 | <description>New index</description> |
| 520 | </returnvalue> |
| 521 | <description>Create a new index. |
| 522 | |
| 523 | The index will contain all nodes that contain the named element and/or |
| 524 | attribute. If both "element" and "attr" are NULL, then the index will |
| 525 | contain a sorted list of the elements in the node tree. Nodes are |
| 526 | sorted by element name and optionally by attribute value if the "attr" |
| 527 | argument is not NULL.</description> |
| 528 | <argument name="node" direction="I"> |
| 529 | <type>mxml_node_t *</type> |
| 530 | <description>XML node tree</description> |
| 531 | </argument> |
| 532 | <argument name="element" direction="I"> |
| 533 | <type>const char *</type> |
| 534 | <description>Element to index or NULL for all</description> |
| 535 | </argument> |
| 536 | <argument name="attr" direction="I"> |
| 537 | <type>const char *</type> |
| 538 | <description>Attribute to index or NULL for none</description> |
| 539 | </argument> |
| 540 | </function> |
| 541 | <function name="mxmlIndexReset"> |
| 542 | <returnvalue> |
| 543 | <type>mxml_node_t *</type> |
| 544 | <description>First node or NULL if there is none</description> |
| 545 | </returnvalue> |
| 546 | <description>Reset the enumeration/find pointer in the index and |
| 547 | return the first node in the index. |
| 548 | |
| 549 | This function should be called prior to using mxmlIndexEnum() or |
| 550 | mxmlIndexFind() for the first time.</description> |
| 551 | <argument name="ind" direction="I"> |
| 552 | <type>mxml_index_t *</type> |
| 553 | <description>Index to reset</description> |
| 554 | </argument> |
| 555 | </function> |
| 556 | <function name="mxmlLoadFd"> |
| 557 | <returnvalue> |
| 558 | <type>mxml_node_t *</type> |
| 559 | <description>First node or NULL if the file could not be read.</description> |
| 560 | </returnvalue> |
| 561 | <description>Load a file descriptor into an XML node tree. |
| 562 | |
| 563 | The nodes in the specified file are added to the specified top node. |
| 564 | If no top node is provided, the XML file MUST be well-formed with a |
| 565 | single parent node like <?xml> for the entire file. The callback |
| 566 | function returns the value type that should be used for child nodes. |
| 567 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 568 | MXML_ELEMENT or MXML_TEXT nodes. |
| 569 | |
| 570 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 571 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 572 | child nodes of the specified type.</description> |
| 573 | <argument name="top" direction="I"> |
| 574 | <type>mxml_node_t *</type> |
| 575 | <description>Top node</description> |
| 576 | </argument> |
| 577 | <argument name="fd" direction="I"> |
| 578 | <type>int</type> |
| 579 | <description>File descriptor to read from</description> |
| 580 | </argument> |
| 581 | <argument name="cb" direction="I"> |
| 582 | <type>mxml_load_cb_t</type> |
| 583 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 584 | </argument> |
| 585 | </function> |
| 586 | <function name="mxmlLoadFile"> |
| 587 | <returnvalue> |
| 588 | <type>mxml_node_t *</type> |
| 589 | <description>First node or NULL if the file could not be read.</description> |
| 590 | </returnvalue> |
| 591 | <description>Load a file into an XML node tree. |
| 592 | |
| 593 | The nodes in the specified file are added to the specified top node. |
| 594 | If no top node is provided, the XML file MUST be well-formed with a |
| 595 | single parent node like <?xml> for the entire file. The callback |
| 596 | function returns the value type that should be used for child nodes. |
| 597 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 598 | MXML_ELEMENT or MXML_TEXT nodes. |
| 599 | |
| 600 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 601 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 602 | child nodes of the specified type.</description> |
| 603 | <argument name="top" direction="I"> |
| 604 | <type>mxml_node_t *</type> |
| 605 | <description>Top node</description> |
| 606 | </argument> |
| 607 | <argument name="fp" direction="I"> |
| 608 | <type>FILE *</type> |
| 609 | <description>File to read from</description> |
| 610 | </argument> |
| 611 | <argument name="cb" direction="I"> |
| 612 | <type>mxml_load_cb_t</type> |
| 613 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 614 | </argument> |
| 615 | </function> |
| 616 | <function name="mxmlLoadString"> |
| 617 | <returnvalue> |
| 618 | <type>mxml_node_t *</type> |
| 619 | <description>First node or NULL if the string has errors.</description> |
| 620 | </returnvalue> |
| 621 | <description>Load a string into an XML node tree. |
| 622 | |
| 623 | The nodes in the specified string are added to the specified top node. |
| 624 | If no top node is provided, the XML string MUST be well-formed with a |
| 625 | single parent node like <?xml> for the entire string. The callback |
| 626 | function returns the value type that should be used for child nodes. |
| 627 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 628 | MXML_ELEMENT or MXML_TEXT nodes. |
| 629 | |
| 630 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 631 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 632 | child nodes of the specified type.</description> |
| 633 | <argument name="top" direction="I"> |
| 634 | <type>mxml_node_t *</type> |
| 635 | <description>Top node</description> |
| 636 | </argument> |
| 637 | <argument name="s" direction="I"> |
| 638 | <type>const char *</type> |
| 639 | <description>String to load</description> |
| 640 | </argument> |
| 641 | <argument name="cb" direction="I"> |
| 642 | <type>mxml_load_cb_t</type> |
| 643 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 644 | </argument> |
| 645 | </function> |
| 646 | <function name="mxmlNewCDATA"> |
| 647 | <returnvalue> |
| 648 | <type>mxml_node_t *</type> |
| 649 | <description>New node</description> |
| 650 | </returnvalue> |
| 651 | <description>Create a new CDATA node. |
| 652 | |
| 653 | The new CDATA node is added to the end of the specified parent's child |
| 654 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 655 | CDATA node has no parent. The data string must be nul-terminated and |
| 656 | is copied into the new node. CDATA nodes use the MXML_ELEMENT type. |
| 657 | |
| 658 | @since Mini-XML 2.3@</description> |
| 659 | <argument name="parent" direction="I"> |
| 660 | <type>mxml_node_t *</type> |
| 661 | <description>Parent node or MXML_NO_PARENT</description> |
| 662 | </argument> |
| 663 | <argument name="data" direction="I"> |
| 664 | <type>const char *</type> |
| 665 | <description>Data string</description> |
| 666 | </argument> |
| 667 | </function> |
| 668 | <function name="mxmlNewCustom"> |
| 669 | <returnvalue> |
| 670 | <type>mxml_node_t *</type> |
| 671 | <description>New node</description> |
| 672 | </returnvalue> |
| 673 | <description>Create a new custom data node. |
| 674 | |
| 675 | The new custom node is added to the end of the specified parent's child |
| 676 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 677 | element node has no parent. NULL can be passed when the data in the |
| 678 | node is not dynamically allocated or is separately managed. |
| 679 | |
| 680 | @since Mini-XML 2.1@</description> |
| 681 | <argument name="parent" direction="I"> |
| 682 | <type>mxml_node_t *</type> |
| 683 | <description>Parent node or MXML_NO_PARENT</description> |
| 684 | </argument> |
| 685 | <argument name="data" direction="I"> |
| 686 | <type>void *</type> |
| 687 | <description>Pointer to data</description> |
| 688 | </argument> |
| 689 | <argument name="destroy" direction="I"> |
| 690 | <type>mxml_custom_destroy_cb_t</type> |
| 691 | <description>Function to destroy data</description> |
| 692 | </argument> |
| 693 | </function> |
| 694 | <function name="mxmlNewElement"> |
| 695 | <returnvalue> |
| 696 | <type>mxml_node_t *</type> |
| 697 | <description>New node</description> |
| 698 | </returnvalue> |
| 699 | <description>Create a new element node. |
| 700 | |
| 701 | The new element node is added to the end of the specified parent's child |
| 702 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 703 | element node has no parent.</description> |
| 704 | <argument name="parent" direction="I"> |
| 705 | <type>mxml_node_t *</type> |
| 706 | <description>Parent node or MXML_NO_PARENT</description> |
| 707 | </argument> |
| 708 | <argument name="name" direction="I"> |
| 709 | <type>const char *</type> |
| 710 | <description>Name of element</description> |
| 711 | </argument> |
| 712 | </function> |
| 713 | <function name="mxmlNewInteger"> |
| 714 | <returnvalue> |
| 715 | <type>mxml_node_t *</type> |
| 716 | <description>New node</description> |
| 717 | </returnvalue> |
| 718 | <description>Create a new integer node. |
| 719 | |
| 720 | The new integer node is added to the end of the specified parent's child |
| 721 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 722 | integer node has no parent.</description> |
| 723 | <argument name="parent" direction="I"> |
| 724 | <type>mxml_node_t *</type> |
| 725 | <description>Parent node or MXML_NO_PARENT</description> |
| 726 | </argument> |
| 727 | <argument name="integer" direction="I"> |
| 728 | <type>int</type> |
| 729 | <description>Integer value</description> |
| 730 | </argument> |
| 731 | </function> |
| 732 | <function name="mxmlNewOpaque"> |
| 733 | <returnvalue> |
| 734 | <type>mxml_node_t *</type> |
| 735 | <description>New node</description> |
| 736 | </returnvalue> |
| 737 | <description>Create a new opaque string. |
| 738 | |
| 739 | The new opaque node is added to the end of the specified parent's child |
| 740 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 741 | opaque node has no parent. The opaque string must be nul-terminated and |
| 742 | is copied into the new node.</description> |
| 743 | <argument name="parent" direction="I"> |
| 744 | <type>mxml_node_t *</type> |
| 745 | <description>Parent node or MXML_NO_PARENT</description> |
| 746 | </argument> |
| 747 | <argument name="opaque" direction="I"> |
| 748 | <type>const char *</type> |
| 749 | <description>Opaque string</description> |
| 750 | </argument> |
| 751 | </function> |
| 752 | <function name="mxmlNewReal"> |
| 753 | <returnvalue> |
| 754 | <type>mxml_node_t *</type> |
| 755 | <description>New node</description> |
| 756 | </returnvalue> |
| 757 | <description>Create a new real number node. |
| 758 | |
| 759 | The new real number node is added to the end of the specified parent's |
| 760 | child list. The constant MXML_NO_PARENT can be used to specify that |
| 761 | the new real number node has no parent.</description> |
| 762 | <argument name="parent" direction="I"> |
| 763 | <type>mxml_node_t *</type> |
| 764 | <description>Parent node or MXML_NO_PARENT</description> |
| 765 | </argument> |
| 766 | <argument name="real" direction="I"> |
| 767 | <type>double</type> |
| 768 | <description>Real number value</description> |
| 769 | </argument> |
| 770 | </function> |
| 771 | <function name="mxmlNewText"> |
| 772 | <returnvalue> |
| 773 | <type>mxml_node_t *</type> |
| 774 | <description>New node</description> |
| 775 | </returnvalue> |
| 776 | <description>Create a new text fragment node. |
| 777 | |
| 778 | The new text node is added to the end of the specified parent's child |
| 779 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 780 | text node has no parent. The whitespace parameter is used to specify |
| 781 | whether leading whitespace is present before the node. The text |
| 782 | string must be nul-terminated and is copied into the new node.</description> |
| 783 | <argument name="parent" direction="I"> |
| 784 | <type>mxml_node_t *</type> |
| 785 | <description>Parent node or MXML_NO_PARENT</description> |
| 786 | </argument> |
| 787 | <argument name="whitespace" direction="I"> |
| 788 | <type>int</type> |
| 789 | <description>1 = leading whitespace, 0 = no whitespace</description> |
| 790 | </argument> |
| 791 | <argument name="string" direction="I"> |
| 792 | <type>const char *</type> |
| 793 | <description>String</description> |
| 794 | </argument> |
| 795 | </function> |
| 796 | <function name="mxmlNewTextf"> |
| 797 | <returnvalue> |
| 798 | <type>mxml_node_t *</type> |
| 799 | <description>New node</description> |
| 800 | </returnvalue> |
| 801 | <description>Create a new formatted text fragment node. |
| 802 | |
| 803 | The new text node is added to the end of the specified parent's child |
| 804 | list. The constant MXML_NO_PARENT can be used to specify that the new |
| 805 | text node has no parent. The whitespace parameter is used to specify |
| 806 | whether leading whitespace is present before the node. The format |
| 807 | string must be nul-terminated and is formatted into the new node.</description> |
| 808 | <argument name="parent" direction="I"> |
| 809 | <type>mxml_node_t *</type> |
| 810 | <description>Parent node or MXML_NO_PARENT</description> |
| 811 | </argument> |
| 812 | <argument name="whitespace" direction="I"> |
| 813 | <type>int</type> |
| 814 | <description>1 = leading whitespace, 0 = no whitespace</description> |
| 815 | </argument> |
| 816 | <argument name="format" direction="I"> |
| 817 | <type>const char *</type> |
| 818 | <description>Printf-style frmat string</description> |
| 819 | </argument> |
| 820 | <argument name="..." direction="I"> |
| 821 | <type /> <description>Additional args as needed</description> |
| 822 | </argument> |
| 823 | </function> |
| 824 | <function name="mxmlNewXML"> |
| 825 | <returnvalue> |
| 826 | <type>mxml_node_t *</type> |
| 827 | <description>New ?xml node</description> |
| 828 | </returnvalue> |
| 829 | <description>Create a new XML document tree. |
| 830 | |
| 831 | The "version" argument specifies the version number to put in the |
| 832 | ?xml element node. If NULL, version 1.0 is assumed. |
| 833 | |
| 834 | @since Mini-XML 2.3@</description> |
| 835 | <argument name="version" direction="I"> |
| 836 | <type>const char *</type> |
| 837 | <description>Version number to use</description> |
| 838 | </argument> |
| 839 | </function> |
| 840 | <function name="mxmlRelease"> |
| 841 | <returnvalue> |
| 842 | <type>int</type> |
| 843 | <description>New reference count</description> |
| 844 | </returnvalue> |
| 845 | <description>Release a node. |
| 846 | |
| 847 | When the reference count reaches zero, the node (and any children) |
| 848 | is deleted via mxmlDelete(). |
| 849 | |
| 850 | @since Mini-XML 2.3@</description> |
| 851 | <argument name="node" direction="I"> |
| 852 | <type>mxml_node_t *</type> |
| 853 | <description>Node</description> |
| 854 | </argument> |
| 855 | </function> |
| 856 | <function name="mxmlRemove"> |
| 857 | <description>Remove a node from its parent. |
| 858 | |
| 859 | Does not free memory used by the node - use mxmlDelete() for that. |
| 860 | This function does nothing if the node has no parent.</description> |
| 861 | <argument name="node" direction="I"> |
| 862 | <type>mxml_node_t *</type> |
| 863 | <description>Node to remove</description> |
| 864 | </argument> |
| 865 | </function> |
| 866 | <function name="mxmlRetain"> |
| 867 | <returnvalue> |
| 868 | <type>int</type> |
| 869 | <description>New reference count</description> |
| 870 | </returnvalue> |
| 871 | <description>Retain a node. |
| 872 | |
| 873 | @since Mini-XML 2.3@</description> |
| 874 | <argument name="node" direction="I"> |
| 875 | <type>mxml_node_t *</type> |
| 876 | <description>Node</description> |
| 877 | </argument> |
| 878 | </function> |
| 879 | <function name="mxmlSAXLoadFd"> |
| 880 | <returnvalue> |
| 881 | <type>mxml_node_t *</type> |
| 882 | <description>First node or NULL if the file could not be read.</description> |
| 883 | </returnvalue> |
| 884 | <description>Load a file descriptor into an XML node tree |
| 885 | using a SAX callback. |
| 886 | |
| 887 | The nodes in the specified file are added to the specified top node. |
| 888 | If no top node is provided, the XML file MUST be well-formed with a |
| 889 | single parent node like <?xml> for the entire file. The callback |
| 890 | function returns the value type that should be used for child nodes. |
| 891 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 892 | MXML_ELEMENT or MXML_TEXT nodes. |
| 893 | |
| 894 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 895 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 896 | child nodes of the specified type. |
| 897 | |
| 898 | The SAX callback must call mxmlRetain() for any nodes that need to |
| 899 | be kept for later use. Otherwise, nodes are deleted when the parent |
| 900 | node is closed or after each data, comment, CDATA, or directive node. |
| 901 | |
| 902 | @since Mini-XML 2.3@</description> |
| 903 | <argument name="top" direction="I"> |
| 904 | <type>mxml_node_t *</type> |
| 905 | <description>Top node</description> |
| 906 | </argument> |
| 907 | <argument name="fd" direction="I"> |
| 908 | <type>int</type> |
| 909 | <description>File descriptor to read from</description> |
| 910 | </argument> |
| 911 | <argument name="cb" direction="I"> |
| 912 | <type>mxml_load_cb_t</type> |
| 913 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 914 | </argument> |
| 915 | <argument name="sax_cb" direction="I"> |
| 916 | <type>mxml_sax_cb_t</type> |
| 917 | <description>SAX callback or MXML_NO_CALLBACK</description> |
| 918 | </argument> |
| 919 | <argument name="sax_data" direction="I"> |
| 920 | <type>void *</type> |
| 921 | <description>SAX user data</description> |
| 922 | </argument> |
| 923 | </function> |
| 924 | <function name="mxmlSAXLoadFile"> |
| 925 | <returnvalue> |
| 926 | <type>mxml_node_t *</type> |
| 927 | <description>First node or NULL if the file could not be read.</description> |
| 928 | </returnvalue> |
| 929 | <description>Load a file into an XML node tree |
| 930 | using a SAX callback. |
| 931 | |
| 932 | The nodes in the specified file are added to the specified top node. |
| 933 | If no top node is provided, the XML file MUST be well-formed with a |
| 934 | single parent node like <?xml> for the entire file. The callback |
| 935 | function returns the value type that should be used for child nodes. |
| 936 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 937 | MXML_ELEMENT or MXML_TEXT nodes. |
| 938 | |
| 939 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 940 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 941 | child nodes of the specified type. |
| 942 | |
| 943 | The SAX callback must call mxmlRetain() for any nodes that need to |
| 944 | be kept for later use. Otherwise, nodes are deleted when the parent |
| 945 | node is closed or after each data, comment, CDATA, or directive node. |
| 946 | |
| 947 | @since Mini-XML 2.3@</description> |
| 948 | <argument name="top" direction="I"> |
| 949 | <type>mxml_node_t *</type> |
| 950 | <description>Top node</description> |
| 951 | </argument> |
| 952 | <argument name="fp" direction="I"> |
| 953 | <type>FILE *</type> |
| 954 | <description>File to read from</description> |
| 955 | </argument> |
| 956 | <argument name="cb" direction="I"> |
| 957 | <type>mxml_load_cb_t</type> |
| 958 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 959 | </argument> |
| 960 | <argument name="sax_cb" direction="I"> |
| 961 | <type>mxml_sax_cb_t</type> |
| 962 | <description>SAX callback or MXML_NO_CALLBACK</description> |
| 963 | </argument> |
| 964 | <argument name="sax_data" direction="I"> |
| 965 | <type>void *</type> |
| 966 | <description>SAX user data</description> |
| 967 | </argument> |
| 968 | </function> |
| 969 | <function name="mxmlSAXLoadString"> |
| 970 | <returnvalue> |
| 971 | <type>mxml_node_t *</type> |
| 972 | <description>First node or NULL if the string has errors.</description> |
| 973 | </returnvalue> |
| 974 | <description>Load a string into an XML node tree |
| 975 | using a SAX callback. |
| 976 | |
| 977 | The nodes in the specified string are added to the specified top node. |
| 978 | If no top node is provided, the XML string MUST be well-formed with a |
| 979 | single parent node like <?xml> for the entire string. The callback |
| 980 | function returns the value type that should be used for child nodes. |
| 981 | If MXML_NO_CALLBACK is specified then all child nodes will be either |
| 982 | MXML_ELEMENT or MXML_TEXT nodes. |
| 983 | |
| 984 | The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK, |
| 985 | MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading |
| 986 | child nodes of the specified type. |
| 987 | |
| 988 | The SAX callback must call mxmlRetain() for any nodes that need to |
| 989 | be kept for later use. Otherwise, nodes are deleted when the parent |
| 990 | node is closed or after each data, comment, CDATA, or directive node. |
| 991 | |
| 992 | @since Mini-XML 2.3@</description> |
| 993 | <argument name="top" direction="I"> |
| 994 | <type>mxml_node_t *</type> |
| 995 | <description>Top node</description> |
| 996 | </argument> |
| 997 | <argument name="s" direction="I"> |
| 998 | <type>const char *</type> |
| 999 | <description>String to load</description> |
| 1000 | </argument> |
| 1001 | <argument name="cb" direction="I"> |
| 1002 | <type>mxml_load_cb_t</type> |
| 1003 | <description>Callback function or MXML_NO_CALLBACK</description> |
| 1004 | </argument> |
| 1005 | <argument name="sax_cb" direction="I"> |
| 1006 | <type>mxml_sax_cb_t</type> |
| 1007 | <description>SAX callback or MXML_NO_CALLBACK</description> |
| 1008 | </argument> |
| 1009 | <argument name="sax_data" direction="I"> |
| 1010 | <type>void *</type> |
| 1011 | <description>SAX user data</description> |
| 1012 | </argument> |
| 1013 | </function> |
| 1014 | <function name="mxmlSaveAllocString"> |
| 1015 | <returnvalue> |
| 1016 | <type>char *</type> |
| 1017 | <description>Allocated string or NULL</description> |
| 1018 | </returnvalue> |
| 1019 | <description>Save an XML tree to an allocated string. |
| 1020 | |
| 1021 | This function returns a pointer to a string containing the textual |
| 1022 | representation of the XML node tree. The string should be freed |
| 1023 | using the free() function when you are done with it. NULL is returned |
| 1024 | if the node would produce an empty string or if the string cannot be |
| 1025 | allocated. |
| 1026 | |
| 1027 | The callback argument specifies a function that returns a whitespace |
| 1028 | string or NULL before and after each element. If MXML_NO_CALLBACK |
| 1029 | is specified, whitespace will only be added before MXML_TEXT nodes |
| 1030 | with leading whitespace and before attribute names inside opening |
| 1031 | element tags.</description> |
| 1032 | <argument name="node" direction="I"> |
| 1033 | <type>mxml_node_t *</type> |
| 1034 | <description>Node to write</description> |
| 1035 | </argument> |
| 1036 | <argument name="cb" direction="I"> |
| 1037 | <type>mxml_save_cb_t</type> |
| 1038 | <description>Whitespace callback or MXML_NO_CALLBACK</description> |
| 1039 | </argument> |
| 1040 | </function> |
| 1041 | <function name="mxmlSaveFd"> |
| 1042 | <returnvalue> |
| 1043 | <type>int</type> |
| 1044 | <description>0 on success, -1 on error.</description> |
| 1045 | </returnvalue> |
| 1046 | <description>Save an XML tree to a file descriptor. |
| 1047 | |
| 1048 | The callback argument specifies a function that returns a whitespace |
| 1049 | string or NULL before and after each element. If MXML_NO_CALLBACK |
| 1050 | is specified, whitespace will only be added before MXML_TEXT nodes |
| 1051 | with leading whitespace and before attribute names inside opening |
| 1052 | element tags.</description> |
| 1053 | <argument name="node" direction="I"> |
| 1054 | <type>mxml_node_t *</type> |
| 1055 | <description>Node to write</description> |
| 1056 | </argument> |
| 1057 | <argument name="fd" direction="I"> |
| 1058 | <type>int</type> |
| 1059 | <description>File descriptor to write to</description> |
| 1060 | </argument> |
| 1061 | <argument name="cb" direction="I"> |
| 1062 | <type>mxml_save_cb_t</type> |
| 1063 | <description>Whitespace callback or MXML_NO_CALLBACK</description> |
| 1064 | </argument> |
| 1065 | </function> |
| 1066 | <function name="mxmlSaveFile"> |
| 1067 | <returnvalue> |
| 1068 | <type>int</type> |
| 1069 | <description>0 on success, -1 on error.</description> |
| 1070 | </returnvalue> |
| 1071 | <description>Save an XML tree to a file. |
| 1072 | |
| 1073 | The callback argument specifies a function that returns a whitespace |
| 1074 | string or NULL before and after each element. If MXML_NO_CALLBACK |
| 1075 | is specified, whitespace will only be added before MXML_TEXT nodes |
| 1076 | with leading whitespace and before attribute names inside opening |
| 1077 | element tags.</description> |
| 1078 | <argument name="node" direction="I"> |
| 1079 | <type>mxml_node_t *</type> |
| 1080 | <description>Node to write</description> |
| 1081 | </argument> |
| 1082 | <argument name="fp" direction="I"> |
| 1083 | <type>FILE *</type> |
| 1084 | <description>File to write to</description> |
| 1085 | </argument> |
| 1086 | <argument name="cb" direction="I"> |
| 1087 | <type>mxml_save_cb_t</type> |
| 1088 | <description>Whitespace callback or MXML_NO_CALLBACK</description> |
| 1089 | </argument> |
| 1090 | </function> |
| 1091 | <function name="mxmlSaveString"> |
| 1092 | <returnvalue> |
| 1093 | <type>int</type> |
| 1094 | <description>Size of string</description> |
| 1095 | </returnvalue> |
| 1096 | <description>Save an XML node tree to a string. |
| 1097 | |
| 1098 | This function returns the total number of bytes that would be |
| 1099 | required for the string but only copies (bufsize - 1) characters |
| 1100 | into the specified buffer. |
| 1101 | |
| 1102 | The callback argument specifies a function that returns a whitespace |
| 1103 | string or NULL before and after each element. If MXML_NO_CALLBACK |
| 1104 | is specified, whitespace will only be added before MXML_TEXT nodes |
| 1105 | with leading whitespace and before attribute names inside opening |
| 1106 | element tags.</description> |
| 1107 | <argument name="node" direction="I"> |
| 1108 | <type>mxml_node_t *</type> |
| 1109 | <description>Node to write</description> |
| 1110 | </argument> |
| 1111 | <argument name="buffer" direction="I"> |
| 1112 | <type>char *</type> |
| 1113 | <description>String buffer</description> |
| 1114 | </argument> |
| 1115 | <argument name="bufsize" direction="I"> |
| 1116 | <type>int</type> |
| 1117 | <description>Size of string buffer</description> |
| 1118 | </argument> |
| 1119 | <argument name="cb" direction="I"> |
| 1120 | <type>mxml_save_cb_t</type> |
| 1121 | <description>Whitespace callback or MXML_NO_CALLBACK</description> |
| 1122 | </argument> |
| 1123 | </function> |
| 1124 | <function name="mxmlSetCDATA"> |
| 1125 | <returnvalue> |
| 1126 | <type>int</type> |
| 1127 | <description>0 on success, -1 on failure</description> |
| 1128 | </returnvalue> |
| 1129 | <description>Set the element name of a CDATA node. |
| 1130 | |
| 1131 | The node is not changed if it (or its first child) is not a CDATA element node. |
| 1132 | |
| 1133 | @since Mini-XML 2.3@</description> |
| 1134 | <argument name="node" direction="I"> |
| 1135 | <type>mxml_node_t *</type> |
| 1136 | <description>Node to set</description> |
| 1137 | </argument> |
| 1138 | <argument name="data" direction="I"> |
| 1139 | <type>const char *</type> |
| 1140 | <description>New data string</description> |
| 1141 | </argument> |
| 1142 | </function> |
| 1143 | <function name="mxmlSetCustom"> |
| 1144 | <returnvalue> |
| 1145 | <type>int</type> |
| 1146 | <description>0 on success, -1 on failure</description> |
| 1147 | </returnvalue> |
| 1148 | <description>Set the data and destructor of a custom data node. |
| 1149 | |
| 1150 | The node is not changed if it (or its first child) is not a custom node. |
| 1151 | |
| 1152 | @since Mini-XML 2.1@</description> |
| 1153 | <argument name="node" direction="I"> |
| 1154 | <type>mxml_node_t *</type> |
| 1155 | <description>Node to set</description> |
| 1156 | </argument> |
| 1157 | <argument name="data" direction="I"> |
| 1158 | <type>void *</type> |
| 1159 | <description>New data pointer</description> |
| 1160 | </argument> |
| 1161 | <argument name="destroy" direction="I"> |
| 1162 | <type>mxml_custom_destroy_cb_t</type> |
| 1163 | <description>New destructor function</description> |
| 1164 | </argument> |
| 1165 | </function> |
| 1166 | <function name="mxmlSetCustomHandlers"> |
| 1167 | <description>Set the handling functions for custom data. |
| 1168 | |
| 1169 | The load function accepts a node pointer and a data string and must |
| 1170 | return 0 on success and non-zero on error. |
| 1171 | |
| 1172 | The save function accepts a node pointer and must return a malloc'd |
| 1173 | string on success and NULL on error.</description> |
| 1174 | <argument name="load" direction="I"> |
| 1175 | <type>mxml_custom_load_cb_t</type> |
| 1176 | <description>Load function</description> |
| 1177 | </argument> |
| 1178 | <argument name="save" direction="I"> |
| 1179 | <type>mxml_custom_save_cb_t</type> |
| 1180 | <description>Save function</description> |
| 1181 | </argument> |
| 1182 | </function> |
| 1183 | <function name="mxmlSetElement"> |
| 1184 | <returnvalue> |
| 1185 | <type>int</type> |
| 1186 | <description>0 on success, -1 on failure</description> |
| 1187 | </returnvalue> |
| 1188 | <description>Set the name of an element node. |
| 1189 | |
| 1190 | The node is not changed if it is not an element node.</description> |
| 1191 | <argument name="node" direction="I"> |
| 1192 | <type>mxml_node_t *</type> |
| 1193 | <description>Node to set</description> |
| 1194 | </argument> |
| 1195 | <argument name="name" direction="I"> |
| 1196 | <type>const char *</type> |
| 1197 | <description>New name string</description> |
| 1198 | </argument> |
| 1199 | </function> |
| 1200 | <function name="mxmlSetErrorCallback"> |
| 1201 | <description>Set the error message callback.</description> |
| 1202 | <argument name="cb" direction="I"> |
| 1203 | <type>mxml_error_cb_t</type> |
| 1204 | <description>Error callback function</description> |
| 1205 | </argument> |
| 1206 | </function> |
| 1207 | <function name="mxmlSetInteger"> |
| 1208 | <returnvalue> |
| 1209 | <type>int</type> |
| 1210 | <description>0 on success, -1 on failure</description> |
| 1211 | </returnvalue> |
| 1212 | <description>Set the value of an integer node. |
| 1213 | |
| 1214 | The node is not changed if it (or its first child) is not an integer node.</description> |
| 1215 | <argument name="node" direction="I"> |
| 1216 | <type>mxml_node_t *</type> |
| 1217 | <description>Node to set</description> |
| 1218 | </argument> |
| 1219 | <argument name="integer" direction="I"> |
| 1220 | <type>int</type> |
| 1221 | <description>Integer value</description> |
| 1222 | </argument> |
| 1223 | </function> |
| 1224 | <function name="mxmlSetOpaque"> |
| 1225 | <returnvalue> |
| 1226 | <type>int</type> |
| 1227 | <description>0 on success, -1 on failure</description> |
| 1228 | </returnvalue> |
| 1229 | <description>Set the value of an opaque node. |
| 1230 | |
| 1231 | The node is not changed if it (or its first child) is not an opaque node.</description> |
| 1232 | <argument name="node" direction="I"> |
| 1233 | <type>mxml_node_t *</type> |
| 1234 | <description>Node to set</description> |
| 1235 | </argument> |
| 1236 | <argument name="opaque" direction="I"> |
| 1237 | <type>const char *</type> |
| 1238 | <description>Opaque string</description> |
| 1239 | </argument> |
| 1240 | </function> |
| 1241 | <function name="mxmlSetReal"> |
| 1242 | <returnvalue> |
| 1243 | <type>int</type> |
| 1244 | <description>0 on success, -1 on failure</description> |
| 1245 | </returnvalue> |
| 1246 | <description>Set the value of a real number node. |
| 1247 | |
| 1248 | The node is not changed if it (or its first child) is not a real number node.</description> |
| 1249 | <argument name="node" direction="I"> |
| 1250 | <type>mxml_node_t *</type> |
| 1251 | <description>Node to set</description> |
| 1252 | </argument> |
| 1253 | <argument name="real" direction="I"> |
| 1254 | <type>double</type> |
| 1255 | <description>Real number value</description> |
| 1256 | </argument> |
| 1257 | </function> |
| 1258 | <function name="mxmlSetText"> |
| 1259 | <returnvalue> |
| 1260 | <type>int</type> |
| 1261 | <description>0 on success, -1 on failure</description> |
| 1262 | </returnvalue> |
| 1263 | <description>Set the value of a text node. |
| 1264 | |
| 1265 | The node is not changed if it (or its first child) is not a text node.</description> |
| 1266 | <argument name="node" direction="I"> |
| 1267 | <type>mxml_node_t *</type> |
| 1268 | <description>Node to set</description> |
| 1269 | </argument> |
| 1270 | <argument name="whitespace" direction="I"> |
| 1271 | <type>int</type> |
| 1272 | <description>1 = leading whitespace, 0 = no whitespace</description> |
| 1273 | </argument> |
| 1274 | <argument name="string" direction="I"> |
| 1275 | <type>const char *</type> |
| 1276 | <description>String</description> |
| 1277 | </argument> |
| 1278 | </function> |
| 1279 | <function name="mxmlSetTextf"> |
| 1280 | <returnvalue> |
| 1281 | <type>int</type> |
| 1282 | <description>0 on success, -1 on failure</description> |
| 1283 | </returnvalue> |
| 1284 | <description>Set the value of a text node to a formatted string. |
| 1285 | |
| 1286 | The node is not changed if it (or its first child) is not a text node.</description> |
| 1287 | <argument name="node" direction="I"> |
| 1288 | <type>mxml_node_t *</type> |
| 1289 | <description>Node to set</description> |
| 1290 | </argument> |
| 1291 | <argument name="whitespace" direction="I"> |
| 1292 | <type>int</type> |
| 1293 | <description>1 = leading whitespace, 0 = no whitespace</description> |
| 1294 | </argument> |
| 1295 | <argument name="format" direction="I"> |
| 1296 | <type>const char *</type> |
| 1297 | <description>Printf-style format string</description> |
| 1298 | </argument> |
| 1299 | <argument name="..." direction="I"> |
| 1300 | <type /> <description>Additional arguments as needed</description> |
| 1301 | </argument> |
| 1302 | </function> |
| 1303 | <function name="mxmlSetUserData"> |
| 1304 | <returnvalue> |
| 1305 | <type>int</type> |
| 1306 | <description>0 on success, -1 on failure</description> |
| 1307 | </returnvalue> |
| 1308 | <description>Set the user data pointer for a node. |
| 1309 | |
| 1310 | @since Mini-XML 2.7@</description> |
| 1311 | <argument name="node" direction="I"> |
| 1312 | <type>mxml_node_t *</type> |
| 1313 | <description>Node to set</description> |
| 1314 | </argument> |
| 1315 | <argument name="data" direction="I"> |
| 1316 | <type>void *</type> |
| 1317 | <description>User data pointer</description> |
| 1318 | </argument> |
| 1319 | </function> |
| 1320 | <function name="mxmlSetWrapMargin"> |
| 1321 | <description>Set the wrap margin when saving XML data. |
| 1322 | |
| 1323 | Wrapping is disabled when "column" is 0. |
| 1324 | |
| 1325 | @since Mini-XML 2.3@</description> |
| 1326 | <argument name="column" direction="I"> |
| 1327 | <type>int</type> |
| 1328 | <description>Column for wrapping, 0 to disable wrapping</description> |
| 1329 | </argument> |
| 1330 | </function> |
| 1331 | <function name="mxmlWalkNext"> |
| 1332 | <returnvalue> |
| 1333 | <type>mxml_node_t *</type> |
| 1334 | <description>Next node or NULL</description> |
| 1335 | </returnvalue> |
| 1336 | <description>Walk to the next logical node in the tree. |
| 1337 | |
| 1338 | The descend argument controls whether the first child is considered |
| 1339 | to be the next node. The top node argument constrains the walk to |
| 1340 | the node's children.</description> |
| 1341 | <argument name="node" direction="I"> |
| 1342 | <type>mxml_node_t *</type> |
| 1343 | <description>Current node</description> |
| 1344 | </argument> |
| 1345 | <argument name="top" direction="I"> |
| 1346 | <type>mxml_node_t *</type> |
| 1347 | <description>Top node</description> |
| 1348 | </argument> |
| 1349 | <argument name="descend" direction="I"> |
| 1350 | <type>int</type> |
| 1351 | <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description> |
| 1352 | </argument> |
| 1353 | </function> |
| 1354 | <function name="mxmlWalkPrev"> |
| 1355 | <returnvalue> |
| 1356 | <type>mxml_node_t *</type> |
| 1357 | <description>Previous node or NULL</description> |
| 1358 | </returnvalue> |
| 1359 | <description>Walk to the previous logical node in the tree. |
| 1360 | |
| 1361 | The descend argument controls whether the previous node's last child |
| 1362 | is considered to be the previous node. The top node argument constrains |
| 1363 | the walk to the node's children.</description> |
| 1364 | <argument name="node" direction="I"> |
| 1365 | <type>mxml_node_t *</type> |
| 1366 | <description>Current node</description> |
| 1367 | </argument> |
| 1368 | <argument name="top" direction="I"> |
| 1369 | <type>mxml_node_t *</type> |
| 1370 | <description>Top node</description> |
| 1371 | </argument> |
| 1372 | <argument name="descend" direction="I"> |
| 1373 | <type>int</type> |
| 1374 | <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description> |
| 1375 | </argument> |
| 1376 | </function> |
| 1377 | <struct name="mxml_attr_s"> |
| 1378 | <description>An XML element attribute value. @private@</description> |
| 1379 | <variable name="name"> |
| 1380 | <type>char *</type> |
| 1381 | <description>Attribute name</description> |
| 1382 | </variable> |
| 1383 | <variable name="value"> |
| 1384 | <type>char *</type> |
| 1385 | <description>Attribute value</description> |
| 1386 | </variable> |
| 1387 | </struct> |
| 1388 | <typedef name="mxml_attr_t"> |
| 1389 | <type>struct mxml_attr_s</type> |
| 1390 | <description>An XML element attribute value. @private@</description> |
| 1391 | </typedef> |
| 1392 | <typedef name="mxml_custom_destroy_cb_t"> |
| 1393 | <type>void(*)(void *)</type> |
| 1394 | <description>Custom data destructor</description> |
| 1395 | </typedef> |
| 1396 | <typedef name="mxml_custom_load_cb_t"> |
| 1397 | <type>int(*)(mxml_node_t *, const char *)</type> |
| 1398 | <description>Custom data load callback function</description> |
| 1399 | </typedef> |
| 1400 | <struct name="mxml_custom_s"> |
| 1401 | <description>An XML custom value. @private@</description> |
| 1402 | <variable name="data"> |
| 1403 | <type>void *</type> |
| 1404 | <description>Pointer to (allocated) custom data</description> |
| 1405 | </variable> |
| 1406 | <variable name="destroy"> |
| 1407 | <type>mxml_custom_destroy_cb_t</type> |
| 1408 | <description>Pointer to destructor function</description> |
| 1409 | </variable> |
| 1410 | </struct> |
| 1411 | <typedef name="mxml_custom_save_cb_t"> |
| 1412 | <type>char *(*)(mxml_node_t *)</type> |
| 1413 | <description>Custom data save callback function</description> |
| 1414 | </typedef> |
| 1415 | <typedef name="mxml_custom_t"> |
| 1416 | <type>struct mxml_custom_s</type> |
| 1417 | <description>An XML custom value. @private@</description> |
| 1418 | </typedef> |
| 1419 | <struct name="mxml_element_s"> |
| 1420 | <description>An XML element value. @private@</description> |
| 1421 | <variable name="attrs"> |
| 1422 | <type>mxml_attr_t *</type> |
| 1423 | <description>Attributes</description> |
| 1424 | </variable> |
| 1425 | <variable name="name"> |
| 1426 | <type>char *</type> |
| 1427 | <description>Name of element</description> |
| 1428 | </variable> |
| 1429 | <variable name="num_attrs"> |
| 1430 | <type>int</type> |
| 1431 | <description>Number of attributes</description> |
| 1432 | </variable> |
| 1433 | </struct> |
| 1434 | <typedef name="mxml_element_t"> |
| 1435 | <type>struct mxml_element_s</type> |
| 1436 | <description>An XML element value. @private@</description> |
| 1437 | </typedef> |
| 1438 | <typedef name="mxml_entity_cb_t"> |
| 1439 | <type>int(*)(const char *)</type> |
| 1440 | <description>Entity callback function</description> |
| 1441 | </typedef> |
| 1442 | <typedef name="mxml_error_cb_t"> |
| 1443 | <type>void(*)(const char *)</type> |
| 1444 | <description>Error callback function</description> |
| 1445 | </typedef> |
| 1446 | <struct name="mxml_index_s"> |
| 1447 | <description>An XML node index. @private@</description> |
| 1448 | <variable name="alloc_nodes"> |
| 1449 | <type>int</type> |
| 1450 | <description>Allocated nodes in index</description> |
| 1451 | </variable> |
| 1452 | <variable name="attr"> |
| 1453 | <type>char *</type> |
| 1454 | <description>Attribute used for indexing or NULL</description> |
| 1455 | </variable> |
| 1456 | <variable name="cur_node"> |
| 1457 | <type>int</type> |
| 1458 | <description>Current node</description> |
| 1459 | </variable> |
| 1460 | <variable name="nodes"> |
| 1461 | <type>mxml_node_t **</type> |
| 1462 | <description>Node array</description> |
| 1463 | </variable> |
| 1464 | <variable name="num_nodes"> |
| 1465 | <type>int</type> |
| 1466 | <description>Number of nodes in index</description> |
| 1467 | </variable> |
| 1468 | </struct> |
| 1469 | <typedef name="mxml_index_t"> |
| 1470 | <type>struct mxml_index_s</type> |
| 1471 | <description>An XML node index.</description> |
| 1472 | </typedef> |
| 1473 | <typedef name="mxml_load_cb_t"> |
| 1474 | <type>mxml_type_t(*)(mxml_node_t *)</type> |
| 1475 | <description>Load callback function</description> |
| 1476 | </typedef> |
| 1477 | <struct name="mxml_node_s"> |
| 1478 | <description>An XML node. @private@</description> |
| 1479 | <variable name="child"> |
| 1480 | <type>struct mxml_node_s *</type> |
| 1481 | <description>First child node</description> |
| 1482 | </variable> |
| 1483 | <variable name="last_child"> |
| 1484 | <type>struct mxml_node_s *</type> |
| 1485 | <description>Last child node</description> |
| 1486 | </variable> |
| 1487 | <variable name="next"> |
| 1488 | <type>struct mxml_node_s *</type> |
| 1489 | <description>Next node under same parent</description> |
| 1490 | </variable> |
| 1491 | <variable name="parent"> |
| 1492 | <type>struct mxml_node_s *</type> |
| 1493 | <description>Parent node</description> |
| 1494 | </variable> |
| 1495 | <variable name="prev"> |
| 1496 | <type>struct mxml_node_s *</type> |
| 1497 | <description>Previous node under same parent</description> |
| 1498 | </variable> |
| 1499 | <variable name="ref_count"> |
| 1500 | <type>int</type> |
| 1501 | <description>Use count</description> |
| 1502 | </variable> |
| 1503 | <variable name="type"> |
| 1504 | <type>mxml_type_t</type> |
| 1505 | <description>Node type</description> |
| 1506 | </variable> |
| 1507 | <variable name="user_data"> |
| 1508 | <type>void *</type> |
| 1509 | <description>User data</description> |
| 1510 | </variable> |
| 1511 | <variable name="value"> |
| 1512 | <type>mxml_value_t</type> |
| 1513 | <description>Node value</description> |
| 1514 | </variable> |
| 1515 | </struct> |
| 1516 | <typedef name="mxml_node_t"> |
| 1517 | <type>struct mxml_node_s</type> |
| 1518 | <description>An XML node.</description> |
| 1519 | </typedef> |
| 1520 | <typedef name="mxml_save_cb_t"> |
| 1521 | <type>const char *(*)(mxml_node_t *, int)</type> |
| 1522 | <description>Save callback function</description> |
| 1523 | </typedef> |
| 1524 | <typedef name="mxml_sax_cb_t"> |
| 1525 | <type>void(*)(mxml_node_t *, mxml_sax_event_t, void *)</type> |
| 1526 | <description>SAX callback function</description> |
| 1527 | </typedef> |
| 1528 | <enumeration name="mxml_sax_event_e"> |
| 1529 | <description>SAX event type.</description> |
| 1530 | <constant name="MXML_SAX_CDATA"> |
| 1531 | <description>CDATA node</description> |
| 1532 | </constant> |
| 1533 | <constant name="MXML_SAX_COMMENT"> |
| 1534 | <description>Comment node</description> |
| 1535 | </constant> |
| 1536 | <constant name="MXML_SAX_DATA"> |
| 1537 | <description>Data node</description> |
| 1538 | </constant> |
| 1539 | <constant name="MXML_SAX_DIRECTIVE"> |
| 1540 | <description>Processing directive node</description> |
| 1541 | </constant> |
| 1542 | <constant name="MXML_SAX_ELEMENT_CLOSE"> |
| 1543 | <description>Element closed</description> |
| 1544 | </constant> |
| 1545 | <constant name="MXML_SAX_ELEMENT_OPEN"> |
| 1546 | <description>Element opened</description> |
| 1547 | </constant> |
| 1548 | </enumeration> |
| 1549 | <typedef name="mxml_sax_event_t"> |
| 1550 | <type>enum mxml_sax_event_e</type> |
| 1551 | <description>SAX event type.</description> |
| 1552 | </typedef> |
| 1553 | <struct name="mxml_text_s"> |
| 1554 | <description>An XML text value. @private@</description> |
| 1555 | <variable name="string"> |
| 1556 | <type>char *</type> |
| 1557 | <description>Fragment string</description> |
| 1558 | </variable> |
| 1559 | <variable name="whitespace"> |
| 1560 | <type>int</type> |
| 1561 | <description>Leading whitespace?</description> |
| 1562 | </variable> |
| 1563 | </struct> |
| 1564 | <typedef name="mxml_text_t"> |
| 1565 | <type>struct mxml_text_s</type> |
| 1566 | <description>An XML text value. @private@</description> |
| 1567 | </typedef> |
| 1568 | <enumeration name="mxml_type_e"> |
| 1569 | <description>The XML node type.</description> |
| 1570 | <constant name="MXML_CUSTOM"> |
| 1571 | <description>Custom data @since Mini-XML 2.1@</description> |
| 1572 | </constant> |
| 1573 | <constant name="MXML_ELEMENT"> |
| 1574 | <description>XML element with attributes</description> |
| 1575 | </constant> |
| 1576 | <constant name="MXML_IGNORE"> |
| 1577 | <description>Ignore/throw away node @since Mini-XML 2.3@</description> |
| 1578 | </constant> |
| 1579 | <constant name="MXML_INTEGER"> |
| 1580 | <description>Integer value</description> |
| 1581 | </constant> |
| 1582 | <constant name="MXML_OPAQUE"> |
| 1583 | <description>Opaque string</description> |
| 1584 | </constant> |
| 1585 | <constant name="MXML_REAL"> |
| 1586 | <description>Real value</description> |
| 1587 | </constant> |
| 1588 | <constant name="MXML_TEXT"> |
| 1589 | <description>Text fragment</description> |
| 1590 | </constant> |
| 1591 | </enumeration> |
| 1592 | <typedef name="mxml_type_t"> |
| 1593 | <description>The XML node type.</description> |
| 1594 | <type>enum mxml_type_e</type> |
| 1595 | </typedef> |
| 1596 | <typedef name="mxml_value_t"> |
| 1597 | <type>union mxml_value_u</type> |
| 1598 | <description>An XML node value. @private@</description> |
| 1599 | </typedef> |
| 1600 | <union name="mxml_value_u"> |
| 1601 | <description>An XML node value. @private@</description> |
| 1602 | <variable name="custom"> |
| 1603 | <type>mxml_custom_t</type> |
| 1604 | <description>Custom data @since Mini-XML 2.1@</description> |
| 1605 | </variable> |
| 1606 | <variable name="element"> |
| 1607 | <type>mxml_element_t</type> |
| 1608 | <description>Element</description> |
| 1609 | </variable> |
| 1610 | <variable name="integer"> |
| 1611 | <type>int</type> |
| 1612 | <description>Integer number</description> |
| 1613 | </variable> |
| 1614 | <variable name="opaque"> |
| 1615 | <type>char *</type> |
| 1616 | <description>Opaque string</description> |
| 1617 | </variable> |
| 1618 | <variable name="real"> |
| 1619 | <type>double</type> |
| 1620 | <description>Real number</description> |
| 1621 | </variable> |
| 1622 | <variable name="text"> |
| 1623 | <type>mxml_text_t</type> |
| 1624 | <description>Text fragment</description> |
| 1625 | </variable> |
| 1626 | </union> |
| 1627 | </mxmldoc> |