Commit Graph
938 Commits
Author SHA1 Message Date
Ajay kumar Dwivedi 21689da521 2002-06-21 Ajay kumar Dwivedi <[email protected]>
* XmlQualifiedName: Name and Namespaces are never null. If null is passed
		to the constructor, set them to empty strings.
		Fixed the Operators.

svn path=/trunk/mcs/; revision=5392
2002-06-21 12:58:58 +00:00
Ajay kumar Dwivedi 64b053b6aa 2002-06-18 Ajay kumar Dwivedi <[email protected]>
* XmlTextReader.cs: HasLineInfo returns false instead of throwing an
	Exception.

2002-06-14  Duncan Mak  <[email protected]>

svn path=/trunk/mcs/; revision=5328
2002-06-18 12:22:41 +00:00
Duncan Mak 0aeb35899e 2002-06-14 Duncan Mak <[email protected]>
* XmlConvert.cs: Added CLSCompliant attributes to methods.

svn path=/trunk/mcs/; revision=5275
2002-06-14 02:37:52 +00:00
Duncan Mak fe337d9e1d 2002-06-12 Duncan Mak <[email protected]>
* XmlCharacterData.cs (Value): Throw an ArgumentException in the
	set block if the node is read-only.

svn path=/trunk/mcs/; revision=5242
2002-06-12 01:37:47 +00:00
Duncan Mak f107fa2fca 2002-06-12 Duncan Mak <[email protected]>
* XmlCharacterData.cs (Value): Throw an ArgumentException if the
	node is read-only.

svn path=/trunk/mcs/; revision=5241
2002-06-12 01:26:40 +00:00
Ajay kumar Dwivedi 93040683dc 2002-06-10 Ajay kumar Dwivedi <[email protected]>
* XmlConstruct.cs : New Internal class with Helper methods for
	Checking XmlConstructs
	* XmlConvert.cs: Implemented most of the methods

svn path=/trunk/mcs/; revision=5198
2002-06-10 02:20:46 +00:00
Duncan Mak 2e22dca527 2002-06-08 Duncan Mak <[email protected]>
* XmlDocument.cs (Load):
	Added bits to Load (string) for BaseURI support.

	* XmlAttribute.cs (BaseURI):
	* XmlDocument.cs (BaseURI):
	* XmlEntity.cs (BaseURI):
	* XmlNode.cs (BaseURI): Implemented.

svn path=/trunk/mcs/; revision=5180
2002-06-08 21:52:08 +00:00
Adam Treat 77766f3b35 * MoveToAttribute should stop on the requested attribute and return true,
otherwise return false.

svn path=/trunk/mcs/; revision=5168
2002-06-08 02:00:46 +00:00
Jason Diamond a71db778e8 When will I ever remember to add my new files before committing?
svn path=/trunk/mcs/; revision=4972
2002-05-27 19:18:16 +00:00
Jason Diamond 4d82c52aeb In System.Xml:
* XmlDocumentNavigator.cs: Added file to directory.

* XmlNode.cs (CreateNavigator): Implemented.
(InnerText): Implemented.

* XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
throwing exception.
(Load(XmlReader)): Allow for namespace qualified attributes.

* XmlElement.cs: Implemented GetAttribute(string, string) and both
GetAttributeNode overloads.
(SetAttributeNode(XmlAttribute)): Implemented.

* XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
and RemoveNamedItem(string, string).

* XmlLinkedNode.cs (PreviousSibling): Implemented.

* XmlTextReader.cs: Added code to maintain the order of attributes as
they're parsed. XML doesn't require this but Microsoft's parser does it and
matching them makes testing easier so now we have it, too.

In Test:

* XPathNavigatorTests.cs: Added file to directory.

* AllTests.cs: Added XPathNavigatorTests to suite.

* XmlTextReaderTests.cs: Added test to make sure attributes are ordered
like Microsoft's parser does it.

svn path=/trunk/mcs/; revision=4971
2002-05-27 19:17:13 +00:00
Miguel de Icaza 9e1a32a8ff Add small stub to allow for the assembly to compile
svn path=/trunk/mcs/; revision=4942
2002-05-26 03:01:15 +00:00
Miguel de Icaza aaa4e5c7c4 2002-05-26 Miguel de Icaza <[email protected]>
* XmlDocument.cs: Implement the Save methods.

svn path=/trunk/mcs/; revision=4935
2002-05-26 00:40:13 +00:00
Mike Kestner 67cccc9430 2002-05-08 Mike Kestner <[email protected]>
* XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.

svn path=/trunk/mcs/; revision=4425
2002-05-08 19:31:22 +00:00
Duncan Mak ed2ab56732 2002-04-28 Duncan Mak <[email protected]>;
* XmlSignificantWhitespace.cs (Value):
	* XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
	block. Added new private method, IsValidWhitespaceChar, for
	checking.

svn path=/trunk/mcs/; revision=4122
2002-04-28 19:38:48 +00:00
Duncan Mak e230186787 2002-04-16 Duncan Mak <[email protected]>
* XmlParserContext.cs (NameTable): Fixed a typo in the set block.

svn path=/trunk/mcs/; revision=3866
2002-04-16 18:32:20 +00:00
Adam Treat 1503838060 * Implemented ctor (string xmlFragment).
svn path=/trunk/mcs/; revision=3814
2002-04-14 21:20:16 +00:00
Adam Treat eb67401dcb * Implemented ReadInnerXml and ReadOuterXml. We still need to validate for
'well-formed' xml though.  I'll wait for Validating reader before adding that
bit ;-)

svn path=/trunk/mcs/; revision=3811
2002-04-14 20:46:49 +00:00
Duncan Mak 532d9eb391 2002-04-12 Duncan Mak <[email protected]>
* XmlAttribute.cs (Prefix): Added preliminary code for set block,
	added comment on work that needs to be done here. A new MonoTODO item.

	* XmlDocument.cs (ctor): Corrected constructor signature, changed
	parameter from 'NameTable' to 'XmlNameTable'.

	* XmlDocumentFragment.cs (InnerXml): Added missing set block.

svn path=/trunk/mcs/; revision=3793
2002-04-12 21:15:43 +00:00
Duncan Mak 09c1bfec7e 2002-04-12 Duncan Mak <[email protected]>
XmlCaseOrder.cs: Moved to System.Xml.XPath.

svn path=/trunk/mcs/; revision=3784
2002-04-12 16:37:44 +00:00
Duncan Mak 50f650319a 2002-04-10 Duncan Mak <[email protected]>
* XmlNodeReader.cs: Initial stubs for the class.

svn path=/trunk/mcs/; revision=3755
2002-04-10 23:29:51 +00:00
Kral Ferch 420c7f042a InnerXml, OuterXml, WriteContentTo, and WriteTo for most XmlNode derivatives.
svn path=/trunk/mcs/; revision=3704
2002-04-09 01:38:59 +00:00
Kral Ferch c8e7937354 Implementation of XmlDocument.CreateNode()
svn path=/trunk/mcs/; revision=3650
2002-04-06 04:19:40 +00:00
Adam Treat c07e5769bb MoveToAttribute* Fix 'if' brackets.
svn path=/trunk/mcs/; revision=3620
2002-04-05 03:13:38 +00:00
Adam Treat f582bf684b * Make sure we begin the search with the first attribute.
svn path=/trunk/mcs/; revision=3619
2002-04-05 01:11:09 +00:00
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