* System.Xml.Linq_test.dll.sources :
add System.Xml.Schema/ExtensionsTest.cs.
* ExtensionsTest.cs :
New tests (not working yet), by Stefan Prutianu.
svn path=/trunk/mcs/; revision=158106
* XDocument.cs : don't prohibit DTD.
* XNodeNavigator.cs : do not return true in MoveToFirstChild()
when there is no child node. Fixed bug #594877.
* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
tests that were commented out.
svn path=/trunk/mcs/; revision=155854
* XContainer.cs : create snapshot copy first before removal of nodes.
Fixed bug #592435.
* XElementTest.cs : added test for bug #592435.
svn path=/trunk/mcs/; revision=154729
* XContainer.cs : when replacing nodes, add contents first and then
remove them, so that the arguments are first unlinked and then
no node ends up to be added. Fixed bug #541098.
* XElementTest.cs : added test for bug #541098.
svn path=/trunk/mcs/; revision=146348
* XDocument.cs : XmlReaderSettings on XmlReader may be null.
Fixed bug #496285.
* XDocumentTest.cs : added test for bug #496285.
svn path=/trunk/mcs/; revision=141961
* XElement.cs : consider default namespace in GetNamespaceOfPrefix().
* XNodeReader.cs : 3.5 RTM does not return empty string for undefined
namespace URI with the argument prefix in LookupNamespace().
* XNodeReaderTest.cs : Updated test to match the latest linq2xml
and added test for LookupNamespace().
svn path=/trunk/mcs/; revision=141940
* XObject.cs : do not throw AE when target object is not found in
Annotation(). Fixed bug #527887.
* XObjectTest.cs : added test for #527887.
svn path=/trunk/mcs/; revision=141939
* XNodeReader.cs : do not possibly return null as the Prefix value.
Fixed bug #524084.
* XNodeReaderTest.cs : test Prefix on default namespace.
svn path=/trunk/mcs/; revision=138356
* XNodeReader.cs : a couple of properties did not return correct
value for EOF state.
* XNodeReaderTest.cs : test member behaviors at EOF state.
svn path=/trunk/mcs/; revision=138354
* XNodeReader.cs : do not return element's IsEmpty on attributes.
* XNodeReaderTest.cs : on attributes IsEmptyElement is false.
svn path=/trunk/mcs/; revision=138352
* XElement.cs : iterate all attributes and see if there is
applicable ns prefix for current element. Fixed bug #466423.
* XElementTest.cs : added test for bug #466423.
svn path=/trunk/mcs/; revision=123851
* XUtil.cs : refactoring Clone(). Support XAttribute too.
* XNode.cs, XElement.cs, XContainer.cs : when adding a node that is
already attached to another node, create a clone of it and add it
to the tree instead of adding argument node. Fixed bug #392063.
in XElement .ctor(XElement), copy attributes too.
* XElementTest.cs : added test for bug #392063 and some variants.
svn path=/trunk/mcs/; revision=103766
* XNode.cs, XElement.cs, XUtil.cs, XDocument.cs, XContainer.cs:
Add[Before|After]Self() now also checks argument node and joins
concatenating strings.
* XElementTest.cs, XDocumentTest.cs : fixed tests; do now allow
XDeclaration addition to XElement, while allow it being added
to XDocument.
Added test for AddAfterSelf() for concatenating string arguments.
svn path=/trunk/mcs/; revision=103008
* XNode.cs : fixed AddAfterSelf() to process order of inserted
collection correctly (it could have resulted in reverse order).
* XElement.cs : added AddAfterSelfCollection().
svn path=/trunk/mcs/; revision=102994
* XContainer.cs, XElement.cs, XNode.cs, XUtil.cs :
made several refactoring on handling "content" items in couple of
Add*() methods. Attributes should be allowed in XElement.Add(),
while they should be rejected in XNode.Add*Self().
Similarly, Add() and SetValue() should reject any invalid content
items.
Add() should also append string content to the last node when the
last node is text.
* XDocumentTest.cs, XElementTest.cs :
Added couple of tests for Add() and AddBeforeSelf().
svn path=/trunk/mcs/; revision=102990
* XStreamingElement.cs : couple of fixes:
- object[] args are params.
- Fixed WriteContents(object[],XmlWriter) wrong iteration.
- do not write xmldecl when it does not exist (OmitXmlDeclaration).
* XStreamingElementTest.cs : new test.
* System.Xml.Linq_test.dll.sources : added XStreamingElementTest.cs.
svn path=/trunk/mcs/; revision=102986
* XElement.cs : Value is rather a value in XPath semantics than
the textual xml representation. Fixed bug #360858.
* XElementTest.cs : added test for Value (bug #360858).
svn path=/trunk/mcs/; revision=95478
* XNodeDocumentOrderComparer.cs : ancestor/descendant comparison was
broken for some cases.
* Extensions.cs : implemented InDocumentOrder<T>().
* XNodeDocumentOrderComparerTest.cs : added another test for
descendant/ancestor comparison.
* ExtensionsTest.cs : test InDocumentOrder<T>().
svn path=/trunk/mcs/; revision=95447
* XNodeNavigator.cs : MoveToId() is not supported in this class.
* XElement.cs : allow DTD by default.
* XNodeNavigatorTest.cs : test MoveToId() (NotSupportedException,
cannot be enabled yet).
svn path=/trunk/mcs/; revision=95430
* XNodeNavigator.cs : oops, MoveToNext() always returned false.
* XNodeNavigatorTest.cs : new test (but it does not build yet).
* System.Xml.Linq_test.dll.sources : added XNodeNavigatorTest.cs.
svn path=/trunk/mcs/; revision=95427
* XAttribute.cs, XElement.cs: typecasting operators that take
values that can be null (nullable types and string) should not
throw an exception if the XAttribute is null, but return null instead.
* Added awesome test suite using awesome C-x ( C-x ) C-x e based
code generation.
svn path=/trunk/mcs/; revision=95417
* XElement.cs : .ctor(XName,object) was trying to set args as its
content, not as its own fields.
* XNodeWriter.cs : check null ns and replace it with "".
Now that IsEmpty is true, set IsEmpty as false explicitly
when WriteFullEndElement() is called.
* ExtensionsTest.cs : disabled Remove() which does not compile now.
* XNodeWriterTest.cs : added test for Write[Full]EndElement() and
XElement.IsEmpty.
svn path=/trunk/mcs/; revision=95377
* XNodeReader.cs : when it is created from non-document XNode, do
not go beyond the source node. Fixed bug #356522 (the third case).
* XNodeReaderTest.cs : test for bug #356522, the third case.
svn path=/trunk/mcs/; revision=94351
* XNodeReader.cs : when created from non-document node, the first
call to Read() should not move the node to its first child.
* XNodeReaderTest.cs : test CreateReader() for non-document XNode.
svn path=/trunk/mcs/; revision=94280
* XNodeReader.cs : Probably fixed (reopened) bug #356522.
NamespaceURI for "xmlns" attribute was "", which should be
http://www.w3.org/2000/xmlns/ (in XAttribute its namespace is "").
* XNodeReaderTest.cs : test for bug #356522 revised case.
svn path=/trunk/mcs/; revision=94268