468,134 Members | 1,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,134 developers. It's quick & easy.

Internal vs. external entity


Hi

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.
Regards,
Razvan

Jul 20 '05 #1
1 6022
In article <11**********************@f14g2000cwb.googlegroups .com>,
Razvan <mi*****@mailcity.com> 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.

<!ENTITY foo SYSTEM "http://example.org/myent.ent">

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
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by qazmlp | last post: by
11 posts views Thread by Douglas Reith | last post: by
reply views Thread by Shawn Modersohn | last post: by
6 posts views Thread by Christopher Benson-Manica | last post: by
8 posts views Thread by Carlos J. Quintero | last post: by
3 posts views Thread by al.cpwn | last post: by
reply views Thread by punjabinezzie | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.