XML transformation question

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Does anyone know how I might use XPaths or XLT to transform the following XML to a table, which follows that?
<Scopes><br/>
<Compute><br/>
<Context>Compute</Context><br/>
<DataInterpreter><br/>
<Context>DataInterpreter</Context><br/>
<FooInterpreter><br/>
<Context>FooInterpreter</Context><br/>
<LoadLocal><br/>
<Context>LoadLocal</Context><br/>
<start>1</start><br/>
<stop>3</stop><br/>
</LoadLocal><br/>
<Join><br/>
<Context>Join</Context><br/>
<start>3</start><br/>
<stop>4</stop><br/>
</Join><br/>
<start>1</start><br/>
<stop>4</stop><br/>
</FooInterpreter><br/>
<BarInterpreter><br/>
<Context>BarInterpreter</Context><br/>
<start>4</start><br/>
<stop>5</stop><br/>
</BarInterpreter><br/>
<start>1</start><br/>
<stop>6</stop><br/>
</DataInterpreter>
<br/>
</Compute><br/>
</Scopes>
<pre>Scope1,Scope2,Scope3,Scope4,start,stop
Compute,DataInterpreter,Foonterpreter,LoadLocal,1,3
Compute,DataInterpreter,FooInterpreter,Join,3,4
Compute,DataInterpreter,BarInterpreter,,4,5
[/code]
Thanks,
Brian<br/>
<br/>


View the full article
 
Back
Top