[Mono-list] Questions about writing an XML document

Atsushi Eno atsushi at ximian.com
Tue May 9 08:53:56 EDT 2006


> I tried out the workaround and it no longer throws an exception. The XML I
> get looks like this:
> <?xml version="1.0"?>
> <doc xmlns="http://whatever.org/XMLSchema/foo"
> d1p1:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:d1p1="schemaLocation">
>   <foo />
> </doc>
> That should for now. Although I'm not sure what the 'd1p1' part is coming
> from. That's just part of the workaround I guess?

Oops, sorry my bad. It should be:

	SetAttribute ("schemaLocation", XmlSchema.InstanceNamespace,

as its definition is SetAttribute(localName, namespaceURI, value).

Atsushi Eno

More information about the Mono-list mailing list