I don’t know if it is a special situation in my implementation but when I use the setAttribute()-Methode of a XMLDOM4 Element to add an Attribute to the XML Root Element sometimes the method doesn’t exit clearly. The result is that the client crashs and the NAS hangs. So if you have such an effect, especially when creating a lot of single XML Documents in a batch, try to check if your code doesn’t exit the setAttribute Method. I replaced all setAttributes() with this alternative function: Var Name DataType Subtype Length Ja rau_DomDoc Automation 'Microsoft XML, v4.0'.DOMDocument Ja rau_Element Automation 'Microsoft XML, 4.0'.IXMLDOMElement Nein vtx_AttributeName Text 250 Nein vtx_AttributeValue Text 250
CreateAttributeForElement(VAR rau_DomDoc : Automation “‘Microsoft XML, v4.0’.DOMDocument”;VAR rau_Element : Automation "'Microsoft XML, lau_Attribute := rau_DomDoc.createAttribute(vtx_AttributeName); IF ISCLEAR(lau_Attribute) THEN EXIT(FALSE); lau_Attribute.value(vtx_AttributeValue); rau_Element.setAttributeNode(lau_Attribute); CLEAR(lau_Attribute); IF FORMAT(rau_Element.getAttribute(vtx_AttributeName)) = vtx_AttributeValue THEN EXIT(TRUE) ELSE EXIT(FALSE);