Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xmltocursor xml parse error node
Message
De
06/08/2008 10:03:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01330640
Message ID:
01336865
Vues:
24
Thanks. I found it.


>Debra,
>
>Your parameters in AT function are switched.
>See
>http://msdn.microsoft.com/en-us/library/h0zw37w7.aspx
>
>You need
>
> lnPosition = AT([fieldname="ADDRESS"],lcstring)
>
>>I decided to bring the data in my xfdf file into my app using lcstring = filetostr(nys.xfdf)
>>So now lcstring has all the data.
>>
>>
>>I wrote a parsing routine to find a field, fieldname="ADDRES", remove the value of this field and replace the value with tccursor.address.
>>
>>Then I use strtofile(lcstring, nys.xfdf) to update the xfdf for display in my app using the adobe reader.
>>
>>
>>**********************************************************************
>>Everything seems to be working except the parsing.
>>
>>I use lnposition = AT(lcstring, fieldname="ADDRESS") to find the address field.
>>
>>lnposition is coming back 0.
>>
>>The len of lcstring looks good and the contents of lcstring looks good, too.
>>
>>Do you know what the problem is here?
>>
>>**********************************************************************
>>
>>
>>>Neither displays XML correctly for different reasons. Why not use VFP MODIFY FILE command?
>>>
>>>
>>>>If I open the file in the internet explorer, I see the dashes.
>>>>
>>>>If I open the file in the notepad, it looks like this:
>>>>
>>><snip>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform