Click here to Skip to main content
15,919,423 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: getting xml values in to c#.net Pin
led mike17-Apr-08 4:43
led mike17-Apr-08 4:43 
GeneralXSD to corresponding Table Structure(Dojo Grid) Pin
ZServer17-Apr-08 3:48
ZServer17-Apr-08 3:48 
GeneralDisplaying WordML from XSLT in browser Pin
berghain16-Apr-08 23:37
berghain16-Apr-08 23:37 
QuestionXML Parse - performance Pin
mpavas16-Apr-08 0:25
mpavas16-Apr-08 0:25 
AnswerRe: XML Parse - performance Pin
led mike16-Apr-08 4:52
led mike16-Apr-08 4:52 
GeneralRe: XML Parse - performance Pin
mpavas16-Apr-08 5:01
mpavas16-Apr-08 5:01 
QuestionError : msxml3.dll (0x80072F0C) A certificate is required to complete client authentication Pin
malarpm16-Apr-08 0:06
malarpm16-Apr-08 0:06 
GeneralMathML Pin
Hariharan210515-Apr-08 21:51
Hariharan210515-Apr-08 21:51 
QuestionHow do I import mulitiple XML files into Microsoft Excel in one shot? Pin
Mike A. Fowler15-Apr-08 4:45
Mike A. Fowler15-Apr-08 4:45 
QuestionDoes anyone know how to access entities from an embedded tag? Pin
Mike A. Fowler14-Apr-08 6:09
Mike A. Fowler14-Apr-08 6:09 
AnswerRe: Does anyone know how to access entities from an embedded tag? Pin
Mark J. Miller14-Apr-08 8:58
Mark J. Miller14-Apr-08 8:58 
Questionc# XMLNODE SelectNodes Pin
mpavas13-Apr-08 21:36
mpavas13-Apr-08 21:36 
GeneralRe: c# XMLNODE SelectNodes Pin
N a v a n e e t h13-Apr-08 23:02
N a v a n e e t h13-Apr-08 23:02 
GeneralRe: c# XMLNODE SelectNodes Pin
mpavas13-Apr-08 23:17
mpavas13-Apr-08 23:17 
GeneralRe: c# XMLNODE SelectNodes Pin
N a v a n e e t h14-Apr-08 1:50
N a v a n e e t h14-Apr-08 1:50 
GeneralRe: c# XMLNODE SelectNodes Pin
Christian Graus13-Apr-08 23:58
protectorChristian Graus13-Apr-08 23:58 
QuestionRe: c# XMLNODE SelectNodes Pin
mpavas14-Apr-08 0:10
mpavas14-Apr-08 0:10 
GeneralRe: c# XMLNODE SelectNodes Pin
Christian Graus14-Apr-08 0:20
protectorChristian Graus14-Apr-08 0:20 
GeneralRe: c# XMLNODE SelectNodes Pin
mpavas14-Apr-08 0:41
mpavas14-Apr-08 0:41 
QuestionDoes anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler12-Apr-08 6:45
Mike A. Fowler12-Apr-08 6:45 
AnswerRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet12-Apr-08 8:05
pmarfleet12-Apr-08 8:05 
GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler12-Apr-08 9:30
Mike A. Fowler12-Apr-08 9:30 
AnswerRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet12-Apr-08 10:33
pmarfleet12-Apr-08 10:33 
Here you go.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="text" indent="yes"/>

<xsl:template match="/">
<xsl:text>int main { </xsl:text>
<xsl:apply-templates />
<xsl:text> return 0; }</xsl:text>
</xsl:template>

<xsl:template match="person">
<xsl:text>person a; a.name = </xsl:text>
<xsl:value-of select="name"/>
<xsl:text>; a.age = </xsl:text>
<xsl:value-of select="age"/>
<xsl:text>; </xsl:text>
</xsl:template>
</xsl:stylesheet>

Hope it helps.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler13-Apr-08 3:30
Mike A. Fowler13-Apr-08 3:30 
GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet13-Apr-08 3:45
pmarfleet13-Apr-08 3:45 

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.