Add Xml declaration even for such document that lacks XDeclaration.
commitcee1998d089e837aac34cb250b734e7ea792a9f3
authorAtsushi Eno <atsushi@ximian.com>
Mon, 14 May 2012 08:24:32 +0000 (14 17:24 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Mon, 14 May 2012 08:24:32 +0000 (14 17:24 +0900)
tree0f156995fb4f814b19d6dee6415e020fd9622121
parentcac72ba927856f973821fd4eb6000307e6fb43f5
Add Xml declaration even for such document that lacks XDeclaration.

Fixed bug #4850.
mcs/class/System.Xml.Linq/System.Xml.Linq/XDocument.cs
mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XDocumentTest.cs