Francis-

I think that you have to URL encode the content you are inserting, or wrap it in a [CDATA] tag - but hopefully someone else will weigh in on it as I haven't worked with XML and Witango a whole lot yet.

Jason

Jason Pamental
Director of Web Services
North Sails

Office: 401.643.1415
Fax: 401.643.1420
Mobile: 401.743.4406
Email: [EMAIL PROTECTED]




Francis Lebourq wrote:
Hi

I have an issue with <@DOMINSERT> command and accentuated characters (like éèàî...)

This code works fine

---------------------------------------------
<@DOMINSERT OBJECT=myDom SCOPE=request>
<xml version="1.0" encoding="iso-8859-1" standalone="no">
    <DIV ID="1">
    <P>Ceci est une exemple de Document structure</P>
    </DIV>

    <DIV ID="2">
    <P>Paragraphe de texte de test</P>
    <P>Suite du paragraphe de texte de test</P>
    </DIV>
</xml>
</@DOMINSERT>

@@request$myDom
---------------------------------------------

because there is no accentuated characters.

But this code ...
---------------------------------------------
<@DOMINSERT OBJECT=myDom SCOPE=request>
<xml version="1.0" encoding="iso-8859-1" standalone="no">
    <DIV ID="1">
<P>Ceci est une exemple de Document structuré</P> <<<< the diff is here
    </DIV>

    <DIV ID="2">
    <P>Paragraphe de texte de test</P>
    <P>Suite du paragraphe de texte de test</P>
    </DIV>
</xml>
</@DOMINSERT>

@@request$myDom
---------------------------------------------

return an Error -902
An error occurred while parsing the XML.
Meta Stack Trace:
Line    Meta Tag
0002 <@DOMINSERT OBJECT=myDom SCOPE=request> <xml version="1.0" encoding="iso-8859-1" standalone="no"> <DIV ID="1"> <P>Ceci est une exemple de Document structuré</P> </DIV> <DIV ID="2"> <P>Paragraphe de texte de test</P> <P>Suite du paragraphe de texte de test</P> </DIV> </xml> </@DOMINSERT> *The meta stack is interpreted top-to-bottom: the top line shows the inner metatag that caused the error.



I have read the archives of the mailing list but i have get nothing.

I have forgot something ?

Regards

Francis LEBOURQ

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Visit us at http://www.northsails.com

[This E-mail scanned for viruses by Declude Virus]

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to