Internal vs. external entity

Discussion in 'XML' started by Razvan, Jan 28, 2005.

  1. Razvan

    Razvan Guest

    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
     
    Razvan, Jan 28, 2005
    #1
    1. Advertising

  2. In article <>,
    Razvan <> 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
     
    Richard Tobin, Jan 28, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    4
    Views:
    432
  2. Samuel van Laere

    Entity Name or Entity Number?

    Samuel van Laere, Feb 24, 2007, in forum: HTML
    Replies:
    4
    Views:
    1,740
    Jukka K. Korpela
    Feb 24, 2007
  3. markla
    Replies:
    1
    Views:
    580
    Steven Cheng
    Oct 6, 2008
  4. Norm
    Replies:
    3
    Views:
    2,877
  5. ThatsIT.net.au

    Entity, problem with entity key

    ThatsIT.net.au, Sep 6, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    1,244
    ThatsIT.net.au
    Sep 7, 2009
Loading...

Share This Page