[Mono-dev] XmlException : DocumentType cannot be imported.

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Thu May 19 00:18:50 EDT 2011


Hello,

importNode() on DocumentType is invalid in DOM Level 2 Core 
specification[*1], that's why it had been rejected.

It can be now imported in git (master and mono-2-10).

[*1] http://www.w3.org/TR/DOM-Level-2-Core/core.html#i-Document

Atsushi Eno


(2011/05/18 21:05), Vincent DARON wrote:
> HI all,
>
> I've problem while cloning XmlDocument containing a DocumentType.
>
> Code to reproduce the error :
>
> //Sample file can be found at :
> http://www.recordare.com/sites/default/files/MozaVeilSample.xml
> XmlDocument doc = new XmlDocument();
> doc.Load("MozaVeilSample.xml");
> XmlNode d2 = doc.CloneNode(true);
>
> It works under MS Framework.NET 4.
>
> My mono setup:
> Mono JIT compiler version 2.10.2 (tarball Wed Apr 27 09:16:42 UTC 2011)
> Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
>       TLS:           __thread
>       SIGSEGV:       altstack
>       Notifications: epoll
>       Architecture:  amd64
>       Disabled:      none
>       Misc:          softdebug
>       LLVM:          supported, not enabled.
>       GC:            Included Boehm (with typed GC and Parallel Mark)
>
>
> Any help welcome !
>
> Regards,
>
> Vincent
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>



More information about the Mono-devel-list mailing list