A
ashish.saket
Hi all,
H i have an xslt file which does some function say to suppress the
empty tags in complex elements.
for ex if i have an xml
<A>
<B>value</B>
<ReturnData>
<C1>value</C1>
<C2>value</C2>
<C3/>
</ReturnData>
<D>
<D1>value</D1>
<D2>value</D2>
<D3/>
</D>
<E>value</E>
</A>
now the o/p should be
<A>
<B>value</B>
<ReturnData>
<C1>value</C1>
<C2>value</C2>
</ReturnData>
<D>
<D1>value</D1>
<D2>value</D2>
<D3/>
</D>
<E>value</E>
</A>
basically we want to suppress any empty tags within <ReturnData> tag.
this <ReturnData> tag is common in all responses that we deal with
however the structure n the name of elements within <ReturnData> tag
varies with every response.
now we would like to have a generic xslt which we can apply to all the
response xmls
but it should suppress the empty tags within <ReturnData> tag only
regards
ashish
H i have an xslt file which does some function say to suppress the
empty tags in complex elements.
for ex if i have an xml
<A>
<B>value</B>
<ReturnData>
<C1>value</C1>
<C2>value</C2>
<C3/>
</ReturnData>
<D>
<D1>value</D1>
<D2>value</D2>
<D3/>
</D>
<E>value</E>
</A>
now the o/p should be
<A>
<B>value</B>
<ReturnData>
<C1>value</C1>
<C2>value</C2>
</ReturnData>
<D>
<D1>value</D1>
<D2>value</D2>
<D3/>
</D>
<E>value</E>
</A>
basically we want to suppress any empty tags within <ReturnData> tag.
this <ReturnData> tag is common in all responses that we deal with
however the structure n the name of elements within <ReturnData> tag
varies with every response.
now we would like to have a generic xslt which we can apply to all the
response xmls
but it should suppress the empty tags within <ReturnData> tag only
regards
ashish