[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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(); #if ENTITY_HANDLING XmlValidatingReader vr = new XmlValidatingReader(new XmlTextReader("entities.xml")); vr.ValidationType = ValidationType.None; doc.Load(vr); #else doc.Load("entities.xml"); #endif Console.WriteLine(doc.OuterXml); } } 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@x...] Sent: Thu 12/19/2002 6:30 AM To: xml-dev@l... Cc: Subject: Re: Internal entities removed from XML? On Thu, 19 Dec 2002 06:16:34 -0800, Dare Obasanjo <dareo@m...> wrote: > 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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|