Search found 24 matches: oroot

Return to advanced search

Re: PepPol European Invoicing standard

... Saludos Soy de la opinión que un XML debería tratarse con las funciones específicas para ello, por ejemplo: oDoc := TXMLDocument():New() oDoc:oRoot:AddBelow( TxmlNode():New( HBXML_TYPE_PI, 'xml' , , "version='1.0' encoding='ISO-8859-1'" ) ) oDocument := TxmlNode():New( HBXML_TYPE_TAG, ...
by FiveWiDi
Wed Feb 14, 2024 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PepPol European Invoicing standard
Replies: 12
Views: 925

Re: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )

... nXml ) IF oXmlDoc:nStatus != HBXML_STATUS_OK RETURN cRet ENDIF oNode := oXmlDoc:findfirst(cNodo) If oNode != Nil If lNodo xmlNode := oXmlDoc:oRoot:oChild WHILE xmlNode != NIL cPath := xmlNode:Path() If xmlNode:nType=5 cRet :=xmlNode:cData Exit EndIf xmlNode := xmlNode:NextInTree() ENDDO Else ...
by CARLOS ATUNCAR
Thu Apr 01, 2021 3:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: AYUDA PARA LEER XML DE FACTURA ELECTRONICA ( SOLUCIONADO )
Replies: 6
Views: 1380

New Class TXMLtoHash

... files / strings and convert to JSON-HASH //----------------------------------------------------------------------------// CLASS TXmlToHash DATA oRoot DATA hHash INIT { => } DATA cXml INIT "" DATA cXmlString INIT "" DATA cValString INIT "" DATA aPairsVals INIT ...
by cnavarro
Wed Aug 07, 2019 2:23 am
 
Forum: Utilities / Utilidades
Topic: New Class TXMLtoHash
Replies: 5
Views: 1939

XML help

... cStart := TIME() hFile := FOpen( cSource + cXmlFile ) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) WHILE .T. oTagActual = oXmlIter:Next() If oTagActual != nil cTagName := "" cTagData := "" IF (oTagActual:cName != nil) cTagName ...
by cdmmaui
Thu Jun 06, 2019 12:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML help
Replies: 2
Views: 491

Re: Validar respuesta desde un WEBSERVICE

... I Get Num - Data - Value 1 cHeader <Protected> 2 nError 0 3 nLine 1 4 nNodeCount 0 5 nStatus 1 6 oErrorNode 7 oIterator <Protected> 8 oRoot Any help will be appreciated
by Adolfo
Wed Jan 25, 2017 2:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Validar respuesta desde un WEBSERVICE
Replies: 6
Views: 2540

XML Read Problems

... cXmlFile := aXmlFile[1,1] hFile := FOpen( cSource + cXmlFile ) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) WHILE .T. oTagActual = oXmlIter:Next() If oTagActual != nil //MsgInfo( oTagActual:cName, oTagActual:cData ) // Init... cTagName := "" ...
by cdmmaui
Tue Apr 26, 2016 1:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XML Read Problems
Replies: 1
Views: 1055

Re: Factura Electronica Argentina - XML de la AFIP

... Main() local hFile := FOpen( "test.xml" ) Local oXmlDoc := TXmlDocument():New( hFile ) Local oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ), oTagActual while .T. oTagActual = oXmlIter:Next() If oTagActual != nil MsgInfo( oTagActual:cName, oTagActual:cData ) HEval( oTagActual:aAttributes, ...
by Enrrique Vertiz
Fri Jul 17, 2015 12:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Factura Electronica Argentina - XML de la AFIP
Replies: 6
Views: 1338

Re: DIREFENCIA ENTRE HARBOUR/XHARBOUR

... For more deails, see doc/hash.txt XML Support: ------------ hFile := FOpen( cFileName ) xmlDoc := TXmlDocument():New( hFile ) xmlNode := xmlDoc:oRoot:oChild cXml := xmlNode:Path() // there are methods to find nodes (but also attributes, values and data): xmlNode := xmlDoc:FindFirstRegex( cNode ...
by Antonio Linares
Sun Jul 12, 2015 9:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: DIREFENCIA ENTRE HARBOUR/XHARBOUR
Replies: 4
Views: 2282

Re: Error al leer XML

... subTotal="506.00" hFile := FOpen(Archivo2) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) oDatos:Blank() aDatos := {} oXmlNode := oXmlDoc:FindFirst( "Header" ) DO WHILE .T. oTagActual = oXmlIter:Next() If oTagActual != nil ...
by servicomver
Thu Jun 11, 2015 3:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al leer XML
Replies: 4
Views: 1563

Error al leer XML

... de leer un XML de la siguiente forma: hFile := FOpen(Archivo2) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) oDatos:Blank() aDatos := {} DO WHILE .T. oTagActual = oXmlIter:Next() If oTagActual != nil HEval( oTagActual:aAttributes, { | cKey, cValue | ...
by servicomver
Wed Jun 10, 2015 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al leer XML
Replies: 4
Views: 1563

Modificar data dentro de un XML

... abajo unas lineas con la idea : hFile := FOpen( cNomXml ) oXmlDoc := TXmlDocument():New( hFile ) oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ) while .T. oTagActual = oXmlIter:Next() If oTagActual != nil if alltrim(oTagActual:cName)=="cbc:IssueDate" // En este nodo quiero cambiar ...
by Enrrique Vertiz
Thu Feb 13, 2014 10:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Modificar data dentro de un XML
Replies: 1
Views: 460

Creacion / Modificacion de Archivos XML

... Main() local hFile := FOpen( "test.xml" ) Local oXmlDoc := TXmlDocument():New( hFile ) Local oXmlIter := TXmlIterator():New( oXmlDoc:oRoot ), oTagActual while .T. oTagActual = oXmlIter:Next() If oTagActual != nil MsgInfo( oTagActual:cName, oTagActual:cData ) HEval( oTagActual:aAttributes, ...
by Enrrique Vertiz
Thu Feb 06, 2014 6:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creacion / Modificacion de Archivos XML
Replies: 4
Views: 941

Creacion de archivo XML

... que para algunos (como Yo) no es muy facil de entender. Muchas gracias function Main() local oXml := TXmlDocument():New(), oNode oNode = oXml:oRoot:AddBelow( TXmlNode():New( 0, "FORM" ) ) oNode:AddBelow( TXmlNode():New( 0, "CAPTION",, "Hello world" ) ) oNode:AddBelow( ...
by Enrrique Vertiz
Sat Jun 29, 2013 3:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creacion de archivo XML
Replies: 3
Views: 954

Re: RECARGAS EN LINEA

... ) IF hFile == -1 MsgStop("Erro ao abrir arquivo:"+cFileName) Return Nil ENDIF xmlDoc := TXmlDocument():New( hFile ) xmlNode := xmlDoc:oRoot:oChild DO WHILE xmlNode != NIL cNome:=xmlNode:cName if cNome=='WS_Busc_ProjetosResult' cXMLRetorno:=xmlNode:cData endif xmlNode := xmlNode:NextInTree() ...
by ROBER68
Tue Jun 11, 2013 7:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: RECARGAS EN LINEA
Replies: 8
Views: 2570

Re: RECARGAS EN LINEA

... ) IF hFile == -1 MsgStop("Erro ao abrir arquivo:"+cFileName) Return Nil ENDIF xmlDoc := TXmlDocument():New( hFile ) xmlNode := xmlDoc:oRoot:oChild DO WHILE xmlNode != NIL cNome:=xmlNode:cName if cNome=='WS_Busc_ProjetosResult' cXMLRetorno:=xmlNode:cData endif xmlNode := xmlNode:NextInTree() ...
by Databaselab2002
Sun Jun 09, 2013 6:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: RECARGAS EN LINEA
Replies: 8
Views: 2570
Next

Return to advanced search