Question Status

Suggested Answer
Chris Ramer asked a question on 5 Jul 2013 12:08 AM

Hello

I want to write a class (batchable) which imports data from an xml into a table. The xml looks like the following:

JobListExport

JobList

Job

SequenceNum

DateTime

Type

Job

SequenceNum

...

...

Now I want to import the data under the Job-Node but only where SequenceNum has specific values (like 28, 29, 30) which I can pass by parameter to the class.

How can I do that

Reply
Martin Dráb responded on 5 Jul 2013 3:57 AM

You can read XML files in X++ by XML DOM classes, such as XMLDocument, XMLElement and so on. You can find many example on Internet.

Or do you have any more specific question?

Reply
Suggested Answer
Syed Zeeshan Haider Jafry responded on 7 Jul 2013 12:30 AM

Hi,

Please see the blow post as an example how to read XML in AX.

axzaptech.wordpress.com/.../read-xml-file-in-ax

Regards,

Reply
Suggested Answer
Syed Zeeshan Haider Jafry responded on 7 Jul 2013 12:30 AM

Hi,

Please see the blow post as an example how to read XML in AX.

axzaptech.wordpress.com/.../read-xml-file-in-ax

Regards,

Reply