invalid characters in xmlport

asics
Member Posts: 5
Hi,
I'm running nav5.0 and use xmlports to create xml files.
I've managed to create an invalid xml file as the data contains invalid characters.
Is there a way to prevent NAV from sending this strange characters?
Please find below an example of what is created....
<Number>B900Y</Number>
<Location_in_Inventory>DCR</Location_in_Inventory>
<Description>滫ÊË¿ó¡áÙ «íÌóÕ ñ½Ù ó«½Ñí«½á </Description>
<Additional_Description/>
I'm running nav5.0 and use xmlports to create xml files.
I've managed to create an invalid xml file as the data contains invalid characters.
Is there a way to prevent NAV from sending this strange characters?
Please find below an example of what is created....
<Number>B900Y</Number>
<Location_in_Inventory>DCR</Location_in_Inventory>
<Description>滫ÊË¿ó¡áÙ «íÌóÕ ñ½Ù ó«½Ñí«½á </Description>
<Additional_Description/>
0
Comments
-
Why are there invalid characters in your file? Isn't it possible to correct these corrupted characters? Otherwise, you can use built-in string functions to format your texts, automations or your own dll.
Using DELCHR you can exclude the chars out of your predefined set: (But this method can cause performance issues and it only allows usage of the chars that are defined in your set. )ValidChars := 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; "My Field" := DELCHR("My Field",'=',DELCHR("My Field",'=',ValidChars));
You can also write a dll (using regular expressions etc ) and call it via automation. (or you can directly call regular expression via automation and use its methods). These methods are more stable but can cause register issues.Ufuk Asci
Pargesoft0
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