Commit Graph
52 Commits
Author SHA1 Message Date
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
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
Jb Evain 442edd369f 2009-02-23 Jb Evain <[email protected]>
* XUtil.cs (ToString): properly stringify datetimes.


svn path=/trunk/mcs/; revision=127784
2009-02-23 19:17:31 +00:00
Geoff Norton 2ad30c4516 2009-02-19 Geoff Norton <[email protected]>
* Fix the build, these all need to loose this #if guard.

svn path=/trunk/mcs/; revision=127378
2009-02-19 07:09:22 +00:00
Atsushi Eno 4c25215af2 2009-01-22 Atsushi Enomoto <[email protected]>
* XElement.cs : oops, experimental code remained and caused test
	  failure.


svn path=/trunk/mcs/; revision=124126
2009-01-21 23:20:17 +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
Atsushi Eno cadf8486d9 2009-01-20 Atsushi Enomoto <[email protected]>
* XDocument.cs : fix wrong indentation handling.


svn path=/trunk/mcs/; revision=123850
2009-01-20 04:46:23 +00:00
Jb Evain 85e2d21ceb 2008-11-20 Jb Evain <[email protected]>
* Assembly/AssemblyInfo.cs: sign with winfx.pub on NET_2_1.


svn path=/trunk/mcs/; revision=119439
2008-11-20 14:08:51 +00:00
Jb Evain 6691b3d437 in .:
2008-11-19  Jb Evain  <[email protected]>

	* net_2_1_raw_System.Xml.Linq.dll.sources: added
	* Makefile: add support to build System.Xml.Linq on net_2_1.

in System.Xml.Linq:
2008-11-19  Jb Evain  <[email protected]>

	* XNodeReader: build on NET_2_1.


svn path=/trunk/mcs/; revision=119431
2008-11-20 12:34:49 +00:00
Sebastien Pouliot cb61a1b3da 2008-10-14 Sebastien Pouliot <[email protected]>
* XContainer.cs (AddFirst): Avoid stackoverflow (infinite recursion).


svn path=/trunk/mcs/; revision=115774
2008-10-14 13:54:22 +00:00
Néstor Salceda c7ff0d061f 2008-06-18 Nestor Salceda <[email protected]>
* XUtil.cs: Support XText in Clone (). Fixes bug #401325.


svn path=/trunk/mcs/; revision=106152
2008-06-18 19:27:00 +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
Sebastien Pouliot 7f16da8260 2008-05-18 Sebastien Pouliot <[email protected]>
* XName.cs: Use String.IsNullOrEmpty inside 2.0 code.
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=103420
2008-05-18 15:42:26 +00:00
Noam Lampert dbb08e2aa2 Fix run-tests script to copy run logs.
svn path=/trunk/mcs/; revision=103067
2008-05-13 10:42:24 +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 2aea823ce8 oops, forgot to commit.
svn path=/trunk/mcs/; revision=102988
2008-05-12 09:21:29 +00:00
Atsushi Eno f651b0e352 2008-05-12 Atsushi Enomoto <[email protected]>
* XUtil.cs : added ExpandArray() and marked some members as wrong.
	* XStreamingElement.cs : removed use of ToNodes().


svn path=/trunk/mcs/; revision=102987
2008-05-12 09:01:12 +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
Andreas N 41a47ef145 2008-04-25 Andreas Nahr <[email protected]>
* AssemblyInfo.cs: Added missing attributes

svn path=/trunk/mcs/; revision=101778
2008-04-25 09:27:12 +00:00
Roei Erez dee2ada9a2 some modifications to the project file.
svn path=/trunk/mcs/; revision=99945
2008-04-06 07:10:03 +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
Raja R Harinath 264c06c083 In .:
* Makefile (_boot_): Orchestrate the net_2_1 bootstrap.
	(net_2_1_bootstrap_SUBDIRS, net_2_1_raw_SUBDIRS): New.

In build:
	* profiles/net_2_1_bootstrap.make: New.
	* profiles/net_2_1_raw.make: New.  The untuned 2.1 profile.
	* profiles/net_2_1.make: New.  The tuned 2.1 profile.
	* Makefile (PROFILES): Update.

In class:
	* Makefile (net_3_5_dirs): Remove System.Xml.Linq, now that it's
	built in the 2.0 profile.

In class/System:
	* Makefile (CYCLIC_DEPS): New macro.
	(CYCLIC_DEP_FILES): Use it to clean up handling of cyclic dependencies.
	* net_2_1_raw_System.dll.sources: Rename from net_2_1_System.dll.sources.
	* net_2_1_bootstrap_System.dll.sources: New.

In class/corlib:
	* Makefile (LIBRARY_COMPILE) [net_2_1]: Remove special case.

In errors:
	* Makefile: Enable testing net_2_1 profile.

In mcs:
	* Makefile (GMCS_PROFILE): Remove.
	(COMPILER_NAME): New helper.

In tests:
	* Makefile: Enable smcs testing.

In tools:
	* Makefile (net_2_1_raw_SUBDIRS): New.

In tools/compiler-tester:
	* Makefile [PROFILE=net_2_1]: Copy file from net_2_1_raw profile.
	* compiler-tester.cs: Work better with 'net_2_1' profiles.

In tools/tuner:
	* Makefile: Improve.  Update to new net_2_1 profiles.  Specify
	more dependencies.  Do work only when necessary.
	* Descriptors/smcs.xml: Add CompilerCallableEntryPoint.

svn path=/trunk/mcs/; revision=95989
2008-02-17 17:54:22 +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 19c0d232ed 2008-02-11 Atsushi Enomoto <[email protected]>
* XName.cs : implemented GetObjectData(). It is however incompatible
	  with .NET (yet?).
	* XNodeNavigator.cs : SchemaInfo is null.


svn path=/trunk/mcs/; revision=95442
2008-02-11 15:25:42 +00:00
Atsushi Eno 99db50be3e 2008-02-11 Atsushi Enomoto <[email protected]>
* XStreamingElement.cs : it was almost already implemented.
	* XElement.cs : finish .ctor(XStreamingElement).


svn path=/trunk/mcs/; revision=95440
2008-02-11 15:01:08 +00:00
Atsushi Eno 8184bcd8ba 2008-02-11 Atsushi Enomoto <[email protected]>
* XNode.cs, XElement.cs, XStreamingElement.cs, XContainer.cs,
	  XUtil.cs : one-object to one-XNode conversion is wrong. It could
	  be one-or-more nodes (i.e. when object is IEnumerable).


svn path=/trunk/mcs/; revision=95438
2008-02-11 14:45:04 +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
Miguel de Icaza 0700f026d5 Add 3_5 define
svn path=/trunk/mcs/; revision=95414
2008-02-11 05:36:32 +00:00
Miguel de Icaza e3a99e99d6 Revert, this patch does not look correct
svn path=/trunk/mcs/; revision=95413
2008-02-11 05:35:09 +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
Atsushi Eno 6cb530f524 2008-02-10 Atsushi Enomoto <[email protected]>
* Consts.cs.in : now that we removed 3.5 profile, those versions are
	  needed independently.

	* AssemblyInfo.cs: use 3.5 version strings.


svn path=/trunk/mcs/; revision=95371
2008-02-10 13:07:51 +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
Miguel de Icaza f3792b1a75 There is no such thing as a 3.5 build: 3.5 to us is merely new API entry points which will be part of the standard 2.0 build
svn path=/trunk/mcs/; revision=95347
2008-02-10 00:14:44 +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 7cbaddc28b 2008-01-29 Atsushi Enomoto <[email protected]>
* XElement.cs, XNamespace.cs, XNodeNavigator.cs, XAttribute.cs,
	  XNodeReader.cs, XName.cs, XNodeWriter.cs :
	  XNamespace.Blank -> XNamespace.None (and .None is implemented.)


svn path=/trunk/mcs/; revision=94267
2008-01-29 16:53:16 +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
Marek Safar e01476214d 2007-12-03 Marek Safar <[email protected]>
* Makefile : Fixed 3.5 settings.


svn path=/trunk/mcs/; revision=90566
2007-12-03 17:43:53 +00:00