newElement = ps->document->createElement((DOM_CHAR*) name);
String nodeName(name); newElement = ps->document->createElement(nodeName);
void startElement(void *userData, const XML_Char *name, const XML_Char **atts){  ParserState* ps = (ParserState*)userData;  Element* newElement;  Attr* newAttribute;  DOM_CHAR* attName;  DOM_CHAR* attValue;  XML_Char** theAtts = (XML_Char**)atts;  newElement = ps->document->createElement((DOM_CHAR*) name);  while (*theAtts)    {      attName = (DOM_CHAR*)*theAtts++;      attValue = (DOM_CHAR*)*theAtts++;      newElement->setAttribute(attName, attValue);    }    ps->currentNode->appendChild(newElement);    ps->currentNode = newElement;} //-- startElement