Jump to content

XML - XSL problem


Guest Sudhakar
 Share

Recommended Posts

Guest Sudhakar

Hi I have a xml file like following:<StInfo> <StText2><![CDATA[]]></StText2> <StValue2><![CDATA[January 1 - January 31, 2005]]></StValue2> <StText2><![CDATA[statement Date]]></StText2> <StValue2><![CDATA[01/02/2005]]></StValue2> <StText2><![CDATA[statement No.]]></StText2> <StValue2><![CDATA[100013949220]]></StValue2> <StText2><![CDATA[Account Number]]></StText2> <StValue2><![CDATA[11147996]]></StValue2> <StText2><![CDATA[billing Address]]></StText2> <StValue2><![CDATA[bSR_NRI_CORPORATE_001_1]]></StValue2> <StText2><![CDATA[]]></StText2> <StValue2><![CDATA[ADDRESS LINE1]]></StValue2> <StText2><![CDATA[]]></StText2> <StValue2><![CDATA[ADDRESS LINE2]]></StValue2> <StText2><![CDATA[]]></StText2> <StValue2><![CDATA[HYDERABAD]]></StValue2> <StText2><![CDATA[]]></StText2> <StValue2><![CDATA[ANDHRA PRADESH - 500082]]></StValue2></StInfo>how can i read all the tags <StText2> and <StValue2> one after one with the help of XSL and XPATH. Plz Kindly guide.

Link to comment
Share on other sites

  • 4 weeks later...

From the way it looks, if you were to transform this, the values of StText2 and StValue2 would be overwritten until you get to the last two because they have the same names. You're just resetting the value of those tags. Don't know much about XPath but that's what it looks like.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...