Commit Graph
54 Commits
Author SHA1 Message Date
Atsushi Eno b4b4b59a8f 2010-06-02 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : reset name in Reset().
	   Fixed bug #599479.

	* XmlObjectSerializerTest.cs : enable binary reader test for #601785.


svn path=/trunk/mcs/; revision=158317
2010-06-02 07:42:42 +00:00
Atsushi Eno 505b2c1d1a 2010-02-10 Atsushi Enomoto <[email protected]>
* XmlDictionaryWriter.cs : try to lookup dictionary string in
	  WriteNode(). This is part of #577139 fix (probably).


svn path=/trunk/mcs/; revision=151191
2010-02-10 07:32:06 +00:00
Atsushi Eno 35087ee7d8 tiny changelog correction.
svn path=/trunk/mcs/; revision=151174
2010-02-10 02:11:59 +00:00
Atsushi Eno e21dd21600 2010-02-10 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : for text '0' and '1', write 0x82 and
	  0x84 instead of 0x99 [0x30|0x31]. This cosmetic fix gives identical
	  writer output for #577139 (and yet it still doesn't work).


svn path=/trunk/mcs/; revision=151173
2010-02-10 02:11:29 +00:00
Atsushi Eno ef654ad856 2009-12-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : slightly more descriptive errmsg.


svn path=/trunk/mcs/; revision=148832
2009-12-22 08:30:00 +00:00
Sebastien Pouliot 6bc65d02b9 2009-12-01 Sebastien Pouliot <[email protected]>
* XmlDictionaryReader.cs: Fix ReadValueAsBase64 return value and
	remove NET_2_1 (gui-compare shows this in our 3.0 SP1 profile)


svn path=/trunk/mcs/; revision=147250
2009-12-01 18:24:53 +00:00
Sebastien Pouliot 62ce295bf9 In System.Xml:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* XmlDictionaryWriter.cs: Remove usage of XmlMtomDictionaryWriter
	for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]> 

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove 
	System.Xml/XmlMtomDictionaryWriter.cs


svn path=/trunk/mcs/; revision=142345
2009-09-21 18:57:37 +00:00
Atsushi Eno 4d231fec12 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : ReadValueAsBase64(byte[],int,int) is only
	  in SL2.


svn path=/trunk/mcs/; revision=138387
2009-07-22 12:10:53 +00:00
Atsushi Eno 3844b994ec 2009-07-14 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : read false (0x84) and true (0x86).


svn path=/trunk/mcs/; revision=137836
2009-07-14 07:20:17 +00:00
Atsushi Eno 4b08c634b1 2009-07-07 Atsushi Enomoto <[email protected]>
* XmlSimpleDictionaryWriter.cs : fix bogus import of
	  XmlWriter.WriteNode() to handle more than two elements.

	* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
	  than two nodes in an element.


svn path=/trunk/mcs/; revision=137485
2009-07-07 10:27:58 +00:00
Atsushi Eno 83edc6dd33 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
	  attributes from cache that are *not* in current element.


svn path=/trunk/mcs/; revision=135517
2009-06-05 12:41:56 +00:00
Atsushi Eno ab539b8623 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes
	  when the node was at the top of the stack. It was added twice and
	  call to reset resulted in end element with empty names.

	* XmlBinaryDictionaryReaderTest.cs : verify that end element has
	  non-empty local name.


svn path=/trunk/mcs/; revision=135512
2009-06-05 11:51:35 +00:00
Atsushi Eno 8519255aae 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow mapping an identical prefix
	  to different xmlns in different element level.

	* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
	  namespace declaration in the same element context.


svn path=/trunk/mcs/; revision=135052
2009-05-29 08:12:47 +00:00
Atsushi Eno c48581fd72 2009-05-29 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : allow writing xml/xmlns attributes
	  without specifying their corresponding namespaces.

	* XmlBinaryDictionaryWriter.cs : added test for writing xml/xmlns
	  attributes with null namespace.


svn path=/trunk/mcs/; revision=135051
2009-05-29 07:50:45 +00:00
Atsushi Eno 148d3ddbf3 2009-05-23 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix regression on stream consumption
	  excess.


svn path=/trunk/mcs/; revision=134669
2009-05-25 07:44:29 +00:00
Atsushi Eno 6489cc1e3b 2009-05-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : ReadContentString() returned
	  doubled string result.


svn path=/trunk/mcs/; revision=134591
2009-05-22 10:16:39 +00:00
Atsushi Eno 65586c8d12 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix utf16 array on getting its
	  length. Report correct length (since BinaryReader is directly used
	  it makes no sense to incompletely keep track of position in Source).

	* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.


svn path=/trunk/mcs/; revision=134388
2009-05-19 11:37:30 +00:00
Atsushi Eno b6bad18813 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : support reader quotas.


svn path=/trunk/mcs/; revision=134371
2009-05-19 08:20:48 +00:00
Sebastien Pouliot 1c619e1f47 2009-05-07 Sebastien Pouliot <[email protected]>
* UniqueId.cs: Fix attributes for v3.5 (and later 2.0 SP) and remove
	them (in particular [SecurityTreatAsSafe]) from the NET_2_1 build.


svn path=/trunk/mcs/; revision=133716
2009-05-07 12:09:00 +00:00
Atsushi Eno ee3747a1cf 2009-04-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : several fixes;
	  - Name property was always empty.
	  - Value property was always empty for attributes.
	  - TextIndex node type was not supported.
	  - node reset at Read() was incomplete.
	  - attribute Prefix for single character had wrong value.
	  - namespace nodes did not appear as attribute nodes.
	  - attribute value node must be always single. Another text node
	    means a text child of the element, not the following attr value.
	  tests will go in sys.servicemodel.


svn path=/trunk/mcs/; revision=132879
2009-04-28 18:44:40 +00:00
Atsushi Eno 08a74ed398 2009-04-15 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryReader.cs : new.
	* XmlDictionaryReader.cs : implemented CreateMtomReader().

	* System.Runtime.Serialization.dll.sources : added mtom reader.


svn path=/trunk/mcs/; revision=131809
2009-04-15 18:30:49 +00:00
Atsushi Eno 02a3560fa3 2009-04-02 Atsushi Enomoto <[email protected]>
* XmlMtomDictionaryWriter.cs : new.
	* XmlDictionaryWriter.cs : implement CreateMtomWriter().

	* XmlMtomDictionaryWriterTest.cs : new.

	* System.Runtime.Serialization.dll.sources : added mtom writer.
	* System.Runtime.Serialization_test.dll.sources : added mtom writer test.


svn path=/trunk/mcs/; revision=130849
2009-04-02 09:58:04 +00:00
Atsushi Eno 6f7bce2a5e 2009-04-01 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : add ReadStartElement() overload.


svn path=/trunk/mcs/; revision=130733
2009-04-01 08:28:07 +00:00
Atsushi Eno a7ab985979 2009-04-01 Atsushi Enomoto <[email protected]>
* UniqueId.cs : add missing security attributes.
        * XmlDictionaryReader.cs : cleanup extra TODOs.
        * XmlBinaryDictionaryReader.cs : iplement IsArray.


svn path=/trunk/mcs/; revision=130732
2009-04-01 08:11:07 +00:00
Atsushi Eno b739f433af 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
	  a couple of fixes to reflect correct values for node properties
	  on each read step.

	* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
	  state.


svn path=/trunk/mcs/; revision=130655
2009-03-31 14:17:05 +00:00
Atsushi Eno 412021f75a 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  support array operation (0x03) on reader too.

	* XmlBinaryDictionaryReaderTest.cs: test array reader.


svn path=/trunk/mcs/; revision=130644
2009-03-31 11:33:34 +00:00
Atsushi Eno 525fe83335 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : removed lots of unused part.


svn path=/trunk/mcs/; revision=130635
2009-03-31 10:34:42 +00:00
Atsushi Eno dfa167b164 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriterAutoGen.cs : generated code.
	* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  support array operation (0x03) and a bunch of WriteArray() methods.

	* XmlBinaryDictionaryWriterTest.cs : added test for array operation.

	* binary-writer-method-gen.cs : another easy code writer for binary
	  xml writer methods.
	* System.Runtime.Serialization.dll.sources : added autogenerated code.


svn path=/trunk/mcs/; revision=130630
2009-03-31 09:21:37 +00:00
Atsushi Eno 6110c12288 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
	  XmlBinaryFormat.cs : implemented element with short prefix.

	* XmlBinaryDictionaryReaderTest.cs,
	  XmlBinaryDictionaryWriterTest.cs : added test for element with
	  short prefix.


svn path=/trunk/mcs/; revision=130617
2009-03-31 07:24:52 +00:00
Atsushi Eno 1362b62020 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  resolved all namespace and QName issues.

	* XmlBinaryDictionaryWriterTest.cs : enabled QName test parts.


svn path=/trunk/mcs/; revision=130419
2009-03-27 18:41:25 +00:00
Atsushi Eno d16e9ef34b 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : further namespace refactory.
	  namespaces are managed by its own (to work fine for both string
	  and dictionary string).


svn path=/trunk/mcs/; revision=130396
2009-03-27 14:44:32 +00:00
Atsushi Eno d6b718ad37 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
	  support. Not only autocreated prefixes but also explicitly-
	  specified 'a' .. 'z' prefixes are mapped as shorthand.
	  Some significant (and ongoing) namespace support changes.

	* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
	  prefixed attributes.


svn path=/trunk/mcs/; revision=130381
2009-03-27 13:20:47 +00:00
Atsushi Eno febbd23e28 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
	  added some incomplete code for QName support.

	* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
	  disable since it does not work yet.


svn path=/trunk/mcs/; revision=130290
2009-03-26 13:37:43 +00:00
Atsushi Eno a730c50bc0 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  handle utf16 typed nodes. (not sure if it is used in writer.)


svn path=/trunk/mcs/; revision=130281
2009-03-26 11:35:32 +00:00
Atsushi Eno d64014a0bd 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : oops, fix build.


svn path=/trunk/mcs/; revision=130280
2009-03-26 11:32:30 +00:00
Atsushi Eno b41232c057 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryFormat.cs, : reverted Uuid change (UniqueId is different).
	  Updated TODO status. Removed extra BinaryReader type.


svn path=/trunk/mcs/; revision=130279
2009-03-26 10:55:51 +00:00
Atsushi Eno f9c37f5f72 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
	  XmlBinaryFormat.cs : fixed couple of issues regarding text and
	  base64 fixed-length buffers (their sizes are not variant).
	  Some ongoing changes on reading dummy-prefixed attributes.


svn path=/trunk/mcs/; revision=130278
2009-03-26 10:30:43 +00:00
Atsushi Eno c20202ef7c 2009-03-25 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs,
	  XmlBinaryDictionaryWriter.cs : couple of enhancements to support
	  missing types, Dictionary string lookups and indexing fixes.
	  Also reflect some correction by [MC-NBFX] (MS OSPed document).
	* XmlBinaryReaderSession.cs : implemented.

	* XmlBinaryDictionaryReaderTest.cs : enable reader-session dependent
	  tests.
	* XmlBinaryDictionaryReaderTest.cs : enable dummy-prefixed attributes
	  tests.


svn path=/trunk/mcs/; revision=130231
2009-03-25 18:48:24 +00:00
Atsushi Eno 52197296f0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : more not-understandable bits.


svn path=/trunk/mcs/; revision=129675
2009-03-18 07:19:33 +00:00
Atsushi Eno 0ad299bd14 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented ReadFullStartElement (full??).


svn path=/trunk/mcs/; revision=129674
2009-03-18 07:04:30 +00:00
Atsushi Eno 273288d6d0 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlDictionaryReader.cs : implemented missing && understandable
	  members.


svn path=/trunk/mcs/; revision=129673
2009-03-18 06:51:59 +00:00
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
Jonathan Pryor 3cfe05c157 * System.Xml/UniqueId.cs: Remove most [MonoTODO]s and
NotImplementedExceptions.  Revert the 2009-02-12 UniqueId.IsGuid 
	  "fix", as .NET says that new UniqueId(new Guid()).IsGuid==false 
	  (which makes no sense, as .ToString() on the same instance includes 
	  the "urn:uuid:" prefix, which is used by Guids...).
	* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.

svn path=/trunk/mcs/; revision=126911
2009-02-14 03:33:07 +00:00
Jonathan Pryor e1b0befb1a * System.Xml/XmlDictionaryWriter.cs: Implement
WriteValue(IStreamProvider).
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteValue(IStreamProvider).

svn path=/trunk/mcs/; revision=126867
2009-02-13 20:55:12 +00:00
Jonathan Pryor 39d3548bd8 * System.Xml/XmlDictionaryWriter.cs: Implement
WriteTextNode(XmlDictionaryReader,bool).  This requires changes to
	  WriteNode(), as testing had determined that WriteTextNode() is used
	  instead of WriteString() for Text nodes and attribute values when
	  called via WriteNode().
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test 
	  WriteNode(XmlDictionaryReader), WriteNode(XmlReader), and 
	  WriteTextNode().

svn path=/trunk/mcs/; revision=126853
2009-02-13 19:39:20 +00:00
Jonathan Pryor 8556a49e3c * System.Xml/XmlDictionaryWriter.cs: Implement WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
	* System.Xml/UniqueId.cs: Fix UniqueId.IsGuid, as 
	  `new UniqueId(new Guid())` was previously being detected as a string 
	  value, not a Guid value.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
	  WriteValue(TimeSpan), WriteValue(UniqueId).

svn path=/trunk/mcs/; revision=126760
2009-02-12 20:56:05 +00:00
Jonathan Pryor c8f1af3dd7 * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryWriterTest.cs to the test build.
	* System.Xml/XmlDictionaryWriter.cs (WriteStartElement): Add parameter 
	  checking and default arguments to avoid NullReferenceExceptions.
	* Test/System.Xml/XmlDictionaryWriterTest.cs: Added; test
	  XmlDictionaryWriter.WriteElementString().

svn path=/trunk/mcs/; revision=126751
2009-02-12 19:47:59 +00:00
Jonathan Pryor 79d3cca79c * System.Runtime.Serialization_test.dll.sources: Add
System.Xml/XmlDictionaryStringTest.cs to the test build.
	* System.Xml/XmlDictionaryString.cs: Add constructor argument checking.
	* Test/System.Xml/XmlDictionaryStringTest.cs: Added; tests for 
	  XmlDictionaryString.

svn path=/trunk/mcs/; revision=126680
2009-02-12 03:43:25 +00:00
Jonathan Pryor 1deef7537f * System.Runtime.Serialization.dll.sources: Add
System.Xml/IFragmentCapableXmlDictionaryWriter.cs to the build.
	* IFragmentCapableXmlDictionaryWriter.cs: Added.

svn path=/trunk/mcs/; revision=126493
2009-02-10 19:09:24 +00:00
Jb Evain 7fc2c6a4a9 in .:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: new sources
	file for the SL2 profile.
	* Makefile: add support for SL2 profile.

in System.Xml.Schema:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlSchema.cs: add helper internal class.

in System.Xml:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs:
	add support to build on the net_2_1 profile.

in System.Runtime.Serialization:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* IDataContractSurrogater.cs, SerializationMap.cs:
	add support to build on the net_2_1 profile.


svn path=/trunk/mcs/; revision=112586
2008-09-09 13:34:57 +00:00