Commit Graph
19 Commits
Author SHA1 Message Date
Atsushi Eno f59aed0bd7 Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:13:47 +09:00
Atsushi Eno 88edd02629 2006-09-26 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs :
	  Removed bogus return statement in Value. Fixed bug #79496.

	* XmlDeclarationTests.cs : added bug #79496 case.


svn path=/trunk/mcs/; revision=65921
2006-09-26 15:52:09 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Atsushi Eno 087038913c 2004-04-24 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs : More strict check on InnerText and Value.

svn path=/trunk/mcs/; revision=25933
2004-04-24 12:10:48 +00:00
Atsushi Eno a5e122f6a2 2004-04-24 Atsushi Enomoto <[email protected]>
* DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
	  XmlNode.cs : Culture independency fix.

svn path=/trunk/mcs/; revision=25929
2004-04-24 10:15:09 +00:00
Atsushi Eno d86a6f346b 2003-10-19 Atsushi Enomoto <[email protected]>
* XmlChar.cs : added WhitespaceChars, used in common.
	* XmlConvert.cs,
	  XmlDeclaration.cs,
	  XmlParserInput.cs,
	  XmlTextReader.cs,
	  XmlTextWriter.cs : String.Trim()
	* XmlConvert.cs : shifted XmlConstructs to XmlChar.
	* XmlTextReader.cs : Implemented Normalization.

svn path=/trunk/mcs/; revision=19188
2003-10-19 09:23:29 +00:00
Atsushi Eno d82dfb04a8 2003-03-19 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs : quick fix, not to use regex for set_Value.

svn path=/trunk/mcs/; revision=12664
2003-03-18 21:13:20 +00:00
Atsushi Eno c93d3354b4 2002-12-01 Atsushi Enomoto <[email protected]>
* XmlNode.cs (RemoveChild):
		bugfixed when XmlNode is Document OwnerDocument is null
	* XmlDeclaration.cs (Value):
		bugfixed regular expression pattern.
	* XmlDocument.cs (CreateNavigator): bugfixed access modifier.

svn path=/trunk/mcs/; revision=9281
2002-11-30 17:22:35 +00:00
Atsushi Eno 755b1236a8 * XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
	* XmlImplementation.cs : added 'internalNameTable' property.
	* XmlDocument.cs :
	    + now allows "" for 'standalone' in CreateXmlDeclaration.
	    + implemented 'Implementation' property and constructor with it.
	    + added logic for appending name table (but still no use)
	    + implemented property 'DocumentType'
	      (but without internalSubset parsing. wait for next update.)
	* XmlNode.cs :
	    + modified AppendChild() and RemoveChild() to support fragment.
	    + modified AppendChild() to remove newChild from its parent
	      when newChild is already in the other place.
	    + modified RemoveChild() to set parentNode null.
	    + modified ConstructDOM() to create DocumentType,
	      and fixed access modifier ('internal protected' to 'internal')
	* XmlLinkedNode.cs : fixed 'NextSibling' to return null
		when its parent is null.
	* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
		property to enable AppendChild() for this class.
	* XmlTextReader.cs : appended private publicId and systemId fields.

svn path=/trunk/mcs/; revision=8624
2002-10-28 17:15:07 +00:00
Atsushi Eno 3ffced1659 * XmlDeclaration.cs : Fixed ParseInput() more parse strictly.
(now uses Regex.Match() of Regex const object. )
	* XmlNode.cs : ConstructDOM() now creates XmlDeclaration node.
	* XmlTextReader.cs : ReadProcessingInstruction() now reads
	  XMLDeclaration.

	* XmlWriter.cs : Implemented main of WriteAttributes().
	  TODO: 'defattr' parameter ignored; DTD must be implemented.

svn path=/trunk/mcs/; revision=8495
2002-10-23 16:44:47 +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
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 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
Duncan Mak edff44185c 2002-02-25 Duncan Mak <[email protected]>
* XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.

svn path=/trunk/mcs/; revision=2622
2002-02-25 01:27:59 +00:00
Daniel Weber f856b27cc4 * XmlAttribute.cs re-arrange source file to put attributes first. Implement
value, modify constructor

* XmlAttributeCollection.cs - Fix bug on owner document check, add TODO - Make
insert operations match XmlNode insertion on null pointer refNode.

* XmlDeclaration.cs - Add copyright info to top of file

* XmlDocument.cs - implement localName, Name

* XmlDocumentFragment.cs : first cut at implementation.  Implement name,
localName

* XmlElement.cs - implement value, modify constructor

* XmlNames_1_0.cs - add IsXmlName function, fix bug in IsXmlChar()

* XmlNode.cs - implement BaseURI and value, add more comments

* XmlWriter.cs - begin stubbing out methods

* Added XmlUtil.cs - Internal class. Contains static utility methods that are non-Xml version
specific, mostly character encoding conversions

* Added XmlInputSource.cs - internal class to handle streaming Xml input.

* Added DomEncodingType.cs - internal enueration class to detail supported encodings
(ISO-8859-n, UTF-8/UTF-16, eg)

svn path=/trunk/mcs/; revision=1467
2001-11-29 10:49:39 +00:00
Daniel Weber bf7e29a3c2 Implement basic functionality, still missing CloneNode, WriteTo, innerXml, outerXml
svn path=/trunk/mcs/; revision=1414
2001-11-22 02:42:31 +00:00
Daniel Weber 04639cc5f0 finish adding stubs to begin work on XmlDocuemnt.Load(file)
Most files are merely placeholders.

svn path=/trunk/mcs/; revision=1390
2001-11-19 20:30:08 +00:00