Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xmltocursor xml parse error node
Message
De
14/07/2008 15:51:07
 
 
À
14/07/2008 13:59:34
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:
01331205
Vues:
14
dfroonj@optonline.net

xfdf into a cursor or a table that's what I need to do

thnaks so much for your help

deb

>Update, just noticed it doesn't post correctly on the UT. I'll have to email it to you...
>I've written and parsed xfdf files in the past. Are you stripping out the special and reserved chars first?
>
>
>FUNCTION XmlEncode
>LPARAMETERS teExpression
>
>*-- Transfrom 5 Known reserved XML characters only
>
>LOCAL lcReturn
>lcReturn = TRAN(teExpression)
>
>IF VARTYPE(teExpression) = 'C'
>	lcReturn = ALLTRIM(lcReturn)
>	lcReturn = STRTRAN(lcReturn, ' & ', ' & ')  && remove the spaces in all of these before using
>	lcReturn = STRTRAN(lcReturn, ' < ', ' < ')
>	lcReturn = STRTRAN(lcReturn, ' > ', ' > ')
>	lcReturn = STRTRAN(lcReturn, ' " ', ' " ')
>	lcReturn = STRTRAN(lcReturn, " ' ", ' &apos; ')
>	lcReturn = STRTRAN(lcReturn, " / ", ' / ')
>ENDIF
>
>RETURN lcReturn
>
>*-------------------------------------------------------------------------

>FUNCTION XMLDeCode
>LPARAMETERS cTXT
>LOCAL i,ch
>FOR i=1 TO 255
>  ch=ALLTRIM(STR(i))
>  cTXT=STRTRAN(cTXT,"&#"+ch+";",CHR(i))
>ENDFOR
>RETURN cTXT
>
>
>>Help.....
>>
>>I'm using adobe to create a file nys.xfdf.
>>
>>nys.xfdf is my pdf form with all my default data
>>
>>nyx.xfdf is an xml file. It looks like this:
>>
>>
>>
>>
>>
>>
>>
>>I can't seem to figure it out. Does anyone know how I can get this conversion to work?
>>
>>Thanks,
>>Deb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform