Lines Matching refs:element
120 * Encapsulates the parsing of an XML element
123 /* The name of the element */
126 /* The type of element to set in the devconfig_t */
132 * the hierarchy when this XML element is encountered.
138 * devconfig_t structure of this type when this element is
143 /* The valid XML attributes for this element */
167 xmlNodePtr node, xmlChar *element, xmlChar *name);
760 * the expected root element name of the XML document
851 /* Search for this element definition */
853 element_t *element = &(elements[i]);
855 if (element->type == type) {
865 parent, NULL, (xmlChar *)element->name, NULL);
867 /* For each attribute defined for this element... */
868 for (j = 0; element->attributes[j].name != NULL; j++) {
869 attr_t *attribute = &(element->attributes[j]);
905 if (element->is_hierarchical == B_FALSE) {
938 /* For each element type... */
970 gettext("can't convert device of type \"%s\" to XML element"),
1009 /* Search for this element definition */
1011 element_t *element = &(elements[i]);
1013 if (xmlStrcmp(cur->name, (xmlChar *)element->name) == 0) {
1017 /* Flag that this element has been parsed */
1023 /* Should a new device be created for this element? */
1024 if (element->is_hierarchical == B_TRUE) {
1027 if (element->singleton) {
1029 device, element->type, &component, B_FALSE);
1038 &component, element->type)) != 0) {
1051 /* For each attribute defined for this element... */
1052 for (j = 0; element->attributes[j].name != NULL; j++) {
1053 attr_t *attribute = &(element->attributes[j]);
1111 * Recursively searches the given xmlNodePtr for an element of the
1117 * @param element
1118 * the name of the element type
1123 * @return a valid xmlNodePtr if an element of the specified
1129 xmlChar *element,
1134 /* Is the element the right type? */
1135 if (xmlStrcmp(element, node->name) == 0 &&
1137 /* Does this element's name attribute match? */
1146 xmlNodePtr found = xml_find_node(child, element, name);