XMLport Export: Format of Empty Tags

ngebhardngebhard Member Posts: 127
I need to export some data in XML-structure and wanted to use the XMLPort for this. The receiver of the data is not able to read empty tags as <Example/>. They need to get <Example></Example> or we need to skip these tags. I tried the "MinOccurs"-property to skip it, but this seems not to be used in exports as it only works with imports.

Does anyone have an idea how to export empty tags in the format <Example></Example> or how to skip empty tags? I can't find any property but maybe I missed something.

Thanks in advance.
Regards
Nicole
ProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt

Comments

  • ara3nara3n Member Posts: 9,256
    You cannot do it with xmlport. Once the xml file is created you can use MSXMLDOM to remove the nodes. There are plenty of examples available online.
    Ahmed Rashed Amini
    Independent Consultant/Developer


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