473,809 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML to HTML page

6 New Member
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.  
Nov 17 '08 #1
10 2756
Dormilich
8,658 Recognized Expert Moderator Expert
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
Nov 17 '08 #2
jollysr
6 New Member
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
Nov 17 '08 #3
Dormilich
8,658 Recognized Expert Moderator Expert
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
Nov 18 '08 #4
jollysr
6 New Member
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.
Nov 19 '08 #5
Dormilich
8,658 Recognized Expert Moderator Expert
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
Nov 20 '08 #6
jollysr
6 New Member
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:attrib ute 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:<xs l:value-of select="summary " disable-output-escaping="yes"/></br>


Could you please guide me on the above two points…

regards,
Nov 21 '08 #7
jollysr
6 New Member
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:attrib ute 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:<xs l: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) ?
Nov 21 '08 #8
Dormilich
8,658 Recognized Expert Moderator Expert
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>
Nov 21 '08 #9
jollysr
6 New Member
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:
<directoryCateg ories xmlns:ns2="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns2:A rray" ns2:arrayType=" ns1:DirectoryCa tegory[2]">
<item xsi:type="ns1:D irectoryCategor y">
<fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>

<item xsi:type="ns1:D irectoryCategor y">
<fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Shopping/Visual_Arts/Artists</fullViewableNam e>

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

<resultElemen ts xmlns:ns3="http ://schemas.xmlsoap .org/soap/encoding/" xsi:type="ns3:A rray" ns3:arrayType=" ns1:ResultEleme nt[10]">
<item xsi:type="ns1:R esultElement">
<URL xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">http://www.mcescher.co m/</URL>
<cachedSize xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">2k</cachedSize>
<directoryCateg ory xsi:type="ns1:D irectoryCategor y">
<fullViewableNa me xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:s tring">Top/Arts/Art_History/Artists/E/Escher,_M._C.</fullViewableNam e>

Thanks,
Nov 22 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2236
by: SteveJ | last post by:
All, Can someone help me solve the next step. First of all let me say I'm new to php. I pieced the following code together from samples I found on the net and a book I bought called PHP Cookbook. So please forgive me if this isn't the best approach - I'm open to suggestions I finally got my code to work that logs into another site and pulls the orderstatus page to my server.
2
2319
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the middel (all actions run here), and on bottom html pages will be shown. The bottom page contains forms witch is developed with a 3ed party design tool from Acrobat and stored as HTML. It wouldn't be any problem storing these files as html. But the main...
1
3475
by: Randi | last post by:
Hi all, I there any way of putting an html hyperlink into a .xml file, and still be able to use the xml tags to format the page? Here is the code of the xml file(real simple) and the .css file. I would like to use the .css as the style sheet if possible. Thanks, Kelsey <?xml version="1.0" encoding="iso-8859-1"?>
2
8407
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
3
1527
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink for every entry in my table. So i query the database and get for example 3 entries back. So in a while loop i can make 3 hyperlinks with response.write(.......) etc.
20
5667
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just client-side HTML, CSS, etc. What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
17
2549
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this website. When I click in Google on one of these pages (not index.html or home.html), I am only linked to that one html-page and not to the website itself. Does anyone know how to fix this. Is there for example a metatag? Thanks
10
3488
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario ------------- I have perl script which simply runs a ps on a Solaris server and generates a static html page with all of the code perfectly and this html page works fine when viewing it statically or with a META REFRESH header tag. The idea is to give the user...
15
5283
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
42
8971
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully readable HTML? Santander
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10637
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.