plainblack.com
Username Password
search
Bookmark and Share

XML Client for WebGUI

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
4len: "
This is an example template for using XMLClient with RSS feeds:

<tmpl_if displayTitle>
    <h1><tmpl_var title></h1>
</tmpl_if>

<tmpl_if description>
    <tmpl_var description><p />
</tmpl_if>


<!-- Channel title -->
<p style="font-size:150%">
<tmpl_if xml.channel.link>
   <A href="<tmpl_var xml.channel.link>" target="_blank">
      <tmpl_var xml.channel.title>
   </A>
<tmpl_else>
   <tmpl_var xml.channel.title>
</tmpl_if>
</p>

<!-- Channel description -->
<tmpl_if xml.channel.description>
    <p><tmpl_var xml.channel.description></p>
</tmpl_if>

<!-- Channel details -->
<p style="font-size:75% ; font style: italic ;">
   <tmpl_if xml.channel.lastBuildDate>
      Last changed: <tmpl_var xml.channel.lastBuildDate><br><br>
   </tmpl_if>
   <tmpl_if xml.channel.copyright>
      <tmpl_var xml.channel.copyright><br>
   </tmpl_if>
   <tmpl_if xml.channel.managingEditor>
      Managing Editor: <a href="mailto:<tmpl_var xml.channel.managingEditor>">
      <tmpl_var xml.channel.managingEditor></a><br>
   </tmpl_if>
   <tmpl_if xml.channel.webMaster>
      Webmaster: <a href="mailto:<tmpl_var xml.channel.webMaster>">
      <tmpl_var xml.channel.webMaster></a><br>
   </tmpl_if>
</p>
  
<!-- - - - - - - - - - - - - - - - - - - - -->
<p><hr>
<!-- - - - - - - - - - - - - - - - - - - - -->

<!-- RSS 2.0 Feed Items -->
<tmpl_loop xml.channel.item>
<br>
<ul><li>

<!-- Item title -->
<tmpl_if xml.channel.item.title>
   <tmpl_if xml.channel.item.link>
      <a href="<tmpl_var xml.channel.item.link>" target="_blank">
         <tmpl_var xml.channel.item.title>
      </a>
   <tmpl_else>
      <tmpl_if xml.channel.item.guid>
         <a href="<tmpl_var xml.channel.item.guid>" target="_blank">
            <tmpl_var xml.channel.item.title>
         </a> 
      <tmpl_else> 
         <tmpl_var xml.channel.item.title>
      </tmpl_if>
  </tmpl_if>
<br>
</tmpl_if>
<!-- Item description -->
<tmpl_if xml.channel.item.description>
   <tmpl_var xml.channel.item.description><br>
</tmpl_if>

</li></ul>
</tmpl_loop>

<!-- RSS 1.0 Feed Items -->
<tmpl_loop xml.item>
<br>
<ul><li>

<!-- Item title -->
<tmpl_if xml.item.title>
   <tmpl_if xml.item.link>
      <a href="<tmpl_var xml.item.link>" target="_blank">
         <tmpl_var xml.item.title>
      </a>
   <tmpl_else>
      <tmpl_if xml.item.guid>
         <a href="<tmpl_var xml.item.guid>" target="_blank">
            <tmpl_var xml.item.title>
         </a> 
      <tmpl_else> 
         <tmpl_var xml.item.title>
      </tmpl_if>
  </tmpl_if>
<br>
</tmpl_if>
<!-- Item description -->
<tmpl_if xml.item.description>
   <tmpl_var xml.item.description><br>
</tmpl_if>

</li></ul>
</tmpl_loop>

<!-- RDF Feed Items -->
<!-- http://www.perlmonks.org/headlines.rdf uses this format -->
<tmpl_loop xml.rdf.item>
<br>
<ul><li>

<!-- Item title -->
<tmpl_if xml.rdf.item.title>
   <tmpl_if xml.rdf.item.link>
      <a href="<tmpl_var xml.rdf.item.link>" target="_blank">
         <tmpl_var xml.rdf.item.title>
      </a>
   <tmpl_else>
      <tmpl_if xml.rdf.item.guid>
         <a href="<tmpl_var xml.rdf.item.guid>" target="_blank">
            <tmpl_var xml.rdf.item.title>
         </a> 
      <tmpl_else> 
         <tmpl_var xml.rdf.item.title>
      </tmpl_if>
  </tmpl_if>
<br>
</tmpl_if>
<!-- Item description -->
<tmpl_if xml.rdf.item.description>
   <tmpl_var xml.rdf.item.description><br>
</tmpl_if>

</li></ul>
</tmpl_loop>

 
"
4ehab: "
Ehab Heikal

www.valuecms.com

Quote: An eye for an Eye only helps make the whole world blind

Gandhi

 
"
4aaronp: "WG v6 consolidated many remote file features into the Syndicated Content and Web Services Client Wobjects.  I have used XML Client in the past to work with raw remote XML files, and I liked it's control.  Is there a version of XML Client for the new v6 series, or is that functionality now built into Syndicated Content and/or Web Services Client?  I'm looking to be able to handle custom remote XML files."
DownloadXMLClient.tar.gz XMLClient.tar.gz
LinksNo Support Offered
Statistics Downloads: 371
Views: 7200
Rating: 4
Updated: 8/12/2005
Keywords Assets
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved