Note that there are some explanatory texts on larger screens.

plurals
  1. POXML 2 XML using XSLT
    primarykey
    data
    text
    <p>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 :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt; &lt;!--Customers table from Northwind database--&gt; &lt;Customers&gt; &lt;Customer CustomerID="ALFKI"&gt; &lt;CompanyName&gt;Alfreds Futterkiste&lt;/CompanyName&gt; &lt;Country&gt;Germany&lt;/Country&gt; &lt;Orders&gt; &lt;Order OrderID="10643"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10692"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10702"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10835"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10952"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="11011"&gt; &lt;ShipCity&gt;Berlin&lt;/ShipCity&gt; &lt;/Order&gt; &lt;/Orders&gt; &lt;/Customer&gt; &lt;Customer CustomerID="ANATR"&gt; &lt;CompanyName&gt;Ana Trujillo Emparedados y helados&lt;/CompanyName&gt; &lt;Country&gt;Mexico&lt;/Country&gt; &lt;Orders&gt; &lt;Order OrderID="10308"&gt; &lt;ShipCity&gt;México D.F.&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10625"&gt; &lt;ShipCity&gt;México D.F.&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10759"&gt; &lt;ShipCity&gt;México D.F.&lt;/ShipCity&gt; &lt;/Order&gt; &lt;Order OrderID="10926"&gt; &lt;ShipCity&gt;México D.F.&lt;/ShipCity&gt; &lt;/Order&gt; &lt;/Orders&gt; &lt;/Customer&gt; &lt;/Customers&gt; </code></pre> <p>And trying to generate another XML that contains only "country" nodes.. How to write it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload