RE: Gobo, XM_CALLBACKS on_content and special characters
"Neil Collier [ES]" <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <003701c557da$bb27ec50$b60a000a@roystonvasey> |
Hi, Sorry, first I should point out I am using the CVS ISE tag version of Gobo, since that may be an issue here. So... `a_doc' is just my internal document representation, for simplicity I might have just written: local l_string: STRING l_parser: XM_EIFFEL_PARSER l_html_filter: HTML_FILTER do if not retried then l_string := "<my_xml><my_tag>if 4 < 5</my_tag></my_xml>" create l_html_filter.make create l_parser.make l_parser.set_callbacks (l_html_filter) l_parser.set_string_mode_ascii l_parser.parse_from_string (l_string) Result := l_html_filter.output_string.twin else ... end end Out of interest, I there any documentation for this stuff? I could probably work it out from that if there is some. Regards, Neil > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Colin Paul Adams > Sent: Friday, May 13, 2005 9:31 AM > To: [email protected] > Subject: Re: [gobo-eiffel] Gobo, XM_CALLBACKS on_content and > special characters > > > >>>>> "Neil" == Neil Collier [ES] <Neil> writes: > > Neil> retried then l_string := a_doc.text.twin if not > > What is a_doc? > > Neil> My question is, that when I have an XML document that > Neil> contains escape characters in the tag content, i.e. > > Neil> <my_tag>if 4 < 5</my_tag> > > Neil> then what should I expect from Gobo in the 'on_content' > Neil> callback of XM_CALLBACKS? > > You should expect to see the STRING: "if 4 < 5" > You knew that though. > -- > Colin Adams > Preston Lancashire > > > 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/