Commit Graph
514 Commits
Author SHA1 Message Date
Adam Treat 09c6c9c962 * Implement MoveToAttribute(string name) method.
svn path=/trunk/mcs/; revision=3618
2002-04-05 01:06:36 +00:00
Adam Treat a421e3f8dd * Added 'XmlTextReader (string url)' constructor
svn path=/trunk/mcs/; revision=3617
2002-04-04 21:28:09 +00:00
Piers Haken cc63806f23 minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
svn path=/trunk/mcs/; revision=3568
2002-04-03 06:28:53 +00:00
Kral Ferch c9c678a115 XmlTextWriter impls for WriteEndDocument and WriteFullEndElement.
svn path=/trunk/mcs/; revision=3546
2002-04-02 02:59:42 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Kral Ferch cbe4a80d16 XmlTextWriter impls for LookupPrefix, WriteBase64, and WriteCharEntity.
svn path=/trunk/mcs/; revision=3527
2002-03-31 20:11:56 +00:00
Kral Ferch 4f5ed6b2da touchups on XmlTextWriter attribute writing.
svn path=/trunk/mcs/; revision=3525
2002-03-31 17:35:36 +00:00
Kral Ferch 97a1576096 XmlLang and XmlSpace for XmlTextWriter.
svn path=/trunk/mcs/; revision=3508
2002-03-30 03:42:19 +00:00
Kral Ferch 7816a48c12 Working on Attribute methods for XmlTextWriter.
svn path=/trunk/mcs/; revision=3507
2002-03-30 01:18:09 +00:00
Duncan Mak 66461e7b7a 2002-03-28 Duncan Mak <[email protected]>
* XmlDocument.cs (CreateWhitespace):
	(CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
	method.

	* XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.

	* XmlDeclarationTests.cs (TestConstructor):
	* XmlDocumentTypeTests.cs (TestAppendChild):
	* XmlSignificantWhitespaceTests.cs (TestXmlWhitespaceConstructor):
	* XmlWhiteSpaceTests.cs (TestXmlWhitespaceConstructor): Fixed the
	test for catching Exceptions.

svn path=/trunk/mcs/; revision=3467
2002-03-28 20:20:01 +00:00
Duncan Mak 58a9a7d2d6 2002-03-26 Duncan Mak <[email protected]>
* XmlDocument.cs (CreateDocumentType): Implemented.

	* XmlNode.cs (Value): Implemented.

	* AllTests.cs:
	* Microsoft.Test.csproj:
	* Mono.Test.csproj: Updated to include new test,
	XmlDocumentTypeTests.

	* XmlDocumentTypeTests.cs: New testsuite for XmlDocumentType class.

svn path=/trunk/mcs/; revision=3378
2002-03-27 00:49:24 +00:00
Duncan Mak 25cb0550ad 2002-03-26 Duncan Mak <[email protected]>
* XmlProcessingInstruction.cs (InnerText): Implemented. It works just
	like XmlCharacterData.

	* XmlCommentTests.cs (TestXmlNodeBaseProperties): Move the
	XmlNode.Value test in here.

svn path=/trunk/mcs/; revision=3369
2002-03-26 19:22:24 +00:00
Duncan Mak 2ebeb2f673 2002-03-26 Duncan Mak <[email protected]>
* XmlDeclaration.cs (CloneNode):
	* XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
	arguments.

	* XmlCharacterData.cs (Substring): Fixed typo.

svn path=/trunk/mcs/; revision=3364
2002-03-26 16:02:02 +00:00
Duncan Mak 46c432f451 2002-03-26 Duncan Mak <[email protected]>
* XmlCharacterData.cs (InnerText): Implemented. Funny that the
	docs say it is the "The concatenated values of the node and all
	the children of the node.". I wrote some test programs and
	couldn't get any of the derived nodes to AppendChild. For now,
	InnerText == Data == Value.

	* XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.

svn path=/trunk/mcs/; revision=3358
2002-03-26 15:03:40 +00:00
Duncan Mak 7ae088c8ca 2002-03-26 Duncan Mak <[email protected]>
XmlImplementation.cs (CreateDocument): Implemented.

svn path=/trunk/mcs/; revision=3350
2002-03-26 11:42:28 +00:00
Duncan Mak a412fd0bee 2002-03-25 Duncan Mak <[email protected]>
* XmlDeclaration.cs: Rewrote the class, fixed formatting, added
	missing properties (InnerText, Value).

	* XmlDocument.cs (CreateXmlDeclaration): Implemented.

	* AllTests.cs:
	* Microsoft.Test.csproj:
	* Mono.Test.csproj: Updated to include new test,
	XmlDeclarationTests.

	* XmlDeclarationTests.cs: Added new test for XmlDeclaration class.

svn path=/trunk/mcs/; revision=3338
2002-03-25 22:28:15 +00:00
Kral Ferch 29e35dc0f0 XmlTextWriter work on BaseStream, WriteState, and Namespaces.
svn path=/trunk/mcs/; revision=3295
2002-03-23 20:46:11 +00:00
Kral Ferch abf853b6ca XmlTextWriter formatting, indenting, xml declaration stuff.
svn path=/trunk/mcs/; revision=3277
2002-03-23 04:38:35 +00:00
Kral Ferch 2044abcc02 initial checkin. XmlTextWriter uses these objects in a stack to maintain state.
svn path=/trunk/mcs/; revision=3276
2002-03-23 04:37:32 +00:00
Mike Kestner c99917bebc 2002-03-22 Mike Kestner <[email protected]>
* XmlElement.cs: impl HasAttribute(string name).

svn path=/trunk/mcs/; revision=3273
2002-03-22 19:04:05 +00:00
Duncan Mak cc397dd95d 2002-03-22 Duncan Mak <[email protected]>
* XmlDocument.cs (CreateSignificantWhitespace): Implemented.

	* AllTests.cs:
	* Microsoft.Test.csproj:
	* Mono.Test.csproj: Updated to include new files.

	* XmlSignificantWhitespaceTests.cs: Added to CVS.

svn path=/trunk/mcs/; revision=3268
2002-03-22 03:23:26 +00:00
Duncan Mak b9e2f23ea5 2002-03-22 Duncan Mak <[email protected]>
* XmlElement.cs: Reformatted.
	(CloneNode) Corrected.

	* XmlDocument.cs (CreateWhitespace): Implemented.

	* XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
	true, because Attributes have ChildNodes.

2002-03-22  Duncan Mak  <[email protected]>

	* AllTests.cs:
	* Microsoft.Test.csproj:
	* Mono.Test.csproj: Updated to include new files.

	* XmlCDataSectionTests.cs: Added to CVS.

	* XmlCommentTests.cs: Added to CVS. hanks to Kral for helping me
	setup a testing environment on VS.NET.

	* XmlElementTests.cs: Reformatted.
	(TestCloneNode): Added.

	* XmlWhiteSpaceTests.cs: Added to CVS.

svn path=/trunk/mcs/; revision=3267
2002-03-22 02:38:08 +00:00
Kral Ferch 8443490912 xmltextwriter writestartdocument and writeendelement.
svn path=/trunk/mcs/; revision=3249
2002-03-21 04:28:19 +00:00
Duncan Mak 652cc3421a 2002-03-20 Duncan Mak <[email protected]>
* XmlEntityReference.cs (CloneNode): Implemented.

svn path=/trunk/mcs/; revision=3246
2002-03-20 23:01:25 +00:00
Duncan Mak 1afc7ead96 2002-03-20 Duncan Mak <[email protected]>
* XmlException.cs (Message): Implemented. We need to cache the
	message string because SystemException doesn't expose 'message'
	from Exception.

	* XmlText.cs (Value): Added in missing the Value property.

2002-03-20  Duncan Mak  <[email protected]>

	* XmlAttribute.cs (CloneNode): Implemented.

	* XmlDocumentFragment.cs (CloneNode): Implemented.

	* XmlElement.cs (CloneNode): Implemented.

svn path=/trunk/mcs/; revision=3245
2002-03-20 22:51:09 +00:00
Duncan Mak ccf2b200ff 2002-03-19 Duncan Mak <[email protected]>
* XmlNotation.cs: Added to CVS.

svn path=/trunk/mcs/; revision=3230
2002-03-19 22:39:03 +00:00
Duncan Mak 38ef701a8f 2002-03-19 Duncan Mak <[email protected]>
* XmlAttribute.cs (CloneNode): First crack at the CloneNode method.

	* XmlCDataSection.cs (CloneNode): Implemented.

	* XmlDocumentFragment.cs: Reformatted and added the missing properties
	(InnerXml, OwnerDocument, ParentNode).  (CloneNode): Implemented.

	* XmlSignificantWhitespace.cs (CloneNode): Implemented.
	(Value) Implemented the 'get' property.

	* XmlWhitespace.cs (Module): implemented.

svn path=/trunk/mcs/; revision=3229
2002-03-19 22:20:31 +00:00
Jason Diamond 9926a1f825 Fixed typo in XmlDocument.Load that was duplicating the LocalName in the Prefix.
svn path=/trunk/mcs/; revision=3210
2002-03-19 12:00:58 +00:00
Jason Diamond f2731147a6 Fixed typo in XmlDocument.Load that was duplicating the LocalName in the Prefix.
svn path=/trunk/mcs/; revision=3209
2002-03-19 11:59:07 +00:00
Jason Diamond 4a4d210198 MoveToElement after reading attributes instead of restoring the element properties early.
svn path=/trunk/mcs/; revision=3196
2002-03-18 23:59:30 +00:00
Kral Ferch d7645f64a5 namespace and prefix support in XmlTextWriter
svn path=/trunk/mcs/; revision=3195
2002-03-18 22:42:13 +00:00
Kral Ferch f1be9d4e45 fix for Mike Kestner.
svn path=/trunk/mcs/; revision=3194
2002-03-18 21:47:37 +00:00
Kral Ferch 7472ae9d5d More XmlTextWriter and node WriteTo.
svn path=/trunk/mcs/; revision=3176
2002-03-18 03:11:17 +00:00
Kral Ferch 5b7629fbf3 Work on XmlDocument and XmlTextWriter
svn path=/trunk/mcs/; revision=3175
2002-03-17 20:36:20 +00:00
Duncan Mak b1b4a4b438 2002-03-15 Duncan Mak <[email protected]>
* XmlEntity.cs: Added to CVS. Need to implement BaseURI and
	InnerText once I know what they do.


	* XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
	that we can properly chain constructors.
	(CloneNode): implemented.
	(WriteContentTo): Removed MonoTODO attribute as this method has no
	effect in this class.

svn path=/trunk/mcs/; revision=3134
2002-03-15 19:29:58 +00:00
Duncan Mak 9d8e6b51e9 2002-03-15 Duncan Mak <[email protected]>
* XmlProcessingInstruction.cs (Value): Added the missing Set
	block.
	(InnerText): Added in, but not implemented.

svn path=/trunk/mcs/; revision=3132
2002-03-15 18:48:31 +00:00
Kral Ferch 857e4d7b40 Implemented WriteCData and WriteComment.
svn path=/trunk/mcs/; revision=3123
2002-03-15 03:21:50 +00:00
Kral Ferch cab7abeb74 initial checkin.
svn path=/trunk/mcs/; revision=3120
2002-03-15 01:48:10 +00:00
Duncan Mak 1de3b33621 2002-03-14 Duncan Mak <[email protected]>
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
	file, and updated the callbacks to reflect the change.
	(XmlDocument): Added the NameTable constructor.
	(NameTable): Also the NameTable property.

svn path=/trunk/mcs/; revision=3113
2002-03-14 17:03:07 +00:00
Duncan Mak e34b4528d4 2002-03-14 Duncan Mak <[email protected]>
* XmlDocument.cs: Moved the NodeChanged EventHandler to its own
	file, and updated the callbacks to reflect the change.

	* XmlNodeChangedEventHandler.cs: Added, replacing the version that
	was in XmlDocument.cs. It has two arguments now (object,
	EventArgs) , instead of one (object).

svn path=/trunk/mcs/; revision=3112
2002-03-14 16:55:21 +00:00
Duncan Mak b9882a83e4 2002-03-14 Duncan Mak <[email protected]>
* Validation.cs: Removed, replaced by ValidationType.cs.

svn path=/trunk/mcs/; revision=3110
2002-03-14 16:35:20 +00:00
Kral Ferch 909f666062 start of XmlTextWriter
svn path=/trunk/mcs/; revision=3101
2002-03-14 04:59:29 +00:00
Duncan Mak cfe054f7d0 2002-03-14 Duncan Mak <[email protected]>
* Validation.cs: Removed, replaced by ValidationType.cs.

svn path=/trunk/mcs/; revision=3100
2002-03-14 04:38:07 +00:00
Duncan Mak f3ad50c287 2002-03-14 Duncan Mak <[email protected]>
* Validation.cs: Removed, replaced by ValidationType.cs.

	* ValidationType.cs: Added.

svn path=/trunk/mcs/; revision=3099
2002-03-14 02:46:48 +00:00
Duncan Mak 83dbcb0e9a 2002-03-14 Duncan Mak <[email protected]>
* XmlNodeChangedEventHandler.cs: Added to CVS.

svn path=/trunk/mcs/; revision=3098
2002-03-14 01:53:43 +00:00
Duncan Mak f3473f27bc 2002-03-13 Duncan Mak <[email protected]>
* XmlException.cs: Made it [Serializable], implemented good ol'
	GetObjectData, and the serialization constructor.

svn path=/trunk/mcs/; revision=3097
2002-03-14 00:40:00 +00:00
Duncan Mak 6f0ee2a2bc 2002-03-13 Duncan Mak <[email protected]>
* XmlNamedNodeMap.cs (SetNamedItem): Reverted (added back in)
	the patch with the ReadOnly checks. "Don't doubt yourself, my
	son... you were right!"

svn path=/trunk/mcs/; revision=3096
2002-03-14 00:01:09 +00:00
Duncan Mak f3ca9709a0 2002-03-13 Duncan Mak <[email protected]>
* XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.

svn path=/trunk/mcs/; revision=3095
2002-03-13 23:26:40 +00:00
Duncan Mak f61a6104de I mis-read the docs and implemented the method the wrong way.. ;-(
2002-03-13  Duncan Mak  <[email protected]>

	* XmlNamedNodeMap.cs (SetNamedItem): implemented.

svn path=/trunk/mcs/; revision=3094
2002-03-13 22:55:01 +00:00
Duncan Mak d915a756c0 2002-03-13 Duncan Mak <[email protected]>
* XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
	(GetNamedItem (string, string)): implemented.
	(RemoveNamedItem): implemented.
	(SetNamedItem): Added check for ReadOnly and matching OwnerDocuments.

svn path=/trunk/mcs/; revision=3093
2002-03-13 22:31:55 +00:00