20.11.2012, 18:11 | #1 |
Участник
|
ax-erp: XML parser namespace error
Источник: http://microsoft-dynamics-ax-erp.blo...ace-error.html
============== Today I tried to create the following XML-structure in Ax: 1 2 </span span style="color: #000066; margin: 0px; padding: 0px;"version/span=span style="color: red; margin: 0px; padding: 0px;""1.0"/span span style="color: #000066; margin: 0px; padding: 0px;"encoding/span=span style="color: red; margin: 0px; padding: 0px;""UTF-8"/spanspan style="color: black; font-weight: bold; margin: 0px; padding: 0px;"?> I wrote the following to do so: 1 2 3 4 xmlDoc = WGKFunctions::createXMLDocumentWithDeclaration(#version, #encoding, #standalone); root = xmlDoc.createElement(this.rootNode()); ... root.setAttribute("xsi:noNamespaceSchemaLocation", "Personeel.xsd"); But I got the following result: 1 2 </span span style="color: #000066; margin: 0px; padding: 0px;"version/span=span style="color: red; margin: 0px; padding: 0px;""1.0"/span span style="color: #000066; margin: 0px; padding: 0px;"encoding/span=span style="color: red; margin: 0px; padding: 0px;""UTF-8"/spanspan style="color: black; font-weight: bold; margin: 0px; padding: 0px;"?> As you see the ‘xsi:noNamespaceSchemaLocation‘ is replaced by ‘noNamespaceSchemaLocation‘. After some research, I found the following link:http://blogs.msdn.com/emeadaxsupport...ace-error.aspx You are using Microsoft Dynamics AX to create an XML Document. The code you are using to create the XML file was created for the previous version of the product and is now upgraded to Microsoft Dynamics AX 4.0 SP1.So I modified my code to: 1 root.setAttribute2("noNamespaceSchemaLocation", "http://www.w3.org/2001/XMLSchema-instance", "Personeel.xsd"); and the correct XML was generated. Источник: http://microsoft-dynamics-ax-erp.blo...ace-error.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|