Added function xmlAttrToLong().