Page 1 of 1

How to remove the empty tags in Hierarchical Stage

Posted: Fri Dec 01, 2017 1:39 pm
by kumar66
Hi All,

I have to remove the empty tags in XML. My parent tag in the xsd has the min occurs =0 and child tag associated with the parent has min occurs =1.

If I don' t receive parent value then i should not send the child tag . Since the min occurs for the child tag =1 , the tag is getting populated.

Is there a way i can discard these tags?

Please Advice.

Thanks,
Kumar66

Posted: Fri Dec 01, 2017 6:48 pm
by ray.wurlod
The obvious comment is that your XSD is not well-formed; a child should not have minoccurs=1 if the parent has minoccurs=0.

Posted: Sat Dec 02, 2017 9:14 am
by chulett
When one of our Treasury feeds went through a major overhaul of their XML, they sent us not quite valid xsd files for the new version that apparently no-one else had pointed out to them yet. They were quite helpful in getting us new versions even if it did take more than a couple of tries. :wink:

Of course, for something simple like that, you could always "fix" it yourself.

Posted: Mon Dec 04, 2017 6:53 am
by kumar66
Ray & Craig,

Thanks for the responses.

Posted: Mon Dec 04, 2017 10:09 am
by eostic
Also, while its hard to determine your problem by just reading your symptom, be sure you have your Composer step settings established correctly, and that you are passing in true "null values" for any elements you don't want to be written into the document.

Ernie

Posted: Tue Dec 05, 2017 2:14 pm
by UCDI
there is a checkbox in the stage somewhere to eliminate empty tags.
I can't recall exactly where.