XML Export &

Maik_Swiss
Member Posts: 17
Hi everybody.
I have a small problem. When exporting a xml file & is shown as &
I know this is XML-format but for the import to the other solution i need the & only.
Any help out there?
thx in advanced
Maik
I have a small problem. When exporting a xml file & is shown as &
I know this is XML-format but for the import to the other solution i need the & only.
Any help out there?
thx in advanced
Maik
0
Comments
-
The ampersand is an illegal character in an XML file and should always be converted to &
So the program you are importing in is the problem here.0 -
Yeah, I think it's a bug in your import solution, because it doesn't deal right with XML format."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
the problem is, i have no chance to alter the import solution.
So i need a way to export without amp; from Navision.
Current solution is to rename the & to & with a text editor, but thats not a good solution.
Any other idea`s?0 -
Hello
Imo it is correct to export as & because & is a special character for xml. The importing solution should be able to deal with it because it is xml standard.
Regards
Thomas0 -
I try to explain some more.
NAV exports a & with amp; thats ok when you need it as text.
I have the problem that we need the & as Line break.
Example what i need:
<ORDER_SUPPLEMENT ORDER_ID="12-345678" ID="AA1" VALUE="1, Test Fahrzeug Test Lastwagen 4 x 4 3261 - Text Text Text Text Text Text Text Text!" CLIENT_MUST_FILL="0"/>
the red part is the line break code.
and this is what NAV exports:
<ORDER_SUPPLEMENT ORDER_ID="12-345678" ID="AA1" VALUE="1, Test Fahrzeug Test Lastwagen 4 x 4
3261 - Text Text Text Text 
Text Text Text Text!" CLIENT_MUST_FILL="0"/>
Regards
Maik0 -
Hm, can you use another character for the line break? Or do you have the possibility to change the xml structure to have all lines in their own element?
Thomas0 -
i cant alter the import code - so no chance to take another character for the line break
all lines in an own element didnt work, because i need to fill one field (ID-AA1)0 -
As far as I can see this part
VALUE="1, Test Fahrzeug Test Lastwagen 4 x 4
3261 - Text Text Text Text 
Text Text Text Text!"
is a normal XML attribute. I don't understand why an ampersand should be the character for a line break. It is XML standard that ampersand is substituted by &. So, I would contact the provider of your import solution and tell him that there's a bug. Otherwise he shouldn't use "pseudo" XML format for his interface."Money is likewise the greatest chance and the greatest scourge of mankind."0
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