[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Internal entities removed from XML?


xml internal reference
What are you talking about?  Do you have some examples?  There are
several examples in the help files that come with the framework that
show how to work with XML entities (both internal and external DTD).
These examples show using entities with XmlDocument, XmlNodeReader, and
XmlValidatingReader.  If you search the .NET help files for the word
"entity", you will find tons of information on how to work with entities
in your XML files.  How does this add up to "Microsoft has essentially
removed entity references from XML"? You make some awfully sweeping
statements that seem to be belied by the rather extensive .NET help
documentation on using XML entities.

I would really like you to send me a copy of a well-formed XML file that
will make my .NET xml processor "barf".

-----Original Message-----
From: Doug Ransom [mailto:Doug.Ransom@p...] 
Sent: Tuesday, December 17, 2002 8:46 PM
To: Xml-Dev@Lists. Xml. Org (E-mail)
Subject:  Internal entities removed from XML?

With the Microsoft .net (dotnet) platform, it seems one really has to go
out of ones way to develop code which can read an XML file with entity
references, even internal entity references.  I ran into this when I
tried some XSLT programs that worked successfully with saxon (java based
xslt processor) and msxsl (COM based xslt processor) with a .net based
XSLT processor.  

The default mechanismsms (XMLReader and XMLDocument) to load and read
XML documents or XSLT programs simply fail when presented with a valid
XSLT program which is serialized in valid XML.  

I wonder if a whole bunch of existing XML files that work fine with
existing applications are going to break new applications designed to
work with the same XML documents (i.e. a .net XSLT processor to replace
msxsl).  I suspect there are a fair number of valid XML documents out
there that simply won't parse under .net.

I think Microsoft has essentially removed entity references from XML,
because now document authors won't dare produce XML documents that the
majority of programs built on the .net platform will barf on.  Users
will be pretty upset at an author if they receive an XML document from
them which won't load with their .net program.  

The WS-Interoperability profile also suggests entities not be used in
SOAP messages.  It seems like there are two versions of XML now;  one
that works with .net and WS-I, and an  XML 1.0 document with a DOCTYPE
section that cannot be parsed by what will replace the most commonly
used XML Platform (as .net replaces COM on windows).

Any comments? Maybe removing entity references is a good thing (I know
implementators of embedded system platforms think so), and mabe
Microsoft is doing the right thing by making entity expansion a thing
developers have to go out of their way to make their software  perform.


Doug Ransom
 


-----------------------------------------------------------------
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.