Sobre xml

Sobre xml

Postby Wanderson » Tue Sep 20, 2016 12:59 pm

Olá,

Utilizo as funções para ler um xml:

xmlNode := xmlIter:Find('IE')
If xmlNode:cName = "IE"
IE_Des := Upper(xmlNode:cData)
Endif

Se a tag IE estiver vazia me causa erro em IE_Des := Upper(xmlNode:cData) e aborta o programa.
Como evitar?

Gracias.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Sobre xml

Postby Antonio Linares » Wed Sep 21, 2016 10:34 am

Haz MsgInfo( ValType( xmlNode:cData ) ) y dinos que valor muestra
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Sobre xml

Postby Wanderson » Wed Sep 21, 2016 5:30 pm

Antonio Linares wrote:Haz MsgInfo( ValType( xmlNode:cData ) ) y dinos que valor muestra


Muestra U si estas vazio e C se tem conteúdo.

Gracias.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Sobre xml

Postby karinha » Wed Sep 21, 2016 7:34 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests