Hi, I learned about XSLT and XPath at w3schools,but it's not exactly what I wanted.. There are only examples about transforming XSLT 2 HTML, this is pretty easy,but I need a XML 2 XML transformation and can't find a good tutorial with examples...I downloaded MSXSL.exe but can't find exempls about using it to transform XML... Can anyone write a sample? I have customers.xml like :
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--Customers table from Northwind database-->
<Customers>
<Customer CustomerID="ALFKI">
<CompanyName>Alfreds Futterkiste</CompanyName>
<Country>Germany</Country>
<Orders>
<Order OrderID="10643">
<ShipCity>Berlin</ShipCity>
</Order>
<Order OrderID="10692">
<ShipCity>Berlin</ShipCity>
</Order>
<Order OrderID="10702">
<ShipCity>Berlin</ShipCity>
</Order>
<Order OrderID="10835">
<ShipCity>Berlin</ShipCity>
</Order>
<Order OrderID="10952">
<ShipCity>Berlin</ShipCity>
</Order>
<Order OrderID="11011">
<ShipCity>Berlin</ShipCity>
</Order>
</Orders>
</Customer>
<Customer CustomerID="ANATR">
<CompanyName>Ana Trujillo Emparedados y helados</CompanyName>
<Country>Mexico</Country>
<Orders>
<Order OrderID="10308">
<ShipCity>México D.F.</ShipCity>
</Order>
<Order OrderID="10625">
<ShipCity>México D.F.</ShipCity>
</Order>
<Order OrderID="10759">
<ShipCity>México D.F.</ShipCity>
</Order>
<Order OrderID="10926">
<ShipCity>México D.F.</ShipCity>
</Order>
</Orders>
</Customer>
</Customers>
And trying to generate another XML that contains only "country" nodes.. How to write it?