Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewBie with XML Trouble with UTF-16
Message
From
10/06/2008 12:13:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
NewBie with XML Trouble with UTF-16
Miscellaneous
Thread ID:
01322846
Message ID:
01322846
Views:
74
Hi all
I have to make a XML file with ?xml version="1.0" encoding="UTF-16" ?
My client give me a example of the file

I try to build the same file using
lcFile = 'C:\bidon.xml'

TEXT TO lcXml NOSHOW TEXT PRETEXT 7
<?xml version="1.0" encoding="UTF-16"?>
<forml_inscr_gmf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="R:\DEV\xml\Gmf\FORM_GMF.xsd" no_gmf="1127" no_cla_disp="1" no_disp="49040" dat_pris_efet_inscr="2004-03-03" no_doss="12345" no_cla_disp_resid="5" no_disp_resid="11124">
<pers_assu nom="Fournier" pre="Jacques" nam="FOUJ46121216" cod_sexe="M" cod_lang="fr" dat_naiss="1946-12-12">
<no_tel_bur no_post_tel="125">
<no_tel>5148495241</no_tel> 
</no_tel_bur>
</pers_assu>
</forml_inscr_gmf>
ENDTEXT

STRTOFILE(lcXml,lcFile)
When i try to open my Bidon.xml i got this message

The XML page can not be displayed
Unable to display the XML input using XSL stylesheet. Please correct the error, then click the Refresh button, or try again later.
-------------------------------------------------- ------------------------------
Name started with an invalid character. Error processing resource file: / / / C: / prem.xml. Line 1, Position 2
<
But if I write encoding="UTF-8" I can open the Bidon.xml file
The client need UTF-16

Is it ok to use Text endtext to creat my Xml

Any Idea


Benoit
Next
Reply
Map
View

Click here to load this message in the networking platform