Re: [gobo-eiffel] Gobo , XML an d special character é and so on

Jocelyn <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
Thank you for the precision
and for the "éèà" ... I realized I had a remaining (almost hidding)  
'set_string_mode_ascii'
and then of course .. any é would raise an error
This small mistake of mine, had a good side, I realized there is also 
'set_string_mode_latin1'

For the CDATA ... I'll try what you suggest, but as you say, the default 
escaping is fair enought
anyway the CDATA could help optimizing xml data for time to time.

Thanks again
Jocelyn

On 11-Mar-2005 12:18, Franck Arnaud wrote:

>Jocelyn:
>
>  
>
>>1) Is there a way with the XM_NODE classes ... to generate  "<![CDATA[ 
>>my text ]]>" ?
>>    
>>
>
>Redefine XM_PRETTY_PRINT_FILTER.on_content. (See 
>XM_FORMATTER.process_document to use it from a tree.)
>
>You may want to use a XM_CONTENT_CONCATENATOR in your 
>event pipe to avoid having multiple successive CDATAs,
>as the parser is entitled to split a text sequence 
>anywhere into multiple on_content events.
>
>You could also have an heuristics there to use CDATA 
>only when there's lot of '<' or the like and regular 
>escaping the rest of the time.
>
>And don't forget to deal with "]]>"!
>
>  
>
>>I noticed for "<>&..." Gobo xml will escape them into  &lt; &gt; 
>>and so  on ...
>>    
>>
>
>It's a fair default I think.
>
>  
>
>>2) Does GOBO/XML support special character like   "é" in the XML text 
>>    
>>
>
>Of course, you have to set your editor to save UTF8, or have an 
>explicit xml declaration to declare latin1:
>
><?xml version='1.0' encoding='iso-8859-1?>
>
>at the beginning of your XML file.
>
>
>
>To Post a message, send it to:   [email protected]
>To Unsubscribe, send a blank message to: [email protected] 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.