Connecting Tech Pros Worldwide Help | Site Map

XML to HTML page

Newbie
 
Join Date: Nov 2008
Posts: 6
#1: Nov 17 '08
Could someone please help me convert the following XML to HTML page?
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  3.           <SOAP-ENV:Body>
  4.                     <ns1:doGoogleSearchResponse xmlns:ns1="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  5.                               <return xsi:type="ns1:GoogleSearchResult">
  6.                                         <directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory[2]">
  7.                                                   <item xsi:type="ns1:DirectoryCategory">
  8.                                                             <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  9.                                                             <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  10.                                                   </item>
  11.                                                   <item xsi:type="ns1:DirectoryCategory">
  12.                                                             <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>
  13.                                                             <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  14.                                                   </item>
  15.                                         </directoryCategories>
  16.                                         <documentFiltering xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">false</documentFiltering>
  17.                                         <endIndex xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:int">10</endIndex>
  18.                                         <estimateIsExact xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">false</estimateIsExact>
  19.                                         <estimatedTotalResultsCount xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:int">281000</estimatedTotalResultsCount>
  20.                                         <resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[10]">
  21.                                                   <item xsi:type="ns1:ResultElement">
  22.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.mcescher.com/</URL>
  23.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">2k</cachedSize>
  24.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  25.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  26.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  27.                                                             </directoryCategory>
  28.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">MC &lt;b&gt;Escher&lt;/b&gt;</directoryTitle>
  29.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  30.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  31.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></snippet>
  32.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Art, news, history, copyright and MC &lt;b&gt;Escher&lt;/b&gt; Foundation information.</summary>
  33.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">MC.&lt;b&gt;Escher&lt;/b&gt;</title>
  34.                                                   </item>
  35.                                                   <item xsi:type="ns1:ResultElement">
  36.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.worldofescher.com/</URL>
  37.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">28k</cachedSize>
  38.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  39.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  40.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  41.                                                             </directoryCategory>
  42.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">The world of &lt;b&gt;Escher&lt;/b&gt;</directoryTitle>
  43.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  44.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  45.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">The web site to explore the great MC &lt;b&gt;Escher&lt;/b&gt; artworks. Each image has&lt;br&gt; commentary and a zoom mode. &lt;b&gt;...&lt;/b&gt; The place for everything &lt;b&gt;Escher&lt;/b&gt;. &lt;b&gt;...&lt;/b&gt;  </snippet>
  46.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">An online collection of the works of &lt;b&gt;Escher&lt;/b&gt;, along with an online store.</summary>
  47.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">World of &lt;b&gt;Escher&lt;/b&gt; - Secure Shopping, Artwork Gallery, Tesselations &lt;b&gt;...&lt;/b&gt;</title>
  48.                                                   </item>
  49.                                                   <item xsi:type="ns1:ResultElement">
  50.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.worldofescher.com/gallery/</URL>
  51.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">48k</cachedSize>
  52.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  53.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>
  54.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  55.                                                             </directoryCategory>
  56.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></directoryTitle>
  57.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  58.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  59.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">The web site to explore the great MC &lt;b&gt;Escher&lt;/b&gt; artworks. Each image has&lt;br&gt; commentary and a zoom mode. &lt;b&gt;...&lt;/b&gt; The place for everything &lt;b&gt;Escher&lt;/b&gt;. &lt;b&gt;...&lt;/b&gt;  </snippet>
  60.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></summary>
  61.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">World of &lt;b&gt;Escher&lt;/b&gt; - Product Gallery</title>
  62.                                                   </item>
  63.                                                   <item xsi:type="ns1:ResultElement">
  64.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.cs.unc.edu/~davemc/Pic/Escher/</URL>
  65.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">2k</cachedSize>
  66.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  67.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  68.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  69.                                                             </directoryCategory>
  70.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&lt;/b&gt; Art Collection</directoryTitle>
  71.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  72.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  73.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">The &lt;b&gt;Escher&lt;/b&gt; Web Page has moved. You should be redirected to the new page&lt;br&gt; in 15 second. If &lt;b&gt;...&lt;/b&gt; link: http://home.comcast.net/~davemc0/&lt;b&gt;Escher&lt;/b&gt;. </snippet>
  74.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">A collection of images of artist's works.</summary>
  75.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Redirect &lt;b&gt;Escher&lt;/b&gt; Web Page</title>
  76.                                                   </item>
  77.                                                   <item xsi:type="ns1:ResultElement">
  78.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.etropolis.com/escher/</URL>
  79.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">3k</cachedSize>
  80.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  81.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>
  82.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  83.                                                             </directoryCategory>
  84.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></directoryTitle>
  85.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  86.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  87.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">MC &lt;b&gt;escher&lt;/b&gt; about the artist... notes on art... All MC &lt;b&gt;Escher&lt;/b&gt; works (c) Cordon Art&lt;br&gt; BV-Baarn-the Netherlands. All rights reserved. Used by permission. &lt;b&gt;...&lt;/b&gt;  </snippet>
  88.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></summary>
  89.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">MC &lt;b&gt;Escher&lt;/b&gt;</title>
  90.                                                   </item>
  91.                                                   <item xsi:type="ns1:ResultElement">
  92.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.mathacademy.com/pr/minitext/escher/index.asp</URL>
  93.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">41k</cachedSize>
  94.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  95.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  96.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  97.                                                             </directoryCategory>
  98.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Mathematical Art of MC &lt;b&gt;Escher&lt;/b&gt;</directoryTitle>
  99.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  100.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  101.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Article on the mathematical art of MC &lt;b&gt;Escher&lt;/b&gt;, with emphasis on inspiring&lt;br&gt; the student to see mathematics with fresh eyes. &lt;b&gt;...&lt;/b&gt;  MC &lt;b&gt;Escher&lt;/b&gt;. &lt;b&gt;...&lt;/b&gt;  </snippet>
  102.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">A detailed and liberally illustrated essay on the signifigance of &lt;b&gt;Escher's&lt;/b&gt; artwork for the student...</summary>
  103.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Mathematical Art of MC &lt;b&gt;Escher&lt;/b&gt; -- Platonic Realms MiniText</title>
  104.                                                   </item>
  105.                                                   <item xsi:type="ns1:ResultElement">
  106.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://escherdroste.math.leidenuniv.nl/</URL>
  107.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">4k</cachedSize>
  108.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  109.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  110.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  111.                                                             </directoryCategory>
  112.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Leiden University - &lt;b&gt;Escher&lt;/b&gt; and the Droste Effect</directoryTitle>
  113.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  114.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  115.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&lt;/b&gt; and the Droste effect. &lt;b&gt;...&lt;/b&gt; Applying mathematics to &lt;b&gt;Escher&amp;#39;s&lt;/b&gt; Print Gallery. &lt;b&gt;...&lt;/b&gt; All&lt;br&gt; MC &lt;b&gt;Escher&lt;/b&gt; works © Cordon Art-Baarn-the Netherlands. Used by permission. &lt;b&gt;...&lt;/b&gt;  </snippet>
  116.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Student project aiming to visualize the mathematical structure behind the 'Print Gallery'.</summary>
  117.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&lt;/b&gt; and the Droste effect - Universiteit Leiden</title>
  118.                                                   </item>
  119.                                                   <item xsi:type="ns1:ResultElement">
  120.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www-gap.dcs.st-and.ac.uk/~history/Mathematicians/Escher.html</URL>
  121.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">32k</cachedSize>
  122.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  123.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>
  124.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  125.                                                             </directoryCategory>
  126.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Maurits Cornelius &lt;b&gt;Escher&lt;/b&gt;: A biography</directoryTitle>
  127.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  128.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  129.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Maurits Cornelius &lt;b&gt;Escher&lt;/b&gt;. Born: 17 June 1898 in &lt;b&gt;...&lt;/b&gt; Maurits &lt;b&gt;Escher&lt;/b&gt; was&lt;br&gt; always referred to by his parents as Mauk. He was brought up by &lt;b&gt;...&lt;/b&gt;  </snippet>
  130.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">A biography of MV &lt;b&gt;Escher&lt;/b&gt;.</summary>
  131.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&lt;/b&gt;</title>
  132.                                                   </item>
  133.                                                   <item xsi:type="ns1:ResultElement">
  134.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://users.erols.com/ziring/escher.htm</URL>
  135.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">14k</cachedSize>
  136.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  137.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>
  138.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  139.                                                             </directoryCategory>
  140.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></directoryTitle>
  141.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  142.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  143.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">z-logo. Welcome to the MC &lt;b&gt;Escher&lt;/b&gt; Pages! MC &lt;b&gt;Escher&lt;/b&gt; (1898-1972) is my favorite&lt;br&gt; graphic artist. He lived &lt;b&gt;...&lt;/b&gt; entirety. &lt;b&gt;Escher&amp;#39;s&lt;/b&gt; Lifetime. Maurits &lt;b&gt;...&lt;/b&gt;  </snippet>
  144.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></summary>
  145.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Neal&amp;#39;s &lt;b&gt;Escher&lt;/b&gt; Page</title>
  146.                                                   </item>
  147.                                                   <item xsi:type="ns1:ResultElement">
  148.                                                             <URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.lipsons.pwp.blueyonder.co.uk/escher/ascending.html</URL>
  149.                                                             <cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">8k</cachedSize>
  150.                                                             <directoryCategory xsi:type="ns1:DirectoryCategory">
  151.                                                                       <fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>
  152.                                                                       <specialEncoding xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></specialEncoding>
  153.                                                             </directoryCategory>
  154.                                                             <directoryTitle xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></directoryTitle>
  155.                                                             <hostName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></hostName>
  156.                                                             <relatedInformationPresent xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:boolean">true</relatedInformationPresent>
  157.                                                             <snippet xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&amp;#39;s&lt;/b&gt; &amp;quot;Ascending and Descending&amp;quot; in LEGO®. Because &lt;b&gt;...&lt;/b&gt; effect. The&lt;br&gt; original &lt;b&gt;Escher&lt;/b&gt; picture is shown on the right for comparison. &lt;b&gt;...&lt;/b&gt;  </snippet>
  158.                                                             <summary xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></summary>
  159.                                                             <title xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">&lt;b&gt;Escher&amp;#39;s&lt;/b&gt; &amp;quot;Ascending and Descending&amp;quot; in LEGO</title>
  160.                                                   </item>
  161.                                         </resultElements>
  162.                                         <searchComments xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></searchComments>
  163.                                         <searchQuery xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Escher</searchQuery>
  164.                                         <searchTime xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:double">0.412154</searchTime>
  165.                                         <searchTips xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string"></searchTips>
  166.                                         <startIndex xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:int">1</startIndex>
  167.                               </return>
  168.                     </ns1:doGoogleSearchResponse>
  169.           </SOAP-ENV:Body>
  170. </SOAP-ENV:Envelope>
  171.  
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Nov 17 '08

re: XML to HTML page


how do you want your html to look like? if you can answer that it should be easy to bend the xml content into html shape.

regards
Newbie
 
Join Date: Nov 2008
Posts: 6
#3: Nov 17 '08

re: XML to HTML page


Quote:

Originally Posted by Dormilich

how do you want your html to look like? if you can answer that it should be easy to bend the xml content into html shape.

regards

Thanks for your reply. I'm looking for an XLST which will transform the xml to a HTML page that should look like the search results from a google page.

Thanks
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#4: Nov 18 '08

re: XML to HTML page


that seems rather easy. your xml targets are (imho) <URL> (link, -> <a>), <snippet> (descr., -> <p>) and <title> (title, -> <h2>). just loop it over <item> and style it appropriately with CSS.

if you're uncertain how to put that into code, I recommend a tutorial.

regards
Newbie
 
Join Date: Nov 2008
Posts: 6
#5: Nov 19 '08

re: XML to HTML page


thank you. .. since I am very newbie, can you or anyone help me how to go about solving the question. Any input or answer in right direction is highly valued. I am reading the xml book to understand myself but that takes longer time than I wish to arrive at the solution.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#6: Nov 20 '08

re: XML to HTML page


first thing I recommend is a tutorial (see above) to get used to the language.

now for the task. what I'd do is, create the desired html page as if it were static (so you can apply the layout and styles you want without any xslt hassle). then you look for repeating patterns.
have a look at one pattern, how is it build? basicly you need to figure out which part of it will depend on the input xml and which form a kind of template. substitute the variable part with suited 'functions' of xslt, add some headers and finís.

example:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE ...>
  2. <html>
  3.   <head>
  4.     <title>%%PAGE_TITLE%%</title>
  5. // meta, css, js definitions
  6.   </head>
  7.   <body>
  8.     <h2>%%HEADING_1%%</h2>
  9.     <p>%%some_text%%</p>
  10.     <h2>%%HEADING_2%%</h2>
  11.     <p>%%some_other_text%%</p>
  12.   </body>
  13. </html>
so you have two patterns, the repeating <h2>/<p> blocks and the html frame (frame in a sense of tag sequence). so template1 will have to produce the frame and template2 will have to be repeatedly called to make the content blocks (where %%text%% is taken from the xml). how to achieve this is covered in nearly every tutorial.

if you stumble upon problems we will be glad helping you to solve the issues.

regards
Newbie
 
Join Date: Nov 2008
Posts: 6
#7: Nov 21 '08

re: XML to HTML page


I successfully managed to get to a point to make my output HTML Page look decent (if not the best) but got stuck in few places:

1) When I run my XSLT, the hyperlink for my URL does not show up
2) The information in my XML is such that sometimes it has Summary information and sometimes Summary is not present for an item. I need something like an if statement where if summary is ‘null’ don’t print it’s value.

1) Code where I try to use hyperlink for my URL but it does not print so: The output file shows the URL as a plain text and not a hyperlink...

<br><xsl:attribute name="href">
<xsl:value-of select="URL"/>
</xsl:attribute><xsl:value-of select="URL"/></br>

2) I need an if statement here where it will select the value only if it is not empty:
<br>Summary:<xsl:value-of select="summary" disable-output-escaping="yes"/></br>


Could you please guide me on the above two points…

regards,
Newbie
 
Join Date: Nov 2008
Posts: 6
#8: Nov 21 '08

re: XML to HTML page


Quote:

Originally Posted by jollysr

I successfully managed to get to a point to make my output HTML Page look decent (if not the best) but got stuck in few places:

1) When I run my XSLT, the hyperlink for my URL does not show up
2) The information in my XML is such that sometimes it has Summary information and sometimes Summary is not present for an item. I need something like an if statement where if summary is ‘null’ don’t print it’s value.

1) Code where I try to use hyperlink for my URL but it does not print so: The output file shows the URL as a plain text and not a hyperlink...

<br><xsl:attribute name="href">
<xsl:value-of select="URL"/>
</xsl:attribute><xsl:value-of select="URL"/></br>

2) I need an if statement here where it will select the value only if it is not empty:
<br>Summary:<xsl:value-of select="summary" disable-output-escaping="yes"/></br>


Could you please guide me on the above two points…

regards,

I figured out an answer for 1) - it should be <a> and not <br> !!!!!!!!!!!!!!!!!!!!
Could someone help me with 2) ?
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#9: Nov 21 '08

re: XML to HTML page


if a element/value is empty its output by <xsl:value-of> is '' (empty string).

if you want to make a fallback (or something like that), use <xsl:if> or <xsl:choose>
Expand|Select|Wrap|Line Numbers
  1. <xsl:choose>
  2.   <xsl:when test="summary">
  3.     <xsl:value-of select="summary"/> 
  4. // add more text if needed
  5.   </xsl:when>
  6.   <xsl:otherwise>
  7.     <xsl:text>Sorry, no summary found</xsl:text>
  8.   </xsl:otherwise>
  9. </xsl:choose>
Newbie
 
Join Date: Nov 2008
Posts: 6
#10: Nov 22 '08

re: XML to HTML page


Thanks a lot! That helped.
I'm stuck in another place and would really appreciate if some input is given.
This is my issue:
I need to group the result items according to the directory categories. Directory category name should precede the items that belong to that category.

Directory category:
<directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory[2]">
<item xsi:type="ns1:DirectoryCategory">
<fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>

<item xsi:type="ns1:DirectoryCategory">
<fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Shopping/Visual_Arts/Artists</fullViewableName>

The result item has fullViewableName, this needs to be grouped under the corresponding value it matches above.

<resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[10]">
<item xsi:type="ns1:ResultElement">
<URL xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">http://www.mcescher.com/</URL>
<cachedSize xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">2k</cachedSize>
<directoryCategory xsi:type="ns1:DirectoryCategory">
<fullViewableName xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableName>

Thanks,
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#11: Nov 23 '08

re: XML to HTML page


for sorting you can use the <xsl:sort> instruction.

please pleas wrap your code in [code] tags, it's nearly unreadable now (esp. with all that more or less unnecessary namescpace definitions).

you may consider loop over category first and then over all items contained therein.

regards
Reply