Page 1 of 1

How to remove space if XML node data is blank?

Posted: Fri Dec 07, 2012 12:16 pm
by amitkaushik
Hi,

I want to remove space or line if xml file contain node without any data.

like;

XML:

<A></A>
<B>test1</B>
<C>test2</C>

mrt:
{Con.A}
{Con.B}
{Con.C}

Output :
blank line
test1
test2

but required Output is: (without blank line)
test1
test2

regards.

Re: How to remove space if XML node data is blank?

Posted: Fri Dec 07, 2012 1:24 pm
by HighAley
Hello.

Please, send us a report template with data for analysis.

Thank you.

Re: How to remove space if XML node data is blank?

Posted: Tue Dec 11, 2012 6:18 am
by amitkaushik
Pls find the templates.

Thanks
template.rar
Pls find attached files
(2.39 KiB) Downloaded 186 times

Re: How to remove space if XML node data is blank?

Posted: Wed Dec 12, 2012 6:42 am
by HighAley
Hello.

You should set the Can Shrink property for all Text Components to True and Shift Mode to Increasing Size, Decreasing Size.
Test.mrt
(7.9 KiB) Downloaded 535 times
Thank you.

Re: How to remove space if XML node data is blank?

Posted: Thu Dec 13, 2012 12:55 pm
by amitkaushik
Thank you Aleksey Andreyanov.

Re: How to remove space if XML node data is blank?

Posted: Fri Dec 14, 2012 5:41 am
by HighAley
Hello.

We are very glad to help you.
Let us know if you will need any additional help.

Thank you.