Help needed in designing xml port
zohaibu95@hotmail.com
Member Posts: 223
How to design the xml port for this xml file
I have tired but failed.
Please help.
<response>
<id>2</id>
<parent_id>1</parent_id>
<name>Default Category</name>
<is_active>true</is_active>
<position>1</position>
<level>1</level>
<product_count>0</product_count>
<children_data>
<item>
<id>4</id>
<parent_id>2</parent_id>
<name>Electronics</name>
<is_active>true</is_active>
<position>2</position>
<level>2</level>
<product_count>0</product_count>
<children_data>
<item>
<id>5</id>
<parent_id>4</parent_id>
<name>Phones &amp; Tablets</name>
<is_active>true</is_active>
<position>1</position>
<level>3</level>
<product_count>0</product_count>
<children_data>
<item>
<id>6</id>
<parent_id>5</parent_id>
<name>Smart Phones</name>
<is_active>true</is_active>
<position>1</position>
<level>4</level>
<product_count>3</product_count>
<children_data>
<item>
<id>7</id>
<parent_id>6</parent_id>
<name>Apple</name>
<is_active>true</is_active>
<position>1</position>
<level>5</level>
<product_count>0</product_count>
<children_data/>
</item>
<item>
<id>8</id>
<parent_id>6</parent_id>
<name>Huawei</name>
<is_active>true</is_active>
<position>2</position>
<level>5</level>
<product_count>0</product_count>
<children_data/>
</item>
<item>
<id>9</id>
<parent_id>6</parent_id>
<name> Microsoft</name>
<is_active>true</is_active>
<position>3</position>
<level>5</level>
<product_count>0</product_count>
<children_data/>
</item>
<item>
<id>10</id>
<parent_id>6</parent_id>
<name>Mi</name>
<is_active>true</is_active>
<position>4</position>
<level>5</level>
<product_count>0</product_count>
<children_data/>
</item>
</children_data>
</item>
</children_data>
</item>
</children_data>
</item>
</children_data>
</response>
I have tired but failed.
Please help.
Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
0
Answers
-
And whats new in this??
Design XML with same name, indentation and attributes as you have shown above
Are you facing any specific issue??Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
RockWithNAV wrote: »And whats new in this??
Design XML with same name, indentation and attributes as you have shown above
Are you facing any specific issue??
I am facing issue in designing like the herarchy is same to be different on every level? Can you show some basic by designing it? like upto 2 levels?
Looking forward.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.0 -
Hi Zohaib,
you can refer the existing xmlport 5050 "Export Contact". This can give you a very good knowledge on how to design xmlport in general.
If you need to import, then you just need to change the properties of xmlport "Direction" to import.
Hope this helps.Harikiran BM | ERP Specialist0 -
I know how to design xml port the issue is on every level child is indented to one more level so i am not able to understand how to design this?
Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
