Alaska Software Inc. - Problem with Var2Xml
Username: Password:
AuthorTopic: Problem with Var2Xml
Nestor G. TorresProblem with Var2Xml
on Tue, 14 Apr 2015 13:19:16 +0200
Hi
Hi All

How do I tell Var2xml not to include header and trailer <character> 
</Character>

example:

cvar:="<table Style='width:440px;height:165px'>"
cResult:= Var2xml(cVar)

*cResult comes back with:
<character>table Style=&#39;width:440px;height:165px&#39;&gt;</character>

I do not need :
<character> </Character>
and it's a pain to program around it

Kind regards
Nestor
Zdenko BielikRe: Problem with Var2Xml
on Tue, 14 Apr 2015 14:38:43 +0200
Hi,

try remove(replace with empty space) that words from result:

cVar:="<table Style='width:440px;height:165px'>"
cResult:= Var2xml(cVar)

cResult := StrTran( cResult, '<character> ', '' )
cResult := StrTran( cResult, '</character> ', '' )


HTH
         Zdeno
Nestor G. TorresRe: Problem with Var2Xml
on Tue, 14 Apr 2015 15:10:44 +0200
Hi Zdenko,

Thanks for the reply; but that is what i am trying to get away from. I 
do not want to use extra computer power to process the removal of these
tags that should not be there in the first place. Every processing 
machine cycle just slows my web page down; especially if I have to do it 
for each stock card being displayed.

Maybe the guys at Alaska have a solution or a fix for this. it worked
perfectly with CXPCPT4.

Kind regards
Nestor



On 2015/04/14 02:38 PM, "Zdenko Bielik" wrote:
> Hi,
>
> try remove(replace with empty space) that words from result:
>
> cVar:="<table Style='width:440px;height:165px'>"
> cResult:= Var2xml(cVar)
>
> cResult := StrTran( cResult, '<character> ', '' )
> cResult := StrTran( cResult, '</character> ', '' )
>
>
> HTH
>          Zdeno