Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLAdapter and Lead spaces.
Message
From
26/09/2005 12:19:23
 
 
To
26/09/2005 11:41:19
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052997
Message ID:
01053105
Views:
12
Devid,
If we can't do post-processing.. I try next way
AFIELDS(laFlds,lcTableAlias)
FOR lni=1 TO ALEN(laFlds,1)
IF INLIST(laFlds[lni,2],"C","M")
laFlds[lni,6] = .t. && NoCpTrans
ENDIF
ENDFOR

Create Cursror _tmp FROM ARRAY laFlds
APPEND FROM DBF(lcTableAlias)

and then I process with XMLAdapter. The memo fields are converted to Base64... the character fields stay as is. As I remember character(binary) fields must be converted to Base64... I check XMLField.NoCpTrans is .t. In Runtime before ToXML() method call I switch IsBase64 to .t. but no result...
Whats wrong?

Thanks
Denis.




>Denis,
>
>>Is there option for single field to preserve white space?
>
>I don't see a way to do that aside from some post-processing of the generated XML. The PreserveWhiteSpace property just wraps a property of the XMLDOM that applies to the entire document.
Previous
Reply
Map
View

Click here to load this message in the networking platform