XMLPorts - How do you exlude blank nodes?

dimanop
dimanop Member Posts: 10
Hi, I have a client who requires optional XML nodes to be excluded from an xml file as they have troubles importing xml messages with blank open ended nodes.

Is there a way to stop these blank nodes from being included in an xml message from a XMLPort? Any suggestions would be much appreciated. :)

Thanks, Tom

Comments

  • DenSter
    DenSter Member Posts: 8,307
    You can load the XML document that you create with an XMLPort into an "XML Document" variable and manipulate it that way. The XMLPort itself though will always create an empty element.

    An empty element, by the way, is well formed XML. Any program that accepts an XML document should be capable of handling empty elements.
  • dimanop
    dimanop Member Posts: 10
    Thanks for the reply Daniel, much appreciated. :D