XMLport Export: Skip Empty Tags

Hi there! Does anyone know how to skip empty tags when exporting with a XMLport? Thanks, Stefan

I believe you do this by setting the MinOccurs property of your element to zero.

I thought it too, but it doesn’t work.

Is there a reason why you HAVE to skip those elements? Having empty tags is still wellformed XML, and the receiving app should ignore those anyway. I can see why you’d want this if you have a different purpose for blank tags vs. skipped ones, but I’d assume that the reeiving app should have no problem with them.

Sometimes it is necessary to skip empty tags because the schema does not allow an empty tag, but will allow the tag to be absent. It is not possible to omit a tag by code in the xmlport triggers, this seems to be a bug. There is a work around that I have used. Its labourious thats all. http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=14429

Hi !

You can try currXMLport.SKIP;