Necesito leer unas variables que me entregan en un fichero en formato XLM.
Existe alguna función para realizarlo.
#include "hbxml.ch"
cXML := memoread( "tufichero.xml")
oDoc := TXmlDocument():New( cXML )
if oDoc:nStatus != HBXML_STATUS_OK
cResponse := "Error While Processing File: " + AllTrim( Str( oDoc:nLine ) ) + " # "+;
"Error: " + HB_XmlErrorDesc( oDoc:nError ) + " # " +;
"Tag Error on tag: " + oDoc:oErrorNode:cName + " # " +;
"Tag Begin on line: " + AllTrim( Str( oDoc:oErrorNode:nBeginLine ) )
RETURN cResponse
endif
oNode := oDoc:FindFirst( "NODE" )
if oNode != NIL
? oNode:GetAttribute( "ra" ) // Devuelve jose
endif
oDoc := NIL
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 27 guests