<Example>
<xHeaderInfo>
<Header_No>10</Header_No>
<Header_Name>Huseyin</Header_Name>
<Header_Type>H1</Header_Type>
</xHeaderInfo>
<xItemInfo>
<Item_No>01</Item_No>
<Item_Name>Item1</Item_Name>
<Item_Type>I1</Item_Type>
</xItemInfo>
<xFooterInfo>
<Footer_No>01</Footer_No>
<Footer_Name>Footer1</Footer_Name>
</xFooterInfo>
</Example>
import com.sap.it.api.mapping.*
def String customFunc(String xResult,String xLength){
int xRequiredLength = 0;
try{
xRequiredLength= Integer.parseInt(xLength);
}
catch (Exception e){}
while (xResult.length() < xRequiredLength){
xResult=xResult+" ";
}
return xResult;
}
<?xml version="1.0" encoding="UTF-8"?>
<Example>
<xHeaderInfo>
<Header_No>10</Header_No>
<Header_Name>Huseyin</Header_Name>
<Header_Type>H1</Header_Type>
</xHeaderInfo>
<xItemInfo>
<Item_No>01</Item_No>
<Item_Name>Item1</Item_Name>
<Item_Type>I1</Item_Type>
</xItemInfo>
<xFooterInfo>
<Footer_No>01</Footer_No>
<Footer_Name>Footer1</Footer_Name>
</xFooterInfo>
</Example>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:output method="text" indent="yes"/>
<xsl:preserve-space elements="*"/>
<xsl:template match="/" mode="serialize">
<xsl:apply-templates select="@*"/>
</xsl:template>
</xsl:stylesheet>>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 |