Age | Commit message (Collapse) | Author |
|
svn path=/trunk/mcs/; revision=111839
|
|
* DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
our own DictionaryBase-like generic type. It is to reduce
dependency on DictionaryBase which does not exist in 2.1 mscorlib.
(included in 2.0 as well so that we do not skip NUnit tests so far)
svn path=/trunk/mcs/; revision=83411
|
|
* SubtreeXmlReader.cs XmlFilterReader.cs :
exclude xsd stuff from NET_2_1 profile.
* DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
DTDValidatingReader2.cs XmlException.cs XmlReader.cs
XmlReaderSettings.cs XmlWriter.cs :
Make System.Xml.Core.dll build easier, using NET_2_1.
DTD support is simply cut at this stage (as it largely depends on
sys.xml.schema stuff).
svn path=/trunk/mcs/; revision=81332
|
|
* DTDObjectModel.cs : entity resolution method will be used in
the next DTD validating reader in 1.x.
svn path=/trunk/mcs/; revision=56966
|
|
* DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
attribute is #IMPLIED.
svn path=/trunk/mcs/; revision=55359
|
|
* DTDObjectModel.cs : (CreateXsdParticle) element particle was
missing occurence indicators.
svn path=/trunk/mcs/; revision=54470
|
|
* System.Configuration.dll.sources: added
IntegerValidatorAttribute.cs, IntegerValidator.cs,
LongValidator.cs and LongValidatorAttribute.cs.
* IntegerValidatorAttribute.cs, IntegerValidator.cs,
LongValidator.cs, LongValidatorAttribute.cs : new files.
svn path=/trunk/mcs/; revision=54458
|
|
* XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
receive both TextReader, XmlNodeType and BaseURI for entity
resolution (though it would be removed later).
* XmlParserInput.cs : Now to handle nested PE insertion and correct
BaseURI, it internally holds a stack of "input source".
* DTDObjectModel.cs,
DTDReader.cs :
Required fixes for XmlParserInput.
Handle BaseURI as expected. Added ActualUri for resolved actual
source URI (to resolve nested entities). Pass ActualUri to internal
XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
(well, yes I remember, it is problematic.)
Incorrect Base URI handling bug (part of #51495) is fixed.
svn path=/trunk/mcs/; revision=48443
|
|
* DTDReader.cs :
make sure to close parser input before parser stack pop.
* DTDValidatingReader.cs : ditto.
* DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
* XmlValidatingReaderTests.cs : let's test external DTD as well.
svn path=/trunk/mcs/; revision=45262
|
|
* DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
BaseURI which results in incorrect URI resolution.
svn path=/trunk/mcs/; revision=45177
|
|
* DTDObjectModel.cs : For simple type restriction creation it failed
when there is no enumerations (largely failed).
svn path=/trunk/mcs/; revision=44868
|
|
* XmlSchema.cs : XmlResolver.ResolveUri() may return null.
* XmlParserContext.cs : all the string properties must not be set as
null. Thanks to Joshua.
* XmlTextReader.cs,
DTDObjectModel.cs,
DTDReader.cs : XmlResolver.ResolveUri() may return null.
* XsdValidatingReader.cs : XmlResolver.ResolveUri() may return null.
* XslFunction.cs,
Compiler.cs : XmlResolver.ResolveUri() may return null.
svn path=/trunk/mcs/; revision=38084
|
|
* DTDObjectModel.cs : implemented lightweight XmlSchema generator.
svn path=/trunk/mcs/; revision=37469
|
|
* XmlReader.cs : not fixage, just explicitly formatted code a bit.
* XmlTextReader.cs,
XmlEntity.cs,
XmlAttributeCollection.cs,
XmlTextWriter.cs,
XmlElement.cs,
XmlNode.cs,
DTDObjectModel.cs,
XmlParserInput.cs,
DTDReader.cs,
XmlDocument.cs : warning removal.
svn path=/trunk/mcs/; revision=36587
|
|
* DTDObjectModel.cs,
DTDReader.cs,
XmlReader.cs,
XmlTextReader.cs,
XmlException.cs :
Added support for 2.0 XmlException.SourceUri property. Improved
exception handling to contain BaseURI everywhere in the parser.
svn path=/trunk/mcs/; revision=35820
|
|
* XmlTextReader2.cs : added. It is used to serve public API, plus
entity handling support.
* DTDObjectModel.cs,
DTDValidatingReader.cs,
XmlDocumentType.cs,
XmlParserContext.cs,
XmlTextReader.cs :
Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
source reader, and never handles tokenization.
The reason for "Mono.Xml2" is to avoid large changes in constructor.f
svn path=/trunk/mcs/; revision=35812
|
|
svn path=/trunk/mcs/; revision=30055
|
|
* DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
XmlTextWriter.cs : Globalization.
* XmlNode.cs : Fixed error message that confused node type.
svn path=/trunk/mcs/; revision=29825
|
|
* DTDObjectModel.cs,
XmlDocument.cs : Close stream always.
* XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
* XmlTextReader.cs : Namespace has was not done. Some tests depends on
this failure and to be fixed.
svn path=/trunk/mcs/; revision=28900
|
|
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
|
|
* DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
only when they are required.
* DTDReader.cs,
XmlParserInput.cs : raw tag string now don't have to be kept, while
it cost so much. Removed unused code. 20% to 30% memory got saved.
* XmlNotation.cs : removed unused code.
* XmlTextReader.cs : Removed unused code. ReadString() now uses
XmlReader's internal method. Fixed BaseURI to be conformant with
W3C XML InfoSet and (subsequently) xml:base specification (i.e.
reflect xml:base attribute correctly).
svn path=/trunk/mcs/; revision=25026
|
|
* DTDAutomata.cs,
DTDObjectModel.cs,
DTDReader.cs,
DTDValidatingReader.cs : made classes internal.
* XmlDocument.cs : removed extra FIXMEs.
* XmlNamedNodeMap.cs,
XmlResolver.cs,
XmlUrlResolver.cs :
Fixed incorrect method signature.
svn path=/trunk/mcs/; revision=23142
|
|
* DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
say goodbye to sys.collections.specialized.
(replaced the classes in that namespace with ArrayList or Hashtable)
svn path=/trunk/mcs/; revision=23073
|
|
* DTDObjectModel.cs : Limit external entity reference from DTD by 256.
foreach elimination. DTDParameterEntityDeclaration should set Root.
Compute attribute default value without raising an error.
(for non-error reporting reader)
* DTDReader.cs : Fixes for the above fixes. foreach elimination.
* DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
XmlText.cs : foreach elimination.
* XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
foreach elimination. Removed unnecesary methods.
* XmlTextReader.cs : code format refactory. Optimized some methods.
foreach elimination. Replaced Stack with string array.
Replaced StringBuilder with char array. Removed unnecessary methods.
svn path=/trunk/mcs/; revision=22891
|
|
* DTDObjectModel.cs : Never expand entity on ScanEntityValue().
* DTDValidatingReader.cs : XmlDeclaration node requires attributes
to be movable.
* XmlAttribute.cs,
XmlDocument.cs,
XmlDocumentFragment.cs,
XmlElement.cs,
XmlEntity.cs,
XmlLinkedNode.cs,
XmlNode.cs,
XmlNotation.cs :
Added namespace checking flag (required for such xml readers
that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
* XmlDocumentType.cs,
XmlEntity.cs,
XmlEntityReference.cs : The children of Entity and EntityReference
became correct. They now holds parsed nodes, but it is only when
they are appended to the document.
* XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
boolean checkNodeType argument. This method also tries to create
Entity's and EntityReference's child nodes. Also added internal
RemoveChild() with boolean checkNodeType argument.
* XmlNodeReader.cs : Quick hack for ResolveEntity() that became
broken with these changes. use InnerXml as input to entityReader.
* XmlTextReader.cs : XmlDeclaration's value LocalName should be the
same as Name. The names of DTD's pseudo attributes should be empty.
Fixed DTD node's Depth (was regarded as attribute value's depth).
svn path=/trunk/mcs/; revision=22767
|
|
* XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
predefined entity names.
* DTDObjectModel.cs : DTDxxxCollection now derives from
- DTDCollectionBase that derives from DictionaryBase.
- "Literal value" and "replacement text" are handled differently.
- Throw XmlException when external entity could not be resolved.
- Return ReplacementText for EntityValue.
* DTDReader.cs :
- Support IXmlLineInfo.
- Fixed IGNORE section handling to be more strict.
- Compute replacement text on reading entity declarations.
- Don't expand char references before getting literal entity value.
- Check not allowed parameter entity inside internal subset.
- Added ValidateWhitespaceNode() to check whitespace's Validity
Constraints on external elementdecl and standalone document.
- When invalid data against its datatype was found, don't throw
parse error.
- Other code refactory.
* XmlTextReader.cs :
- Check for invalid Text pattern "]]>" should not depend on line
info since it might not be supported.
- Check referenced character's validity (WFC).
svn path=/trunk/mcs/; revision=22730
|
|
* DTDObjectModel.cs :
- DTDNode's BaseURI should not always refer to that of DTD's.
- Use absolute URI's .ToString() instead of AbsolutePath.
* DTDReader.cs : Throw XmlException for illegal character references.
* DTDValidatingReader.cs :
- Share XmlResolver when the actual reader is XmlTextReader.
(MS's XmlValidatingReader and XmlTextReader do this.)
- Added its own EntityHandling property.
* XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
* XmlReader.cs,
XmlTextReader.cs : Added new NET_1_2 members.
* XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
* XmlEntityReference.cs : Forgot to add, the real fix by Boris.
svn path=/trunk/mcs/; revision=22509
|
|
* XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
atomizedNames argument.
* XmlTextReader.cs : Use new namespace manager methods.
Reduced NameTable.Add().
* DTDObjectModel.cs : fixed incorrectly commented-out line.
svn path=/trunk/mcs/; revision=21810
|
|
* DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
avoiding obvious exception.
* DTDReader.cs, XmlTextReader.cs : Some optimization.
Avoided extraneous PeekChar() and reduced name string creation.
svn path=/trunk/mcs/; revision=21797
|
|
* DTDValidatingReader.cs : Validity check and entity expansion were
incorrectly mixed.
* DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
Going to remove XmlInputStream. XmlStreamReader might be replacable.
svn path=/trunk/mcs/; revision=21242
|
|
* Added DTDReader.cs. It is almost importation of XmlTextReader.
* DTDObjectModel.cs :
- More .NET-ism. Properties took place of fields.
- Imported PE set from XmlTextReader. Added location info.
- Added DTDEntityBase common to PE and GE.
- More correct text declaration handling with new XmlTextReader.
* DTDValidatingReader.cs :
- Now uses entity resolving XmlTextReader to validate attributes
correctly. Implemented standalone
- Standalone and default related validity constraints check.
* XmlImplementation.cs: Implemented HasFeature().
* XmlNode.cs : Implemented Supports().
* XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
* XmlParserInput.cs : Removed extraneous members.
* XmlTextReader.cs :
- All DTD related functionality now goes to DTDReader.cs
- It became old simple TextReader input style.
- Implemented GetRemainder().
- Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
additional new private method ReadUntilEndTag().
- Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
ReadXmlDeclaration() now became simple.
- More strict entity reference check at SetEntityReferenceProperty()
- Removed extraneous members.
* XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
svn path=/trunk/mcs/; revision=18812
|
|
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
svn path=/trunk/mcs/; revision=17330
|
|
* DTDObjectModel.cs : added XmlResolver related members. Added
invalid entity recursion logic. Added encodingdecl check on textdecl.
* DTDValidatingReader.cs : It now implements IHasXmlParserContext.
* XmlChar.cs : IsPubidChar() should not allow TAB(	).
* XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
to receive DTDObjectModel to support other than XmlTextReader.
2) Most of its public member is now based on DTDObjectModel.
* XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2) ReadNode() now considers XmlParserContext's DTDObjectModel for
other than XmlTextReader (such as XmlValidatingReader).
* XmlNode.cs : code cleanup only.
* XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
* XmlTextReader.cs : 1) Illegal entity reference check logic was moved
from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
change on ReadEntityReference(). 3) ReadAttribute() now checks
reference to external entity reference. 4) Added textdecl encoding
check. 5) DTDObjectModel fields are now set correctly. 6) added
PERef markup nest check. 7) If PEDecl was not found, it might be WFC
violation, not only be VC violation. 8) ReadEntityDecl() now receives
its declared entity itself, and this method checks IsInternalSubset.
* XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2) ValidationType.None should be the same as Auto, not DTD (in the
future it should keep xml schema's default values).
Pending Stuff in XmlTextReader which breaks some NUnit tests;
1) SetEntityReferenceProperies() has check for illegal references.
2) ReadAttribute(bool) has similar check for illegal references.
svn path=/trunk/mcs/; revision=17218
|
|
* XmlInputStream.cs :
Fixed Initialize() that might result in incorrect buffer.
CanRead and Position should consider buffer (especially when the
stream was EOF).
CanSeek should use stream's CanSeek.
* XmlChar.cs : added GetPredefinedEntity().
* DTDObjectModel.cs :
- Modified ComputeDefaultValue() to use it.
- Fixed NormalizedDefaultValue not to expect parsed value as string.
- ResolveExternalEntity now detects invalid standalone specification.
- DTDParameterEntityDeclaration.Value is now changed to property and
keep its resolved value of literal value of external value using
new Resolve (XmlResolver) method (called only by XmlTextReader).
* DTDValidatingReader.cs :
- It now handles entity-expanded Whitespace and SignificantWhitespace
correctly. Does not raise unexpected text not allowed error.
- Fixed MoveToAttribute()s to move internal reader correctly, and
should be able to move in other cases than on element node.
- On Read()ing document type and ResolveEntity(), it now sets
XmlResolver on text reader.
- On ID constraints check and type verification, it now uses
normalized attribute or its tokenized value(s).
- Fixed ValidateAttributes() to add default values when
ValidationType is Auto.
* XmlParserContext.cs : added internal Dtd setter.
* XmlParserInput.cs :
InsertParameterEntityBuffer() should add surrounding whitespaces.
Removed unused code block.
* XmlTextReader.cs :
- Modified ReadReference(), ReadAttribute() and Dereference() to use
XmlChar.GetPredefinedEntity().
- When returning entity reference, it checks extity declaration
existence in certain conditions.
- ReadAttribute() now skips general entity replacement on reading
entity value.
- ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
- ReadXmlDeclaration() holds isStandalone, which might be used in
entity reference's well-formedness check.
- internal 'DTD' now uses XmlParserContext.Dtd.
- isInternalSubset was meaningless. Now uses input stack's Count.
- Added some required SkipWhitespace().
- Several parameter entity handling changes. Added GetPEValue(name).
TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
now uses its Resolve() when it was external PE. Now it uses value
buffer instead of currentTag, to efficiently read (included) PE.
CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
ImportAsPERef() simply inserts the value to currentInput.
ReadEntityDecl() also uses value buffer. Removed non-used methods.
- Default attributes are now stored in normalized form.
- Dereference() now considers non-expanding predefined entities.
* XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
is more correctly supported.
* XmlAttributeCollection.cs :
When removing default attribute, it immediately inserts the attribute.
RemoveAll() should consider default (not-removable) attributes.
* XmlDocument.cs :
Should have its default XmlResolver. Added Internal Resolver.
Some Load() should use its XmlResolver.
ImportNode() should copy its children in node level, not value level.
It also have to consider not to copy default attribute on importing
XmlElement.
* XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
* XmlAttribute.cs,
XmlDocumentFragment.cs.
XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
* XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
ResolveEntity() uses XmlResolver on entityReader.
svn path=/trunk/mcs/; revision=17202
|
|
* DTDObjectModel.cs :
- Added validation error check (and AddError(), Errors).
- Fixed ComputeDefaultValue() to handle various references correctly.
- DTDEntityDeclaration.EntityValue became property, and added
LiteralEntityValue. The new one holds resolved value.
Added ResolveExternalEntity(). It now required root in .ctor().
* DTDValidatingReader.cs :
- Now it handles namespaced attributes (as input to xsd validator).
- Added XmlResolver property as usual XmlReader.
- Added currentEntityHandling field so that it can stand changing
XmlValidatingReader's EntityHandling dynamically.
- FilterNormalization() now requires name for getting datatypes and
can stand for non-current attribute normalization.
- Splitted ReadContent() from Read() that can be called recursively
when expanding entities.
- Now handles Entity not found error *after* resolution of entities,
as MS.NET does.
- Read()ing DTD checks its Errors and raises validation error events.
In some situations, DTD parsing may detect VC error, not WFC error.
It also strictly checks NData existence.
- Handling of entity-resolved text is a bit changed and Read()ing
element, endElement, cdata now changed to switch collecting text
and collected text.
- content type ANY should allow texts.
- Added enumerated attribute validity check.
- Added Name/Names creation rule check for ID/IDREF/IDREFS.
- Added entity existence check for ENTITY/ENTITIES attributes.
- Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
- Fixed to remove extraneous #REQUIRED check.
- Contributing default attribute is now only applied to the case
ValidationType is DTD or None.
- ResolveEntity() now handles external entities.
Added Mono.Xml.IXmlParserContext interface support.
* XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
* XmlTextReader.cs :
- Fixed ReadAttributeValue() to reset returnEntityReference.
- Added bool MaybeTextDecl only for ResolveEntity().
- Fixed ReadWhitespace(). In fact its value is considered even if it
is in the end of the XML.
- Fixed ReadXmlDeclaration(). Now skips text declaration.
- CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
- ReadContentSpec() should set OrderType = OR for mixed model.
Fixed to set content element name correctly.
- ImportAsPERef() now skips Text declaration.
- Type of enumerated default attributes shold be string.
- Undeclared PE error is now handled as DTD's VC error, not
XmlTextReader's WFC error.
* XmlValidatingReader.cs : BaseURI should provide that of
original XmlReader's when read was not started yet.
Fixed XmlResolver to delegate to DTDValidatingReader.
* XmlAttributeCollection.cs : Acquiring attList declaration is
insufficient especially in case of lack of elementdecl.
* XmlChar.cs : (Maybe this is compact than XmlConstructs.)
added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
* XmlInputStream.cs : Removed "version" declaration check. It should
be done by XmlTextReader.
* XmlNodeReader.cs : added internal GetInternalParserContext() and now
it can be used in XmlValidatingReader.ResolveEntity().
ResolveEntity() sets XmlTextReader.MaybeTextDecl.
svn path=/trunk/mcs/; revision=17167
|
|
* DTDObjectModel.cs : Added BaseURI (but not used yet).
DTDAttListDeclaration.ctro() now requires root dtd object model.
* DTDValidatingReader.cs : Read() now expands EntityReference if
entity handling of validating reader is ExpandEntities.
* XmlReader.cs,
XmlTextReader.cs,
XmlNodeReader.cs,
XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
ReadOuterXml which are modified in MS.NET 1.1.
* XmlConstructs.cs : added int version of IsValid, IsInvalid,
IsContent, IsMarkup and IsNCNameStart.
Fixed int version of IsXXX() to check array index range.
Added IsValidName (string).
* XmlTextReader.cs :
- Read() handles document with non document element as an error.
- ReadText() and ReadCharacterReference() checkes illegal characters.
- ReadEntityReference() checks name validity.
- ReadProcessingInstruction() rejects such name that starts with
"xml" ignoring case, and checks attributes more strictly.
- ReadDeclaration() rejects unrecognized kind of declaration.
- In many places, added "required whitespace" check in DTD markup.
- DTD content model now disallows mixing use of '|' and ','.
svn path=/trunk/mcs/; revision=17012
|
|
* XmlParserContext.cs,
XmlAttribute.cs,
XmlElement.cs : Added internal Dtd and new internal XmlParserContext
.ctor() that takes DTDObjectModel. And then rewrote classes which
uses DTD information. Changed DocTypeName, InternalSubset, PublicId
and SystemId to use DTDObjectModel.
* DTDObjectModel.cs :
Added DTDObjectModel.InternalSubsetHasPEReference.
Added DTDEntityDeclaration.IsInternalSubset.
* XmlTextReader.cs :
Added internal GetInternalParserContext (to build entity reader).
Added private isIntSubset to check if the DTD subset is internal or
external, which might affect well-formedness constraints.
Changed GenerateDTDObjectModel to return the resulting DTD model.
* XmlEntityReference.cs : implemented BaseURI.
* XmlNodeReader.cs :
- Implemented ResolveEntity() and CanResolveEntity(). In fact
it leads too many changes on almost all methods and properties,
since they now must be aware of entityReader.
- fixed ownerElement that might be used to return from attribute
value to the element through parent attribtues.
- Now changed indexer to call GetAttribute() and moved actual logic
to the matching GetAttribute() methods.
svn path=/trunk/mcs/; revision=16946
|
|
* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
DTDNotationDeclarationCollection and replaced Hashtables with them.
Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
- It now reads attribute values into value collection.
- Renamed consumedDefaultAttribute to consumedAttribute, and
inContent to insideContent.
- GetAttribute() should allow reader's other node state than element.
- MoveToNextAttribute() should move when reader is placed other than
the first attribute.
- HandleError() now supports ValidationType.None (i.e. does nothing).
- ValidateAttribute() now collects and resolves attribute value
entity references. (On the other hand, it doesn't support
EntityHandling.ExpandCharEntity.)
- NodeType shouldn't return Attribute after ReadAttributeValue().
Now only Text is supported, but must also support EntityReference.
- Add FilterNormalization() and partially support Normalization.
svn path=/trunk/mcs/; revision=16615
|
|
* DTDObjectModel.cs,
DTDValidatingReader.cs : Completely rewrote attribute handling.
svn path=/trunk/mcs/; revision=16140
|
|
* XmlAttribute.cs,
XmlElement.cs : Fixed CloneNode() for bug #46129.
* XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
String.Format arguments, and basically XmlException.ctor(
IXmlLineInfo, message) seems good idea to use.
* XmlTextReader.cs :
- Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
required non-null context which don't have to exist.
- Added state check. Introduced 'currentState' and 'maybeTextDecl'
(for external entity) and removed hasEnteredDocument. Added
state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
- Replaced throw ReaderError() with throw new XmlException() and
fixed that some error hadn't thrown, only created.
- ResetState() should re-initialize existing private members other
than some specified fields.
- Private AddAttribute() should check if the same-named attribute
already exists.
* DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
svn path=/trunk/mcs/; revision=16131
|
|
* XmlDocument.cs : Load(string filename) should close its stream.
Small change for the latest DTDObjectModel change.
* XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
changed methods are only related to DTD stuff).
Now uses XmlSchemaDatatype for attribute type definition.
* XmlValidatingReader : initial (limited) support for DTD validation.
It can handle only XmlTextReader.
* DTDObjectModel.cs : changed radically for initial validation support.
* added DTDAutomata.cs and DTDValidatingReader.cs.
svn path=/trunk/mcs/; revision=15983
|
|
svn path=/trunk/mcs/; revision=12639
|
|
svn path=/trunk/mcs/; revision=12628
|
|
* added XmlParserInput.cs for multi xml document sources.
* added DTDObjectModel.cs (maybe temporary).
* XmlTextReader.cs :
+ fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
+ Some members such as LineNumber, ReadChar now uses XmlParserInput.
+ added support for Namespaces (namespace-ignorant parse available).
+ added support for XmlResolver.
+ replace SetReaderContext()/SetReaderFragment() with Initialize().
+ use NameTable in CreateNameString.
+ fixed ReadCData(). Now reads "]]]>" correctly.
+ support for DTD parse.
+ Read() now throws an error when it reached EOF while Depth > 0.
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
* XmlDocument.cs : ReadNode() now reads DocumentType.
* XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
* XmlEntity.cs,
XmlNotation.cs : added override LastLinkedChild (for doctype node).
* XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
* XmlElement.cs : bugfix for node removal of set_InnerXml.
* XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
(to append child XmlEntity into XmlDocumentType correctly.)
* XmlInputStream.cs : fixed to access file with FileAccess.Read.
svn path=/trunk/mcs/; revision=12619
|