• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/mxml-2.7/

Lines Matching refs:node

18  *   mxmlGetCDATA()       - Get the value for a CDATA node.
19 * mxmlGetCustom() - Get the value for a custom node.
20 * mxmlGetElement() - Get the name for an element node.
21 * mxmlGetFirstChild() - Get the first child of an element node.
22 * mxmlGetInteger() - Get the integer value from the specified node or its
24 * mxmlGetLastChild() - Get the last child of an element node.
25 * mxmlGetNextSibling() - Get the next node for the current parent.
26 * mxmlGetOpaque() - Get an opaque string value for a node or its first
28 * mxmlGetParent() - Get the parent node.
29 * mxmlGetPrevSibling() - Get the previous node for the current parent.
30 * mxmlGetReal() - Get the real value for a node or its first child.
31 * mxmlGetText() - Get the text value for a node or its first child.
32 * mxmlGetType() - Get the node type.
33 * mxmlGetUserData() - Get the user data pointer for a node.
45 * 'mxmlGetCDATA()' - Get the value for a CDATA node.
47 * @code NULL@ is returned if the node is not a CDATA element.
53 mxmlGetCDATA(mxml_node_t *node) /* I - Node to get */
59 if (!node || node->type != MXML_ELEMENT ||
60 strncmp(node->value.element.name, "![CDATA[", 8))
67 return (node->value.element.name + 8);
72 * 'mxmlGetCustom()' - Get the value for a custom node.
74 * @code NULL@ is returned if the node (or its first child) is not a custom
75 * value node.
81 mxmlGetCustom(mxml_node_t *node) /* I - Node to get */
87 if (!node)
94 if (node->type == MXML_CUSTOM)
95 return (node->value.custom.data);
96 else if (node->type == MXML_ELEMENT &&
97 node->child &&
98 node->child->type == MXML_CUSTOM)
99 return (node->child->value.custom.data);
106 * 'mxmlGetElement()' - Get the name for an element node.
108 * @code NULL@ is returned if the node is not an element node.
114 mxmlGetElement(mxml_node_t *node) /* I - Node to get */
120 if (!node || node->type != MXML_ELEMENT)
127 return (node->value.element.name);
132 * 'mxmlGetFirstChild()' - Get the first child of an element node.
134 * @code NULL@ is returned if the node is not an element node or if the node
141 mxmlGetFirstChild(mxml_node_t *node) /* I - Node to get */
147 if (!node || node->type != MXML_ELEMENT)
151 * Return the first child node...
154 return (node->child);
159 * 'mxmlGetInteger()' - Get the integer value from the specified node or its
162 * 0 is returned if the node (or its first child) is not an integer value node.
168 mxmlGetInteger(mxml_node_t *node) /* I - Node to get */
174 if (!node)
181 if (node->type == MXML_INTEGER)
182 return (node->value.integer);
183 else if (node->type == MXML_ELEMENT &&
184 node->child &&
185 node->child->type == MXML_INTEGER)
186 return (node->child->value.integer);
193 * 'mxmlGetLastChild()' - Get the last child of an element node.
195 * @code NULL@ is returned if the node is not an element node or if the node
202 mxmlGetLastChild(mxml_node_t *node) /* I - Node to get */
208 if (!node || node->type != MXML_ELEMENT)
212 * Return the node type...
215 return (node->last_child);
220 * 'mxmlGetNextSibling()' - Get the next node for the current parent.
228 mxmlGetNextSibling(mxml_node_t *node) /* I - Node to get */
234 if (!node)
238 * Return the node type...
241 return (node->next);
246 * 'mxmlGetOpaque()' - Get an opaque string value for a node or its first child.
248 * @code NULL@ is returned if the node (or its first child) is not an opaque
249 * value node.
255 mxmlGetOpaque(mxml_node_t *node) /* I - Node to get */
261 if (!node)
268 if (node->type == MXML_OPAQUE)
269 return (node->value.opaque);
270 else if (node->type == MXML_ELEMENT &&
271 node->child &&
272 node->child->type == MXML_OPAQUE)
273 return (node->child->value.opaque);
280 * 'mxmlGetParent()' - Get the parent node.
282 * @code NULL@ is returned for a root node.
287 mxml_node_t * /* O - Parent node or NULL */
288 mxmlGetParent(mxml_node_t *node) /* I - Node to get */
294 if (!node)
298 * Return the node type...
301 return (node->parent);
306 * 'mxmlGetPrevSibling()' - Get the previous node for the current parent.
313 mxml_node_t * /* O - Previous node or NULL */
314 mxmlGetPrevSibling(mxml_node_t *node) /* I - Node to get */
320 if (!node)
324 * Return the node type...
327 return (node->prev);
332 * 'mxmlGetReal()' - Get the real value for a node or its first child.
334 * 0.0 is returned if the node (or its first child) is not a real value node.
340 mxmlGetReal(mxml_node_t *node) /* I - Node to get */
346 if (!node)
353 if (node->type == MXML_REAL)
354 return (node->value.real);
355 else if (node->type == MXML_ELEMENT &&
356 node->child &&
357 node->child->type == MXML_REAL)
358 return (node->child->value.real);
365 * 'mxmlGetText()' - Get the text value for a node or its first child.
367 * @code NULL@ is returned if the node (or its first child) is not a text node.
374 mxmlGetText(mxml_node_t *node, /* I - Node to get */
381 if (!node)
393 if (node->type == MXML_TEXT)
396 *whitespace = node->value.text.whitespace;
398 return (node->value.text.string);
400 else if (node->type == MXML_ELEMENT &&
401 node->child &&
402 node->child->type == MXML_TEXT)
405 *whitespace = node->child->value.text.whitespace;
407 return (node->child->value.text.string);
420 * 'mxmlGetType()' - Get the node type.
422 * @code MXML_IGNORE@ is returned if "node" is @code NULL@.
427 mxml_type_t /* O - Type of node */
428 mxmlGetType(mxml_node_t *node) /* I - Node to get */
434 if (!node)
438 * Return the node type...
441 return (node->type);
446 * 'mxmlGetUserData()' - Get the user data pointer for a node.
452 mxmlGetUserData(mxml_node_t *node) /* I - Node to get */
458 if (!node)
465 return (node->user_data);