Generate XML File

Wided
Member Posts: 4
I want to export xml file from Navision 2009.
I want to have this structure,
If I have table A with field X (data x1,x2,x3) and field Y (data y1,y2,y3).
xml file will be:
<x1> y1 < /x1>
<x2> y2 < /x2>
<x3> y3 < /x3>
is it possible with xml ports?
or I must use another solution?
thank you
I want to have this structure,
If I have table A with field X (data x1,x2,x3) and field Y (data y1,y2,y3).
xml file will be:
<x1> y1 < /x1>
<x2> y2 < /x2>
<x3> y3 < /x3>
is it possible with xml ports?
or I must use another solution?
thank you
0
Answers
-
So XML root tag will be added at the start, so you need to do the customizationBest Regards:
Zaid Tariq
Dynamics NAV/365 BC Developer at Dynamics 360
please like / agree / verify my answer, if was helpful.1 -
Thank you for your quick reply, but I'm new with Nav, Can you explain more please?
how can I do the customization?0 -
Firsts, any wellformed XML document needs exactly one root element!
Then, what do you want to do? Do you want to number the elements in its name?
Can you come up with a DTD or schema for this?
If this is, what you want to do, then no: XMLPorts (used with property Format=XML) are meant for generating proper XML files, which stand a chance of being valid.
You my be able to do it using an XMLPort with Format=Variable Text.
1 -
Yes, I have xsd files that control the structure of the xml files.
I want this form:
<root>
<x1> y1 < /x1>
<x2> y2 < /x2>
<x3> y3 < /x3>
</root>
I will change the Format to Variable Text and retry, Thank You0 -
@Wided let me know if you still face issue.Best Regards:
Zaid Tariq
Dynamics NAV/365 BC Developer at Dynamics 360
please like / agree / verify my answer, if was helpful.1 -
@zaidtariq thank you , I will inform you in case of problems.1
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