Click here to Skip to main content
15,908,843 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionhow to get XML file. Pin
AtulRane28-Aug-08 19:14
AtulRane28-Aug-08 19:14 
AnswerRe: how to get XML file. Pin
Russell Jones29-Aug-08 4:51
Russell Jones29-Aug-08 4:51 
AnswerRe: how to get XML file. Pin
Michael Dunn29-Aug-08 13:30
sitebuilderMichael Dunn29-Aug-08 13:30 
Question[Message Deleted] Pin
vankayalapati27-Aug-08 19:04
vankayalapati27-Aug-08 19:04 
AnswerRe: how to add event handling in xslt Pin
led mike28-Aug-08 5:11
led mike28-Aug-08 5:11 
QuestionReading values from unformatted xml Pin
indian14325-Aug-08 23:40
indian14325-Aug-08 23:40 
AnswerRe: Reading values from unformatted xml Pin
Christian Graus26-Aug-08 0:50
protectorChristian Graus26-Aug-08 0:50 
Questionxml to xml [modified] Pin
Member 470396625-Aug-08 5:16
Member 470396625-Aug-08 5:16 
Hi, i need to convert a raw xml file into another xml file using xslt. I have no idea how to achieve the desire output. Can anyone provide an example? Thanks.

Input xml:
<root>
<header>
<row>
<entry>header</entry>
<entry>name1</entry>
<entry>result1</entry>
</row>
<row>
<entry>header</entry>
<entry>name2</entry>
<entry>result2</entry>
<entry>result22</entry>
</row>
<row>
<entry>reading</entry>
<entry>name3</entry>
<entry>result3</entry>
</row>
<row>
<entry>reading</entry>
<entry>name4</entry>
<entry>result4</entry>
<entry>result5</entry>
</row>
</header>
</root>

The final xml will be like this:

<root>
<header>
<row>
<name>name1</name>
<result>result1</result>
</row>
<row>
<name>name2</name>
<result>result2</result>
<result2>result2</result2>
</row>
</header>
<reading>
<row>
<name>name3</name>
<result>result3</result>
</row>
<row>
<name>name4</name>
<result>result4</result>
<value>result5</value>
</row>
</reading>
</root>

<div class="ForumMod">modified on Monday, August 25, 2008 11:25 AM</div>
AnswerRe: xml to xml Pin
led mike26-Aug-08 5:40
led mike26-Aug-08 5:40 
AnswerRe: xml to xml Pin
led mike27-Aug-08 6:25
led mike27-Aug-08 6:25 
QuestionXSL copy-of problem! Pin
Saul Johnson24-Aug-08 5:46
Saul Johnson24-Aug-08 5:46 
AnswerRe: XSL copy-of problem! Pin
Frank Horn25-Aug-08 8:11
Frank Horn25-Aug-08 8:11 
GeneralRe: XSL copy-of problem! Pin
Saul Johnson25-Aug-08 11:22
Saul Johnson25-Aug-08 11:22 
GeneralRe: XSL copy-of problem! Pin
Frank Horn25-Aug-08 21:10
Frank Horn25-Aug-08 21:10 
GeneralRe: XSL copy-of problem! Pin
Saul Johnson1-Sep-08 0:35
Saul Johnson1-Sep-08 0:35 
Questiontransform XML to XML Pin
StevenGoldberg23-Aug-08 11:56
StevenGoldberg23-Aug-08 11:56 
QuestionXSL value-of output problem! Pin
Saul Johnson22-Aug-08 8:24
Saul Johnson22-Aug-08 8:24 
AnswerRe: XSL value-of output problem! Pin
Saul Johnson23-Aug-08 4:16
Saul Johnson23-Aug-08 4:16 
GeneralRe: XSL value-of output problem! Pin
Frank Horn23-Aug-08 9:25
Frank Horn23-Aug-08 9:25 
GeneralRe: XSL value-of output problem! Pin
Saul Johnson23-Aug-08 11:51
Saul Johnson23-Aug-08 11:51 
Question[Message Deleted] Pin
debobrata21-Aug-08 1:27
debobrata21-Aug-08 1:27 
AnswerRepost Pin
led mike21-Aug-08 4:58
led mike21-Aug-08 4:58 
QuestionHow to get the attribute name from xml using xslt Pin
ThangamSundar20-Aug-08 23:43
ThangamSundar20-Aug-08 23:43 
AnswerRe: How to get the attribute name from xml using xslt Pin
led mike21-Aug-08 4:56
led mike21-Aug-08 4:56 
QuestionQualified XML Root, InvalidOperationException while deserializing Pin
abcxyz8220-Aug-08 9:49
abcxyz8220-Aug-08 9:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.