FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
First time using XML
First time using XML
Débuté par issah, 01 fév. 2015 19:06 - 3 réponses
Connectez-vous…
issah
#1
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
Signaler
0
0
Arekusei Timakobu
#2
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
Signaler
0
0
DarrenF
#3
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…</a>
This might help to get you started?
Signaler
0
0
issah
#4
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
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte