AnsweredAssumed Answered

How to check if parent tag is not childless in any xml in boomi?

Question asked by akshay.b.goel892139 on Jul 24, 2018
Latest reply on Jul 24, 2018 by trey.yeager826393

Hi All,

 

How to check if parent tag is not childless in any xml in boomi?

Foreg:

<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<ABCD>
<TITLE1>Hide your heart</TITLE1>
<ARTIST1>Bonnie Tyler</ARTIST1>
<COUNTRY1>UK</COUNTRY1>
<COMPANY1>CBS Records</COMPANY1>
<PRICE1>9.90</PRICE1>
<YEAR1>1988</YEAR1>
</ABCD>
</CATALOG>
For above case as <CATALOG> and <CD> and <ABCD> tag is not childless it should give me success response.

Foreg:

<CATALOG>
<CD></CD>
<ABCD></ABCD>
</CATALOG>
For above case as <CD> & <ABCD> tags are childless it should give me error response.

Outcomes