Blank XML Tags

dayakardayakar Member Posts: 68
Hi,

I am designing a XMLPort to export a table data from Navision, Its working fine but if in a field if there is no field value XML shows the begining and ending tags with the blank values.

Can we make those blank XML tags not to display in the output?

Thanks in advance, any help will be appreciated.

Answers

  • ara3nara3n Member Posts: 9,256
    you'll need to use xmldom to remove the elements without values.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • dayakardayakar Member Posts: 68
    ara3n wrote:
    you'll need to use xmldom to remove the elements without values.


    Thanks for the quick reply Rasheed.

    Dont we have any property in XML Port itself, Like Before Exporting the element or any specific workround ?
  • ara3nara3n Member Posts: 9,256
    no there are no settings/property
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • dayakardayakar Member Posts: 68
    ara3n wrote:
    no there are no settings/property

    Thanks for your insight Rashed,

    The XML Output am generating is processed by another system and i guess :-k it will just ignore the Blank XML tags???. At this point of time I dont have any access to that system.

    Just want to confirm my guess is correct or not?
  • ara3nara3n Member Posts: 9,256
    Yes the other system should handle empty elements.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • dayakardayakar Member Posts: 68
    Thanks for your reply rashed.

    Thanks,
    Dayakar.
Sign In or Register to comment.