Re: Gobo , XML and special character ? and so on

"Franck Arnaud" <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
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: gobo-eiffel-unsubscribe-B11MqFFcr06IwRZHo2/[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.