Página 1 de 1

GPF error on oXmlNode:cData

Publicado: Mié May 21, 2008 11:23 pm
por Gejza Horvath
Hi,
to parse the xml file I use this code fragment:
oXmlNode := :FindFirst("produkt" )
::oMemo2:Clear()
DO WHILE oXmlNode <> Nil
::oMemo2:Append(oXmlNode:aAttributes["kod_produktu"] + " " +;
oXmlNode:aAttributes["nazov_produktu"] + CRLF)
::oMemo2:Append(oXmlNode:cData)
oXmlNode := :FindNext()
ENDDO
I get a GPF error (see attachment) executing the line
::oMemo2:Append(oXmlNode:cData)
The previous line writes the attributes value to the memo without problem.
Any other attempts to use the oXmlNode:cData property fails too. Is this behaviour a bug?
Xailer version 1.9.3.
Gejza Horvath


Attached files

GPF error on oXmlNode:cData

Publicado: Jue May 22, 2008 7:20 am
por ignacio
Gejza,
Instead of the call the TMemo:Append() try with this:
Logdebug( Valtype( cText ), cText )
To see if correctly you are sending a string to the method.
Regards,
Ignacio Ortiz de Zúñiga
[Xailer support]
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=4834849e@ozsrv2.ozlan.local...]4834849e@ozsrv2.ozlan.local...[/email]
> Hi,
> to parse the xml file I use this code fragment:
>
> oXmlNode := :FindFirst("produkt" )
> ::oMemo2:Clear()
> DO WHILE oXmlNode <> Nil
>
> ::oMemo2:Append(oXmlNode:aAttributes["kod_produktu"] + " "
> +;
> oXmlNode:aAttributes["nazov_produktu"] +
> CRLF)
>
> ::oMemo2:Append(oXmlNode:cData)
> oXmlNode := :FindNext()
> ENDDO
>
> I get a GPF error (see attachment) executing the line
> ::oMemo2:Append(oXmlNode:cData)
>
> The previous line writes the attributes value to the memo without problem.
>
> Any other attempts to use the oXmlNode:cData property fails too. Is this
> behaviour a bug?
> Xailer version 1.9.3.
>
> Gejza Horvath
>
>
>
>

GPF error on oXmlNode:cData

Publicado: Jue May 22, 2008 7:20 am
por NoName
Gejza,
Instead of the call the TMemo:Append() try with this:
Logdebug( Valtype( cText ), cText )
To see if correctly you are sending a string to the method.
Regards,
Ignacio Ortiz de Zúñiga
[Xailer support]
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=4834849e@ozsrv2.ozlan.local...]4834849e@ozsrv2.ozlan.local...[/email]
> Hi,
> to parse the xml file I use this code fragment:
>
> oXmlNode := :FindFirst("produkt" )
> ::oMemo2:Clear()
> DO WHILE oXmlNode <> Nil
>
> ::oMemo2:Append(oXmlNode:aAttributes["kod_produktu"] + " "
> +;
> oXmlNode:aAttributes["nazov_produktu"] +
> CRLF)
>
> ::oMemo2:Append(oXmlNode:cData)
> oXmlNode := :FindNext()
> ENDDO
>
> I get a GPF error (see attachment) executing the line
> ::oMemo2:Append(oXmlNode:cData)
>
> The previous line writes the attributes value to the memo without problem.
>
> Any other attempts to use the oXmlNode:cData property fails too. Is this
> behaviour a bug?
> Xailer version 1.9.3.
>
> Gejza Horvath
>
>
>
>