Nesting in XML with XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Is it possible to create an XSLT file to nest a node in an XML file?
My current XML file looks like this:

<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2011-09-01T16:55:24

<JobDetails>
<JobId>35165</JobId>
</JobDetails>


<WorkProvider>
<CaseReference>8510847N</CaseReference>
</WorkProvider>


</dataroot>


And I need it to nest the WorkProvider node like this:



<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2011-09-01T16:55:24

<JobDetails>
<JobId>35165</JobId>
<WorkProvider>
<CaseReference>8510847N</CaseReference>
</WorkProvider>
</JobDetails>

</dataroot>


Hopefully this is possible.


<
--- Sam<br/>

View the full article
 
Back
Top