![]() |
#28 |
Участник
|
Прочитав MSDN я понял, что вам и валидацию вызывать не надо:
http://msdn.microsoft.com/en-us/libr...t.loadxml.aspx http://msdn.microsoft.com/en-us/library/875kz807.aspx Цитата:
XmlException. There is a load or parse error in the XML. In this case, the document remains empty.
Приведу общий код обработки исключений для .NET в AX: X++: try { lclsInteropPerm = new InteropPermission(InteropKind::ClrInterop); lclsInteropPerm.assert(); .... CodeAccessPermission::revertAssert(); } catch (Exception::CLRError) { this.processCLRException(); CodeAccessPermission::revertAssert(); } X++: protected void processCLRException() { System.Exception lclsNetException; str lstrExceptionMessage, lstrErrorMessage; InteropPermission lclsInteropPerm = new InteropPermission(InteropKind::ClrInterop); lclsInteropPerm.assert(); lclsNetException = CLRInterop::getLastException(); while (! CLRInterop::isNull(lclsNetException)) { lstrExceptionMessage = lclsNetException.get_Message(); lstrErrorMessage += lstrErrorMessage ? "\n" + lstrExceptionMessage : lstrExceptionMessage; lclsNetException = lclsNetException.get_InnerException(); } CodeAccessPermission::revertAssert(); }
__________________
http://www.axdevposts.blogspot.com Пришел, уведел.... отойди, дай другому увидеть! |
|
Теги |
ax2009, ax3.0, ax4.0, xml, полезное |
|
![]() |
||||
Тема | Ответов | |||
Axapta & XML | 4 | |||
Проблема с выгрузкой/загрузкой файлов в базу из Axapta в др базу | 1 | |||
Axapta 3, отправка файлов по eMail (КАК ИСПРАВИТЬ) | 1 | |||
XML в Axapta | 4 | |||
Введение в Аксапту | 0 |
|