VM_xml_tree_next, // #136
VM_xml_tree_type, // #137
VM_xml_tree_root, // #138
-NULL, // #139
+VM_xml_tree_attribute, // #139
NULL, // #140
NULL, // #141
NULL, // #142
if ( !xml )
return;
xml->node = xmlDocGetRootElement(xml->doc);
+}
+
+void VM_xml_tree_attribute(prvm_prog_t *prog)
+{
+ qxml_p xml;
+ VM_XML_CHECK_RETURN(VM_xml_tree_type, PRVM_G_FLOAT(OFS_RETURN) = 0);
+ if ( !xml->attribute && xml->node->properties )
+ {
+ PRVM_G_FLOAT(OFS_RETURN) = 1;
+ xml->attribute = xml->node->properties;
+ }
+ else
+ PRVM_G_FLOAT(OFS_RETURN) = 0;
}
\ No newline at end of file
void VM_xml_tree_next(prvm_prog_t *prog);
void VM_xml_tree_type(prvm_prog_t *prog);
void VM_xml_tree_root(prvm_prog_t *prog);
+void VM_xml_tree_attribute(prvm_prog_t *prog);
void XML_Close(prvm_prog_t *prog, int index);