Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Internal vs. external entity

Thread Tools

Internal vs. external entity

Posts: n/a


What is the difference between an internal and an external entity ?
The first one is defined in the internal subset (not in a separate DTD
file, but in the XML file itself - in DOCTYPE) while the second one is
defined in the external subset (in a separate DTD file) ? Or an
internal entity is defined in the file itself while an external entity
points to some other file (the external entity will be replaced by the
content of the file) ? Please clarify this issue.

Reply With Quote
Richard Tobin
Posts: n/a
In article <(E-Mail Removed) .com>,
Razvan <(E-Mail Removed)> wrote:

>What is the difference between an internal and an external entity ?

An internal entity is defined by a string giving the text of the
entity, e.g.

<!ENTITY foo "hello world">

An external entity is defined by a URL giving the location of the
entity text, e.g.


where that URL refers to a file containing the text.

An entity whose declaration appears in the internal subset is called
"internally declared" and one whose declaration appears in the
external subset is called "externally declared". This is quite
independent of whether it is an internal or external entity.

-- Richard
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to relate a SQL based entity with an Object based entity in Entity Framework markla ASP .Net 1 10-06-2008 09:42 AM
Cisco Nat Internal > External > Internal dcpearso Cisco 3 03-23-2008 07:01 AM
Access from internal hosts to internal servers using external address HangaS Cisco 2 04-19-2007 10:14 AM
Entity Name or Entity Number? Samuel van Laere HTML 4 02-24-2007 10:11 PM
cisco ios nat from internal->external->internal Bob Cisco 0 12-11-2006 01:05 PM