PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → First time using XML
First time using XML
Débuté par issah, 01 fév. 2015 19:06 - 3 réponses
Posté le 01 février 2015 - 19:06
Yeah, I know about xml, but never used it. Need to extract the "Credit" tag from the result of an HttpGetResult() function below. I tried XmlData but get an error message. Any help would be appreciated

mixgh12503Mohammed Issah+233244246007mixgh@yahoo.com-50.00001245.00000.000022015-30-01 11:44:00rootActive

Thanks

issah
Posté le 02 février 2015 - 12:03
I did so (enough direct and simple way but you need to see an XML):

XML example:
<Response> <Category> <Node> </Node> </Category> </Response>
Code example:
clXml is xmlDocument = XMLOpen(sResult,fromString) // sResult is XML string IF ErrorOccured = True Error(...) END sNodeContent is string = clXml.Response.Category.Node..Text
Posté le 02 février 2015 - 12:07
issah,

A while ago I published some code in the solutions section of this forum; it interrogates the XML from an RSS feed:
<a class="ExternalLink" rel="nofollow" target="_blank" href="http://27130.foren.mysnip.de/read.php?27161,17206">http://27130.foren.mysnip.de/read.php&hellip;</a>

This might help to get you started?
Posté le 02 février 2015 - 19:20
Thanks for the responses. It seems the XML structure I provided was actually converted by the page, which is why I see a stream of data under my first post.

Lesson 1. I definitely have to convert the stream into a file before reading it.
Lesson 2. Since it will be a "single record", I can just refer to it with the dot notation..

Will have a go.

thanks and regards

issah