OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Internal entities removed from XML?

[ Lists Home | Date Index | Thread Index ]
  • To: "Mike Champion" <mc@xegesis.org>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] Internal entities removed from XML?
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Thu, 19 Dec 2002 07:17:25 -0800
  • Thread-index: AcKna7nFqv1yzlMOSRahxg+bIMSpxAABTglK
  • Thread-topic: [xml-dev] Internal entities removed from XML?

Yes, extra steps are needed to parse entities. The following code shows the two extra lines of code needed to enable entity expanding in the DOM 
using System;
using System.Xml; 

public class EntitiesTest
   public static void Main() {       
     XmlDocument doc = new XmlDocument(); 
     XmlValidatingReader vr = new XmlValidatingReader(new XmlTextReader("entities.xml")); 
     vr.ValidationType = ValidationType.None;

I remember asking about this a while ago and the answer  was related to last minute code changes for perf reasons. 

	-----Original Message----- 
	From: Mike Champion [mailto:mc@xegesis.org] 
	Sent: Thu 12/19/2002 6:30 AM 
	To: xml-dev@lists.xml.org 
	Subject: Re: [xml-dev] Internal entities removed from XML?

	On Thu, 19 Dec 2002 06:16:34 -0800, Dare Obasanjo <dareo@microsoft.com>
	> Mike, We have a bug which caused the behavior Doug Ransom saw. Please do
	> not treat a bug in one of our implementations of an XML parser as
	> indicative of any imagined Microsoft position towards the W3C XML 1.0
	> recommendation.
	I have come to understand in the course of this thread that the original
	point was about a bug rather than a feature   Thanks for the clarification.
	What about the assertion that the some extra setup is needed to parse
	entities?  Is that my misunderstanding of the "bug" or a "feature"?
	But once again, I don't want to tie my argument here to what MS does or
	does not do, nor to malign them by association with a position that is
	obviously unpopular! 
	The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
	initiative of OASIS <http://www.oasis-open.org>
	The list archives are at http://lists.xml.org/archives/xml-dev/
	To subscribe or unsubscribe from this list use the subscription
	manager: <http://lists.xml.org/ob/adm.pl>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS