XMLDOM automation,root element

navinbnavinb Member Posts: 51
edited 2011-03-21 in NAV Three Tier
Hi ,

I have created a batch that sends a master and its related records like invoices,cr. memos in xml format to an external app.My problem is that for sending these records i have to again create XML DOM object ,as to remove previous records i have to use CLEAR .Is it possible that i dont have to create XMLDOMDoc for every record but only once when the batch starts .The system throws an error that multiple root element cannot exist if i am not using clear.With clear things work fine in classic but RTC crashes ,i think due to overload of creating XMLDOm for all the related records .


Please suggest.

Thanks in advance

Comments

  • ara3nara3n Member Posts: 9,257
    Have you thought about using xmlport instead?

    Also you can do exe upgrade to 2009 R2 and use dotNET data types.


    Another option is that in you XMLDOM. there are function such as delete children. So you can delete all the nodes and create a new nodes. You could create a single instance CU. Also where are you instantiating the COM on RTC?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.