* XmlDefaultWriter.cs : add state management support.
* XmlWriter.cs : use above feature for "null Settings in source
writer" case. This brings some minor .NET compatibility and
should fix bug #607697.
* XmlWriterTests.cs : remove NotWorking everywhere.
svn path=/trunk/mcs/; revision=159714
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
and corcompare).
* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
wrapping writer instance.
If there was no Settings specified, return null.
* System.Xml.dll.sources,
moonlight_raw_System.Xml.dll.sources,
monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.
* XmlWriterTests.cs : add a bit more assertions.
Remove NotWorking from some tests.
svn path=/trunk/mcs/; revision=159712
* XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
ignores attributes and namespace decls, so do that.
* XQueryConvert.cs : removed extra stuff that are not in use.
* XmlWriterTests.cs : added WriteNodeXPathNavigatorAttribute().
svn path=/trunk/mcs/; revision=86546
* XmlWriter.cs : implemented WriteValue(object) based on
MSDN "Writing Typed Data" with some fix.
http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
* XmlTextWriter.cs : state check is extraneous. It caused unexpected
rejection of empty namespace URI.
* XmlWriterTests.cs : added test for WriteValue(object).
* XmlTextWriterTests.cs : added WriteQualifiedName() test with empty
namespace.
svn path=/trunk/mcs/; revision=86483
* XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
The previous attempt was wrong. Those internal-virtualized ones
could be used in System.Xml.Core classes and outside the assembly
any derived XmlReaders would have thrown throw Exception.
Now I marked them as nonexistent-in-2.1 or privatized.
* XmlWriter.cs : actually only this class is affected (if there
were DOM or XSD they would have been affected as well).
* SubtreeXmlReader.cs XmlFilterReader.cs : further dependent changes.
svn path=/trunk/mcs/; revision=83706
* SubtreeXmlReader.cs XmlFilterReader.cs :
exclude xsd stuff from NET_2_1 profile.
* DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
DTDValidatingReader2.cs XmlException.cs XmlReader.cs
XmlReaderSettings.cs XmlWriter.cs :
Make System.Xml.Core.dll build easier, using NET_2_1.
DTD support is simply cut at this stage (as it largely depends on
sys.xml.schema stuff).
svn path=/trunk/mcs/; revision=81332
* XmlTextWriter2.cs : fixed some relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
See new tests more details.
* XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
XmlWriterSettings). It also resulted in dropping several internal
members in XmlTextWriter.
* XmlWriterSettingsTests.cs : added tests for relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
svn path=/trunk/mcs/; revision=68180
* XPathNavigatorCommonTests.cs : added test for bug #78067.
* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.
* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
It caused bug #78067.
* XPathNavigator.cs : get_OuterXml() returns indented output, without
XML declaration.
* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
and root nodes instead of dispatching to ReadSubtree().
svn path=/trunk/mcs/; revision=59286
* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
ReadSubtree() for non-element content since they are not allowed
in ReadSubtree() (but allowed here).
* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
rather than WriteNode(XmlWriter, bool) in WriteSubtree().
* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
as well as XPathNavigator.WriteSubtree(XmlWriter).
svn path=/trunk/mcs/; revision=55143
* XsdValidatingReader.cs : XmlReader.ReadTypedValue() does not exist
anymore, so it is not override.
* XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
* XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
ReadTypedValue() is removed.
* XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
* XmlWriter.cs : Settings is virtual.
* XPathNodeIterator.cs : added [DebuggerDisplay]. pretty useless tho.
* XPathNavigator.cs : [DebuggerDisplay] as well.
SelectSingleNode() and AppendChildElement() are now virtual.
svn path=/trunk/mcs/; revision=52637
* XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
added supprot for NormalizeNewLines.
NewLineOnAttributes is considered only when Indent is true.
* XmlWriterSettingsTests.cs : test for NormalizeNewLines.
svn path=/trunk/mcs/; revision=51109
* XmlWriter.cs : WriteQualifiedName() should check namespace validity
(whether it is in scope or not).
* XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
attribute and no matching namespace declaration, create prefix
on demand. Code reused from WriteStartAttribute().
* XmlTextWriterTests.cs : added more tests on WriteQualifiedName().
svn path=/trunk/mcs/; revision=42189
* XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
ns is null, and don't lookup prefix for empty namespace.
svn path=/trunk/mcs/; revision=37185
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
For attribute nodes, it should not use WriteSubtree() which does not
support attribute nodes.
svn path=/trunk/mcs/; revision=34690
* XmlReader.cs : evidence is always provided.
* XmlWriter.cs, XmlTextWriter.cs :
added support for ConformanceLevel and OmitXmlDeclaration.
svn path=/trunk/mcs/; revision=33558
* XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
* XmlQualifiedName.cs : Added internal static Parse().
* XmlReader.cs : use XmlQualifiedName.Parse().
* XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
* XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
Implemented 2.0 virtual methods that used to be abstract in 1.x.
svn path=/trunk/mcs/; revision=31540