How to declare schemas and encoding on XMLport?

derek
Member Posts: 22
Hi,
Hopefully someone who have experience with XML could instructs to me in the right direction.
I'm struggling with NAV2016, XMLports and XML syntax.
My goal is to create XMLport for e-invoicing.
Whole XMLport structure is possible to create with existing tools, but troubles come with schemas and encoding.
At the beginning of file should start with exact syntax:
<?xml version="1.0" encoding="ISO-8859-15"?>
<Finvoice Version="2.01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Finvoice2.01.xsd">
First miss: Nearest NAV encoding is ISO-8859-2, so how to change this to ISO-8859-15?
Second miss: How declare Schema instance and Schema Location with shown syntax?
So far my best shot is <Finvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.01" noNamespaceSchemaLocation="Finvoice2.01.xsd">
But this is not enough.
BR,
Derek
Hopefully someone who have experience with XML could instructs to me in the right direction.
I'm struggling with NAV2016, XMLports and XML syntax.
My goal is to create XMLport for e-invoicing.
Whole XMLport structure is possible to create with existing tools, but troubles come with schemas and encoding.
At the beginning of file should start with exact syntax:
<?xml version="1.0" encoding="ISO-8859-15"?>
<Finvoice Version="2.01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Finvoice2.01.xsd">
First miss: Nearest NAV encoding is ISO-8859-2, so how to change this to ISO-8859-15?
Second miss: How declare Schema instance and Schema Location with shown syntax?
So far my best shot is <Finvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.01" noNamespaceSchemaLocation="Finvoice2.01.xsd">
But this is not enough.
BR,
Derek
0
Best Answer
-
I couldn't find any other solutions than this: first I ran the XMLport for creating a text file. Then I put content to BigText for making find & replace to these desired tags. Then I save content to other BigText and at the finally to XML file. This is very dirty solution but it works enough.5
Answers
-
I couldn't find any other solutions than this: first I ran the XMLport for creating a text file. Then I put content to BigText for making find & replace to these desired tags. Then I save content to other BigText and at the finally to XML file. This is very dirty solution but it works enough.5
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