Hello,

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,
                "http://whatever.org/XMLSchema/foo.xsd";);

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

Atsushi Eno
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to