XML ignorableWhiteSpaces

Discussion in 'XML' started by Groleo, Mar 16, 2005.

  1. Groleo

    Groleo Guest

    Is there a way to write a DTD, so the spaces are ignored inside an
    elements tag?
    I am using a validating parser :p
     
    Groleo, Mar 16, 2005
    #1
    1. Advertising

  2. In article <>,
    Groleo <> wrote:

    >Is there a way to write a DTD, so the spaces are ignored inside an
    >elements tag?
    >I am using a validating parser :p


    No. An XML parser won't ignore whitespace in the content of elements.

    If you declare an element to have element-only content, a validating
    parser will tell the application that the whitespace between the
    elements is in element-only content, but what the application does with
    that information is up to it.

    [Incidentally, "inside a tag" means inside the angle brackets. You
    presumably meant *between* the start and end tags.]

    -- Richard
     
    Richard Tobin, Mar 16, 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. Bomb Diggy
    Replies:
    0
    Views:
    456
    Bomb Diggy
    Jul 28, 2004
  2. Tony Prichard
    Replies:
    0
    Views:
    756
    Tony Prichard
    Dec 12, 2003
  3. Mark Van Orman

    embedding xml in xml as non-xml :)

    Mark Van Orman, Sep 14, 2004, in forum: XML
    Replies:
    5
    Views:
    487
    Patrick TJ McPhee
    Sep 15, 2004
  4. Andy
    Replies:
    0
    Views:
    550
  5. Erik Wasser
    Replies:
    5
    Views:
    485
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page