Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmltocursor xml parse error node
Message
From
16/07/2008 12:54:16
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01330640
Message ID:
01331704
Views:
18
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>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform