Re: xml problem with monodoc

Jonathan Pryor <[email protected]>
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
On Mon, 2006-06-19 at 23:17 +0200, Alexandre Grin wrote:
> string ui_info = 
>             "  <menubar>\n" +
>             "    <menu name=\"MenuFile\" action=\"firstMenu\" >\n" +
...
> But Monodoc doesn't like it because there are xml structure in it...
> Does anyone know how I can get the stuff?

Escape the XML by using &lt; for '<', &amp; for '&', , &gt; for
'>' (which isn't always necessary), etc.  Thus:

	string ui_info = 
	  "  &lt;menubar>\n" +
	  "    &lt; menu name=\"MenuFile\" action=\"firstMenu\" >\n" +
	  ...

 - Jon


_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list
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.