Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmltocursor xml parse error node
Message
From
14/07/2008 13:59:34
 
 
To
11/07/2008 13:45:55
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:
01331132
Views:
19
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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform