Problem with Escape-Characters in XML-File

Jut
Member Posts: 72
Good morning!
I fight strongly with one problem concerning XML-files used in Navision.
We receive a xml-File that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<export xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Maintag>blabla<Maintag>
</export>
Now, I need to use this Input in Navision (<Maintag>blabla</Maintag>) to create e.g. some orders. We transform these escape-Characters at the moment manually, but unfortunately specials signs like the german Umlaute are also escaped and it would be a hard work to do it all manually.
Does anyone know a solution? Unfortunately we can't influence the XML-File we receive. We already tried the XMLDoc.loadXML Method und the load-Method but this all did not work or did not help.
Thanks a lot in advance
Jut
I fight strongly with one problem concerning XML-files used in Navision.
We receive a xml-File that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<export xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Maintag>blabla<Maintag>
</export>
Now, I need to use this Input in Navision (<Maintag>blabla</Maintag>) to create e.g. some orders. We transform these escape-Characters at the moment manually, but unfortunately specials signs like the german Umlaute are also escaped and it would be a hard work to do it all manually.
Does anyone know a solution? Unfortunately we can't influence the XML-File we receive. We already tried the XMLDoc.loadXML Method und the load-Method but this all did not work or did not help.
Thanks a lot in advance

Jut
0
Comments
-
How are you importing the file?
Is it through an XML Port, XMLDOM, or some other method.
I haven't checked XML Ports but the XMLDOM automatically decodes the file for you.This isn't a signature, I type this at the bottom of every message0 -
Normally, I am using the 'Microsoft XML, v6.0'.XMLHTTP60-Automation-Var but this time for testing I only create an XMLDoc and try to load the XML from a file.0
-
Try this file:
<?xml version="1.0" encoding="utf-8"?> <Main><ÖÄÜß></Main>
With this code:XMLDOM Automation 'Microsoft XML, v6.0'.DOMDocument60 XMLElement Automation 'Microsoft XML, v6.0'.IXMLDOMElement CREATE(XMLDOM); XMLDOM.load(whateveryousavethefileas); XMLElement := XMLDOM.selectSingleNode('Main'); MESSAGE(XMLElement.text);
The message for me correctly shows the decoded < and > and the other characters remain as is.This isn't a signature, I type this at the bottom of every message0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions