XML entity entry

Discussion in 'XML' started by John Trunek, Apr 3, 2004.

  1. John Trunek

    John Trunek Guest

    I am working on a small test to merge XML documents using xml
    entities. I have put my test below, and it can also be found at
    http://gamma.uwplatt.edu/trunekj/xmlincludetest/test.xml. It works
    fine in IE, but if I use a netscape based browser (including mozilla)
    it won't merge. I'm sure I'm proably just overlooking something
    simple.

    <?xml version="1.0"?>
    <!DOCTYPE importTest [<!ENTITY includeme SYSTEM "data.xml">]>

    <test>
    &includeme;
    </test>
     
    John Trunek, Apr 3, 2004
    #1
    1. Advertising

  2. John Trunek wrote:

    > I am working on a small test to merge XML documents using xml
    > entities. I have put my test below, and it can also be found at
    > http://gamma.uwplatt.edu/trunekj/xmlincludetest/test.xml. It works
    > fine in IE, but if I use a netscape based browser (including mozilla)
    > it won't merge. I'm sure I'm proably just overlooking something
    > simple.
    >
    > <?xml version="1.0"?>
    > <!DOCTYPE importTest [<!ENTITY includeme SYSTEM "data.xml">]>
    >
    > <test>
    > &includeme;
    > </test>


    Mozilla's XML parser doesn't read external DTDs or entities as far as I
    know. That is allowed for a non-validating XML processor:
    http://www.w3.org/TR/2004/REC-xml-20040204/#sec-conformance
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Apr 3, 2004
    #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. AtomicBob
    Replies:
    14
    Views:
    938
    Toby Inkster
    May 2, 2006
  2. Samuel van Laere

    Entity Name or Entity Number?

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

    Entity, problem with entity key

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

Share This Page