xmlSetAttr FunctionSets the value of an XML element's attribute. SyntaxxmlSetAttr(el, attr, val); Parameters
ReturnsThere is no return value. RemarksUse this function to manipulate your custom data, for instance to keep track of the status of questions as you present them. Example<CUSTOM_FOO> <FOOQUESTION> ... </FOOQUESTION> <FOOQUESTION> ... </FOOQUESTION> ... </CUSTOM_FOO> xmlSetAttr(xmlChildOf(xmlLocData, "FOOQUESTION", 0), "STATUS", "CORRECT"); |