Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xmltocursor xml parse error node
Message
 
 
À
16/07/2008 12:54:16
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:
01331709
Vues:
17
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>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform