Commit Graph
26 Commits
Author SHA1 Message Date
Jb Evain d45c953776 2009-02-23 Jb Evain <[email protected]>
* XAttributeTest.cs: add test for XAttribute holding DateTimes.


svn path=/trunk/mcs/; revision=127785
2009-02-23 19:18:29 +00:00
Atsushi Eno 5e3fa39585 2009-01-20 Atsushi Enomoto <[email protected]>
* 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
2009-01-20 04:50:13 +00:00
Néstor Salceda c9487b82c4 2008-06-12 Nestor Salceda <[email protected]>
* XTextTest.cs: added test for bug #401325.


svn path=/trunk/mcs/; revision=106151
2008-06-18 19:26:13 +00:00
Atsushi Eno 635e39cfe9 2008-05-22 Atsushi Enomoto <[email protected]>
* 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
2008-05-22 10:08:31 +00:00
Atsushi Eno c0d2067ae2 2008-05-12 Atsushi Enomoto <[email protected]>
* 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
2008-05-12 15:19:48 +00:00
Atsushi Eno 36b240b36a 2008-05-12 Atsushi Enomoto <[email protected]>
* 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
2008-05-12 11:11:26 +00:00
Atsushi Eno a333e2b219 2008-05-12 Atsushi Enomoto <[email protected]>
* 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
2008-05-12 10:16:06 +00:00
Atsushi Eno de6a6f32bd 2008-05-12 Atsushi Enomoto <[email protected]>
* 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
2008-05-12 08:48:54 +00:00
Atsushi Eno 43fda2ee86 2008-04-30 Atsushi Enomoto <[email protected]>
* XElement.cs, XNode.cs : XNode.ReadFrom() should not reuse
	  XElement.Load() which may create wrapper XmlReader.

	* XNodeReaderTest.cs : added CreateReader3().


svn path=/trunk/mcs/; revision=102174
2008-04-30 05:54:04 +00:00
Sasha Kogan 5984e6c10e TARGET_JVM: Add msbuild project files & test scripts.
svn path=/trunk/mcs/; revision=99746
2008-04-03 14:28:08 +00:00
Atsushi Eno 10471fd6bd 2008-02-12 Atsushi Enomoto <[email protected]>
* 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
2008-02-12 03:27:03 +00:00
Atsushi Eno bfac447709 2008-02-11 Atsushi Enomoto <[email protected]>
* 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
2008-02-11 16:31:45 +00:00
Atsushi Eno f39fe7befe 2008-02-11 Atsushi Enomoto <[email protected]>
* XNamespace.cs : make Get() and GetName() table-based.

	* XNamespaceTest.cs : test Get() and GetName().


svn path=/trunk/mcs/; revision=95437
2008-02-11 14:20:23 +00:00
Atsushi Eno 47d78a8c10 2008-02-11 Atsushi Enomoto <[email protected]>
* 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
2008-02-11 11:28:51 +00:00
Atsushi Eno 5b7f59e6a8 2008-02-11 Atsushi Enomoto <[email protected]>
* XNode.cs XElement.cs XObject.cs XDocument.cs XContainer.cs :
	  support LoadOptions.SetLineInfo and LoadOptions.SetBaseUri.

	* XObjectTest.cs : new. Test IXmlLineInfo.


svn path=/trunk/mcs/; revision=95429
2008-02-11 11:01:37 +00:00
Atsushi Eno 25040db25a 2008-02-11 Atsushi Enomoto <[email protected]>
* 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
2008-02-11 08:21:40 +00:00
Miguel de Icaza 9396077ba3 2008-02-11 Miguel de Icaza <[email protected]>
* 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
2008-02-11 05:59:50 +00:00
Atsushi Eno 8d3ab98726 2008-02-10 Atsushi Enomoto <[email protected]>
* 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
2008-02-10 14:55:50 +00:00
Miguel de Icaza 42cf6fb1da 2008-02-09 Miguel de Icaza <[email protected]>
* XNamespace.cs: implement.

svn path=/trunk/mcs/; revision=95348
2008-02-10 01:28:19 +00:00
Atsushi Eno 3cfea1f6b9 2008-01-30 Atsushi Enomoto <[email protected]>
* 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
2008-01-30 02:25:41 +00:00
Atsushi Eno 9638f6faae 2008-01-29 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : NodeType should return None at Initial state.
	  Fixed bug #356522.

	* XNodeReaderTest.cs : test get_NodeType() for Initial state.


svn path=/trunk/mcs/; revision=94289
2008-01-29 18:59:00 +00:00
Atsushi Eno ede31a5c01 2008-01-29 Atsushi Enomoto <[email protected]>
* 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
2008-01-29 18:28:31 +00:00
Atsushi Eno d5d27b843b 2008-01-29 Atsushi Enomoto <[email protected]>
* 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
2008-01-29 17:06:27 +00:00
Atsushi Eno 88e0a9dec7 2008-01-28 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : Fixed bug #356522. Attribute name retrieval was
	  wrong.

	* XNodeReaderTest.cs : test for bug #356522.


svn path=/trunk/mcs/; revision=94116
2008-01-28 10:41:37 +00:00
Atsushi Eno b51b8ffd4e 2008-01-26 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : fixed GetAttribute() that wrongly resulted in
	  returning "" instead of null. Fixed bug #335975.

	* XNodeReaderTest.cs : test for bug #335975.


svn path=/trunk/mcs/; revision=93981
2008-01-26 10:01:07 +00:00
Atsushi Eno 3f7219e8cf moving XLinq stuff to mcs.
svn path=/trunk/mcs/; revision=90454
2007-11-29 18:34:42 +00:00