Jump to content
Sign in to follow this  
Guest Sudhakar

XML - XSL problem

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...