i resolved it with one of two below ways :
1) :
add this below code at top of XML file :
Código: Seleccionar todo
<?xml version="1.0" encoding="windows-1256" ?>
2) :
i write my tags in a XML file with ANSI code page
then load that with TextFile.ReadToString and with below function give my Intended value
ArgDescription = Part(xml, "<Description>", 1);
ArgDescription = Part(ArgDescription, "</Description>", 1);
Código: Seleccionar todo
function Part(StringArgs, SeparatorArgs, PartArgs)
if (StringArgs == "" or SeparatorArgs == "" or PartArgs == "") then
return "nil";
end
Find = 1;
Item = {};
Length = String.Length(SeparatorArgs);
Number = 1;
while (Find > 0) do
Find = String.Find(StringArgs, SeparatorArgs, 1, false);
if (Find > 0) then
Item[Number] = String.Mid(StringArgs, 1, Find-1);
StringArgs = String.Mid(StringArgs, Find+Length, -1);
else
Item[Number] = StringArgs;
end
if (PartArgs <= Number) then
return Item[PartArgs];
end
Number = Number+1;
end
return "nil";
end