You can embed a HMG RSS? / Se puede incrustar un RSS en HMG?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
andyglezl
Posts: 1251
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 39 times
Been thanked: 107 times
Contact:

You can embed a HMG RSS? / Se puede incrustar un RSS en HMG?

Post by andyglezl »

Hello again!

As the title says, It could embed or somehow
an RSS feed in our program HMG?

Someone already did something or some idea of ​​how to do it?

Thank you.
-------------------------------------------------------------
Hola de nuevo !

Como dice el titulo, Se podra incrustar o hacer de alguna forma
un RSS dentro de nuestro programa HMG ?

Alguien ya hizo algo ó alguna idea de como hacerlo ?

Gracias.
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
danielmaximiliano
Posts: 2359
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 434 times
Been thanked: 84 times
Contact:

Post by danielmaximiliano »

Hola andrés: tienes un ejemplo aqui

http://sites.google.com/site/hblibs/exe ... ects=0&d=1
RSS newsreader

This program downloads the lists in RSS format and displays real-time news. It is a feature that in practical terms should have little use, but it might be interesting in order to understand the mechanism to download content via remote HTTP protocol. In addition it also serves as an example of using classes for manipulating XML files.

Nothing prevents further that an additional option to be placed within an existing system, allowing the user to read a news feed that he register.

To spice, also used some functions to manipulate the colors of the screen, which can be seen as below, was quite different from the default.

Summary of the tools involved:
Libraries:
hbtip - Connecting via http to download the XML file
XHB - Functions for manipulating the XML file
Classes:
TIPClientHTTP - httpcli.prg
TXMLDocument - txml.prg
TXmlIterator - txml.prg


http://sites.google.com/site/hblibs/exe ... ects=0&d=1
tienes todo lo necesario para poder trabajar con RSS. recuerda que faltan librerias para incluir, posiblemente tambien tengas que instalar OpenSSL la version Light.
cualquier cosa escribe tus dudas, sino te parece claro puedes trabajar con ActiveX.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

User avatar
andyglezl
Posts: 1251
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 39 times
Been thanked: 107 times
Contact:

Post by andyglezl »

Gacias Daniel !

Voy a revisar la info y luego comento.
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
andyglezl
Posts: 1251
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 39 times
Been thanked: 107 times
Contact:

Post by andyglezl »

Hola

Daniel, demasiada información para "tomarla de un solo trago"

Leí acerca del "Wget.exe" http://es.wikipedia.org/wiki/GNU_Wget

Voy a experimentar con este programa y ver si cubre las necesidades actuales.

Gracias por tu tiempo.

-------------------------------------------------------------------------------
Hello

Daniel, too much information to "take it in a single gulp"

I read about "wget.exe" http://es.wikipedia.org/wiki/GNU_Wget

I will experiment with this program and see if it meets current needs.

Thanks for your time.
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
danielmaximiliano
Posts: 2359
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 434 times
Been thanked: 84 times
Contact:

Post by danielmaximiliano »

enviame la pagina del RSS y voy a tratar de aplicarlo al enlace que te envie..
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

User avatar
andyglezl
Posts: 1251
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 39 times
Been thanked: 107 times
Contact:

Post by andyglezl »

Gracias Daniel

Te cuento un poco de historia...

Resulta que el cliente, preguntaba si se podria tener información dentro del programa (HMG)
de cotización del dolar, Pronóstico del Tiempo, etc. (necesidad en 1er. entrevista) por eso pense en lo del RSS.

Luego, que además se pudieran bajar archivos de su página, pero sin que estuvieran a la vista ( otra necesidad )

Luego, que desde una liga de Skydrive se pudieran descargar archivos entre sucursales (otra necesidad )

En fin, como muchos, queria "matar varios pajaros de una pedrada"

Por eso hice la pregunta del RSS basado en la primer necesidad, pero dejame ver el panorama completo de lo que
pretende y luego presentar la cotización, que es ahí donde luego dicen que NO. pero gracias por tu ofrecimiento.

-----------------------------------------------------------------------------------------------------------

Thanks Daniel

I'll tell you a little story ...

It turns out that the client might have wondered if information within the program (HMG)
quotation of the dollar, Weather Forecast, etc.. (need in 1st. interview) so I thought about what the RSS.

Then you could also download files from your page, but they were in sight (other needs)

Then, that from a Skydrive link could download files between branches (another necessity)

Anyway, like many, he wanted to "kill several birds with one stone"

So I asked the question of the RSS based on first necessity, but let me see the whole picture of what
aims and then submit the quote, which is where then say NO. but thanks for your offer.
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
Rathinagiri
Posts: 5323
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 200 times
Been thanked: 210 times
Contact:

Post by Rathinagiri »

RSS feed is nothing but an XML file. We have MiniXML library to interface xml files. We can categorically move between the XML tree and nodes easily if we know the schema of the RSS feed.



For example, if you see our forum's RSS (feed.php), an XML file like the below will be created.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://hmgforum.com/feed.php" />

<title>HMGforum.com</title>
<subtitle>Exclusive forum for HMG, a Free / Open Source xBase WIN32 / GUI Development System</subtitle>
<link href="http://hmgforum.com/index.php" />
<updated>2013-06-04T08:43:48+05:30</updated>

<author><name><![CDATA[HMGforum.com]]></name></author>
<id>http://hmgforum.com/feed.php</id>
<entry>
<author><name><![CDATA[Rathinagiri]]></name></author>
<updated>2013-06-04T08:43:48+05:30</updated>
<published>2013-06-04T08:43:48+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2903&p=27178#p27178</id>
<link href="http://hmgforum.com/viewtopic.php?t=2903&p=27178#p27178"/>
<title type="html"><![CDATA[PDF Generation • Re: Problema con HaruPDF]]></title>

<category term="PDF Generation" scheme="http://hmgforum.com/viewforum.php?f=40" label="PDF Generation"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2903&p=27178#p27178"><![CDATA[
HMGpdf unicode is not yet supported. We (Claudio and myself) had checked and tried to ANSI version to Unicode and failed. But trying...<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=53">Rathinagiri</a> — Tue Jun 04, 2013 8:43 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pablo César]]></name></author>
<updated>2013-06-04T03:03:38+05:30</updated>
<published>2013-06-04T03:03:38+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2903&p=27177#p27177</id>
<link href="http://hmgforum.com/viewtopic.php?t=2903&p=27177#p27177"/>
<title type="html"><![CDATA[PDF Generation • Acentuação com a hmg_hpdf]]></title>

<category term="PDF Generation" scheme="http://hmgforum.com/viewforum.php?f=40" label="PDF Generation"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2903&p=27177#p27177"><![CDATA[
<div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-quote" width="100%"><div class="quotetitle">Rathinagiri wrote:</div><div class="quotecontent"><br />Actually, what is your problem?<br /></div></td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div>The problem is not making brazilian or spanish accents (especial characters from the language). I have tested in HMG 3.0.46 and 3.1.3 in UNICODE and ANSI code. But sadly, do not work with accents with harupdf.<br /><br />This is a code example:<br /><div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-code" width="100%"><div class="codetitle"><b>Code:</b></div><div class="codecontent">#include <hmg.ch><br />#include "HFCL.CH"<br /><br />Function Main<br />// SET LANGUAGE TO PORTUGUESE<br />define window main at 0, 0 width 300 height 300 main title 'HMG HPDF Document'<br />   define button create<br />   row 100<br />   col 90<br />   width 120<br />   caption 'HMG HPDF DOC'<br />   action pdf_create()<br />   <br />   end button<br />   on key escape action thiswindow.release<br />end window<br />main.center<br />main.activate<br />Return nil<br /><br />function pdf_create<br />   local lSuccess := .f.<br />   local cContent, cSyntax<br />   local cLB := chr( 10 )<br /><br />   SELECT HPDFDOC 'HMG_HPDF_Doc.pdf' TO lSuccess papersize HPDF_PAPER_A4<br />   SET HPDFDOC COMPRESS ALL<br />   SET HPDFDOC PAGEMODE TO OUTLINE<br />   SET HPDFINFO AUTHOR      TO 'S. Rathinagiri'<br />   SET HPDFINFO CREATOR     TO 'S. Rathinagiri'<br />   SET HPDFINFO TITLE       TO 'HMG_HPDF Documentation'<br />   SET HPDFINFO SUBJECT     TO 'Documentation of LibHaru/HPDF Library in HMG'<br />   SET HPDFINFO KEYWORDS    TO 'HMG, HPDF, Documentation, LibHaru, Harbour, MiniGUI'<br />   SET HPDFINFO DATECREATED TO date() TIME time()<br />   if lSuccess<br />      START HPDFDOC<br />         START HPDFPAGE<br />            @ 126,  10 HPDFPRINT IMAGE "hmghpdf.png" WIDTH 190 HEIGHT 46<br />         END HPDFPAGE   <br />         START HPDFPAGE<br />            SET HPDFDOC PAGEOUTLINE TITLE "Introduction" <br />            Draw_HeaderBox()<br />            Print_Header( "HMG_HPDF Introdução / Intoducción" )<br />            cContent := "      HMG_HPDF is a small library to create PDF documents in a simple way using xBase syntax. " + ;<br />                        "Output from HMG programs can be exported to PDF with HMG PRINT like commands. Apart from HMG PRINT " +;<br />                        "features this library has some additional features also." + ;<br />                        cLB + ;<br />                        cLB + ;<br />                        "      It is based on HPDF in Harbour. HPDF is originally ported from LibHaru to Harbour." +;<br />                        cLB + ;<br />                        cLB + ;<br />                        "USAGE:" + ;<br />                        cLB + ;<br />                        cLB + ;<br />                        "      Just by including the following line into the initial lines of the HMG code, the commands discussed in this" + ;<br />                        " document can be used. " + ;<br />                        cLB + ;<br />                        cLB + ;<br />                        '#include "hmg_hpdf.ch"'<br />            Print_Content( cContent )<br />         END HPDFPAGE<br />         <br />      END HPDFDOC<br />   endif   <br />   execute file 'HMG_HPDF_Doc.pdf'<br />   <br />return nil<br /><br />static function Draw_HeaderBox<br />   @  10,  10 HPDFPRINT RECTANGLE TO  40, 200 COLOR { 50, 50, 255 } FILLED<br />return nil<br /><br />static function Print_Header( cHeader )   <br />   @  30, 105 HPDFPRINT cHeader SIZE 30 COLOR { 255, 255, 0 } CENTER<br />return nil<br /><br />static function Print_Content( cContent) <br />   @  50,  10 HPDFPRINT  cContent TO 120, 200 //JUSTIFY<br />return nil</div></td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div><br />Look at this is wrong characteres displayed:<br /><div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-attach" width="100%">Screen93.PNG</td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div><br />And this is the right ones to be displayed (this was made by PaintBrush):<br /><div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-attach" width="100%">Screen94.PNG</td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div><br />So it is somthing wrong and now with UNICODE most probably will be so usefull if accents characters could be displayed in good order...<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=14760">Pablo César</a> — Tue Jun 04, 2013 3:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[andyglezl]]></name></author>
<updated>2013-06-04T01:32:20+05:30</updated>
<published>2013-06-04T01:32:20+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2983&p=27176#p27176</id>
<link href="http://hmgforum.com/viewtopic.php?t=2983&p=27176#p27176"/>
<title type="html"><![CDATA[HMG General Help • Re: You can embed a HMG RSS? / Se puede incrustar un RSS en ]]></title>

<category term="HMG General Help" scheme="http://hmgforum.com/viewforum.php?f=5" label="HMG General Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2983&p=27176#p27176"><![CDATA[
Gracias Daniel<br /><br />Te cuento un poco de historia...<br /><br />Resulta que el cliente, preguntaba si se podria tener información dentro del programa (HMG)<br />de cotización del dolar, Pronóstico del Tiempo, etc.  (necesidad en 1er. entrevista) por eso pense en lo del RSS.<br /><br />Luego, que además se pudieran bajar archivos de su página, pero sin que estuvieran a la vista ( otra necesidad )<br /><br />Luego, que desde una liga de Skydrive se pudieran descargar archivos entre sucursales (otra necesidad )<br /><br />En fin, como muchos, queria "matar varios pajaros de una pedrada" <br /><br />Por eso hice la pregunta del RSS basado en la primer necesidad, pero dejame ver el panorama completo de lo que <br />pretende y luego presentar la cotización, que es ahí donde luego dicen que NO.  pero gracias por tu ofrecimiento.<br /><br />-----------------------------------------------------------------------------------------------------------<br /><br />Thanks Daniel<br /><br />I'll tell you a little story ...<br /><br />It turns out that the client might have wondered if information within the program (HMG)<br />quotation of the dollar, Weather Forecast, etc.. (need in 1st. interview) so I thought about what the RSS.<br /><br />Then you could also download files from your page, but they were in sight (other needs)<br /><br />Then, that from a Skydrive link could download files between branches (another necessity)<br /><br />Anyway, like many, he wanted to "kill several birds with one stone"<br /><br />So I asked the question of the RSS based on first necessity, but let me see the whole picture of what<br />aims and then submit the quote, which is where then say NO. but thanks for your offer.<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=106610">andyglezl</a> — Tue Jun 04, 2013 1:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[danielmaximiliano]]></name></author>
<updated>2013-06-04T00:57:17+05:30</updated>
<published>2013-06-04T00:57:17+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2983&p=27175#p27175</id>
<link href="http://hmgforum.com/viewtopic.php?t=2983&p=27175#p27175"/>
<title type="html"><![CDATA[HMG General Help • Re: You can embed a HMG RSS? / Se puede incrustar un RSS en ]]></title>

<category term="HMG General Help" scheme="http://hmgforum.com/viewforum.php?f=5" label="HMG General Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2983&p=27175#p27175"><![CDATA[
enviame la pagina del RSS y voy a tratar de aplicarlo al enlace que te envie..<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=9462">danielmaximiliano</a> — Tue Jun 04, 2013 12:57 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[andyglezl]]></name></author>
<updated>2013-06-04T00:39:54+05:30</updated>
<published>2013-06-04T00:39:54+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2983&p=27174#p27174</id>
<link href="http://hmgforum.com/viewtopic.php?t=2983&p=27174#p27174"/>
<title type="html"><![CDATA[HMG General Help • Re: You can embed a HMG RSS? / Se puede incrustar un RSS en ]]></title>

<category term="HMG General Help" scheme="http://hmgforum.com/viewforum.php?f=5" label="HMG General Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2983&p=27174#p27174"><![CDATA[
Hola<br /><br />Daniel, demasiada información para "tomarla de un solo trago"<br /><br />Leí acerca del "Wget.exe"  <a href="http://es.wikipedia.org/wiki/GNU_Wget" class="postlink">http://es.wikipedia.org/wiki/GNU_Wget</a><br /><br />Voy a experimentar con este programa y ver si cubre las necesidades actuales.<br /><br />Gracias por tu tiempo.<br /><br />-------------------------------------------------------------------------------<br />Hello<br /><br />Daniel, too much information to "take it in a single gulp"<br /><br />I read about "wget.exe"  <a href="http://es.wikipedia.org/wiki/GNU_Wget" class="postlink">http://es.wikipedia.org/wiki/GNU_Wget</a><br /><br />I will experiment with this program and see if it meets current needs.<br /><br />Thanks for your time.<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=106610">andyglezl</a> — Tue Jun 04, 2013 12:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[andyglezl]]></name></author>
<updated>2013-06-04T00:18:01+05:30</updated>
<published>2013-06-04T00:18:01+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=2903&p=27173#p27173</id>
<link href="http://hmgforum.com/viewtopic.php?t=2903&p=27173#p27173"/>
<title type="html"><![CDATA[PDF Generation • Re: Acentuação com a hmg_hpdf]]></title>

<category term="PDF Generation" scheme="http://hmgforum.com/viewforum.php?f=40" label="PDF Generation"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=2903&p=27173#p27173"><![CDATA[
Hola <br /> Yo no pude resolverlo, seguí con la impresión normal sin crear PDF. <br />Utilizé HB_OEMTOANSI, HB_ANSITOOEM y sigue el problema. <br />Todas las palabras que llevan acento y Ñ ñ las cambia. (estoy con HMG 3.46)<br /><br /><a href="http://www.hmgforum.com/viewtopic.php?f=40&t=2903&p=26116&hilit=HaruPDF#p26116" class="postlink">http://www.hmgforum.com/viewtopic.php?f=40&t=2903&p=26116&hilit=HaruPDF#p26116</a><br /><br />Hello<br />  I could not solve it, I continued with normal printing without creating PDF.<br />Use HB_OEMTOANSI, HB_ANSITOOEM and still the problem.<br />All words with accents and ñ Ñ the changes. (I'm with HMG 3.46)<br /><br /><a href="http://www.hmgforum.com/viewtopic.php?f=40&t=2903&p=26116&hilit=HaruPDF#p26116" class="postlink">http://www.hmgforum.com/viewtopic.php?f=40&t=2903&p=26116&hilit=HaruPDF#p26116</a><p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=106610">andyglezl</a> — Tue Jun 04, 2013 12:18 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[esgici]]></name></author>
<updated>2013-06-03T22:14:43+05:30</updated>
<published>2013-06-03T22:14:43+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=3002&p=27172#p27172</id>
<link href="http://hmgforum.com/viewtopic.php?t=3002&p=27172#p27172"/>
<title type="html"><![CDATA[Forum Help • Re: Closed topics]]></title>

<category term="Forum Help" scheme="http://hmgforum.com/viewforum.php?f=13" label="Forum Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=3002&p=27172#p27172"><![CDATA[
<div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-quote" width="100%"><div class="quotetitle">Rathinagiri wrote:</div><div class="quotecontent"><br />General is not HMG related. So, it is not shown to public.<br /></div></td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div><br />Again I don't understand relation between "HMG related" and "Shown to public." <img src="http://hmgforum.com/images/smilies/icon_e_sad.gif" alt=":(" title="Sad" /><br /><br />But understand why some topics are closed to guests <img src="http://hmgforum.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /><br /><br />Thanks to clarification.<br /><br />Regards<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=56">esgici</a> — Mon Jun 03, 2013 10:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Rathinagiri]]></name></author>
<updated>2013-06-03T21:31:46+05:30</updated>
<published>2013-06-03T21:31:46+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=3002&p=27171#p27171</id>
<link href="http://hmgforum.com/viewtopic.php?t=3002&p=27171#p27171"/>
<title type="html"><![CDATA[Forum Help • Re: Closed topics]]></title>

<category term="Forum Help" scheme="http://hmgforum.com/viewforum.php?f=13" label="Forum Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=3002&p=27171#p27171"><![CDATA[
You can read this announcement.<br /><br /><!-- l --><a class="postlink-local" href="http://hmgforum.com/viewtopic.php?f=13&t=1407">viewtopic.php?f=13&t=1407</a><!-- l --><p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=53">Rathinagiri</a> — Mon Jun 03, 2013 9:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Rathinagiri]]></name></author>
<updated>2013-06-03T21:24:28+05:30</updated>
<published>2013-06-03T21:24:28+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=3002&p=27170#p27170</id>
<link href="http://hmgforum.com/viewtopic.php?t=3002&p=27170#p27170"/>
<title type="html"><![CDATA[Forum Help • Re: Closed topics]]></title>

<category term="Forum Help" scheme="http://hmgforum.com/viewforum.php?f=13" label="Forum Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=3002&p=27170#p27170"><![CDATA[
General is not HMG related. So, it is not shown to public. <br /><br />HMG4 is now opened. I think sometime when the host server is changed the permissions got changed and I had forgotten to restore.<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=53">Rathinagiri</a> — Mon Jun 03, 2013 9:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[esgici]]></name></author>
<updated>2013-06-03T21:01:57+05:30</updated>
<published>2013-06-03T21:01:57+05:30</published>
<id>http://hmgforum.com/viewtopic.php?t=3002&p=27169#p27169</id>
<link href="http://hmgforum.com/viewtopic.php?t=3002&p=27169#p27169"/>
<title type="html"><![CDATA[Forum Help • Re: Closed topics]]></title>

<category term="Forum Help" scheme="http://hmgforum.com/viewforum.php?f=13" label="Forum Help"/>
<content type="html" xml:base="http://hmgforum.com/viewtopic.php?t=3002&p=27169#p27169"><![CDATA[
<div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%"><tr><td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr><tr><td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td><td class="bb-content bb-quote" width="100%"><div class="quotetitle">Rathinagiri wrote:</div><div class="quotecontent"><br />Esgici,<br /><br />All the posts are open. Only that, they can't post.<br /></div></td><td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td></tr><tr><td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td><td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td></tr></table></div><br /><br />Sorry, not understood <img src="http://hmgforum.com/images/smilies/icon_e_sad.gif" alt=":(" title="Sad" /><br /><br />I can't see "HMG Version 4" and "General"  forums without login <img src="http://hmgforum.com/images/smilies/icon_e_sad.gif" alt=":(" title="Sad" /><br /><br />Regards<p>Statistics: Posted by <a href="http://hmgforum.com/memberlist.php?mode=viewprofile&u=56">esgici</a> — Mon Jun 03, 2013 9:01 pm</p><hr />
]]></content>
</entry>
</feed>
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5323
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 200 times
Been thanked: 210 times
Contact:

Post by Rathinagiri »

And, if you open the above junk of XML code in internet explorer or XML viewer, you can see the following structure.
hmgxmlschema.jpg
hmgxmlschema.jpg (132.79 KiB) Viewed 5121 times
You can see that the [feed] has 10 [entry] nodes and each [entry] node has a [content] sub-node among other sub-nodes.

In short, if we walk through [feed]->[entry]->[content] we can get to the RSS feed, that we can easily do by MiniXML library. This topic is relevant here.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
danielmaximiliano
Posts: 2359
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 434 times
Been thanked: 84 times
Contact:

Post by danielmaximiliano »

Hola Andy y todos en el grupo :

aqui les dejo el ejemplo del lector RSS, deje el origen del RSS ya que busque un sitio de noticas sobre Harbour pero no encontre ninguno.

Translate Google

Hi Andy and everyone in the group:

Here I give you the example of the RSS reader, let the origin of the RSS and to seek a site newswire on Harbour but did not find any.
Rss news.jpg
Rss news.jpg (63.57 KiB) Viewed 5072 times
Source :
Rss.rar
(186.65 KiB) Downloaded 201 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

User avatar
andyglezl
Posts: 1251
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 39 times
Been thanked: 107 times
Contact:

Post by andyglezl »

Hola Daniel

Me puse a experimentar con tu ejemplo del lector RSS, y me encontré
con 2 detalles.

1.- Tengo el mismo problema de acentos y Ññ al mostrar la información.
(tal vez me faltará algún "setting" como en la HaruPDF ?)

2.- Al parecer no es un estandar los nombres de etiquetas en el archivo .rss
ya que en varios que leí tiene "entry" en vez de "item" y "summary" en
vez de "description", el que concuerda es "title".
(no se si existan diferentes, alguien más ya lo probó ?)

anexo unas imagenes. Gracias
-------------------------------------------------------------------------
Hi Daniel

I began to experiment with your example of the RSS reader, and I found
2 details.

1. - I have the same problem of accents and Ññ to display the information.
(I might miss some "setting" as in HaruPDF?)

2.- Apparently there is not a standard tag names in the .Rss file
as several I read is "entry" instead of "item" and "summary" in
instead of "description" which is consistent "title"
(not sure if there are different, someone else already tried?)

attached some pictures. thanks
Attachments
RSS1.png
RSS1.png (26.88 KiB) Viewed 4992 times
RSS2.png
RSS2.png (72.02 KiB) Viewed 4992 times
RSS3.png
RSS3.png (194.76 KiB) Viewed 4992 times
Andrés González López
Desde Guadalajara, Jalisco. México.

Post Reply