Need sample code to traverse records using XML DOM

ajaybabuCh
Member Posts: 208
Hi
Can anybody give me the code to traversse through records in an xml format using XML DOM
Can anybody give me the code to traversse through records in an xml format using XML DOM
Ajay
0
Comments
-
Take a look into the Cu that has XML in his name (line XML DOM Management) ;-)Do you make it right, it works too!0
-
hi garak
can you give me some link for this.
I couldn't find proper example for my scenario.
If I have number of records in my XML , how to read those records one by one using XML DOMAjay0 -
Did you take a look into the CU and how this is called from oter CU?Do you make it right, it works too!0
-
Yes, But I am not really clear how to use that
Assume that I have the following format of xml , which contains all the sales header records
<HeaderLines>
<SalesOrder>
<No.>SO100</No.>
<SelltoCustomerNo>10000</SelltoCustomerNo>
<CustomerName>Selangorian Ltd.</CustomerName>
</SalesOrder>
<SalesOrder>
<No.>SO101</No.>
<SelltoCustomerNo>10000</SelltoCustomerNo>
<CustomerName>Selangorian Ltd.</CustomerName>
</SalesOrder>
<SalesOrder>
<No.>SO102</No.>
<SelltoCustomerNo>10000</SelltoCustomerNo>
<CustomerName>Selangorian Ltd.</CustomerName>
</SalesOrder>
<SalesOrder>
<No.>SO103</No.>
<SelltoCustomerNo>10000</SelltoCustomerNo>
<CustomerName>Selangorian Ltd.</CustomerName>
</SalesOrder>
</HeaderLines>
I would like to load this through XMLDOM and want to traverse each order.
can I have some sample code for thisAjay0 -
Take a look at the Biztalk codeunits in a standard 3.7 database. XML is now imported using XMLPorts, so XMLDOM is not used very much anymore. The old versions have excellent examples of how to use XMLDOM.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