[Mono-list] XML Serialization Problems

Rob no@thanks.org
27 Jun 2003 23:48:24 +0200


How do I serialize an array so that it produces:
<doc>
	<widget />
	<widget />
	<widget />
</doc>
instead of:
<doc>
	<inventory>
		<widget />
		<widget />
		<widget />
	</inventory>
</doc>

I'v got some code that works alright, except that I need to nix the
container for teh widget's while still processing it's internals. Is
there a tag I could use for this? Alternatively, I can nix the doc and
just use inventory as the root, but then I'd have to find a way to
assign attributes to it...any ideas for a newbie?

Thanks,
Rob J. Caskey