[Mono-docs-list] xml problem with monodoc

Jonathan Pryor jonpryor at vt.edu
Fri Jun 23 06:25:44 EDT 2006


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




More information about the Mono-docs-list mailing list