Getting default value of an attribute from the DTD file

Discussion in 'XML' started by Alexander, Jul 11, 2004.

  1. Alexander

    Alexander Guest

    Please, excuse me if the question is a basic one but I have not found
    any hint neither on XML4C samples, nor on Apache site. I'm using
    XML4C. I'm parsing an xml file and I'm getting to an attribute which
    is not explicitly specified in the xml file. The parser brings me its
    default value specified in DTD (if any) as the attribute's value.

    The question is: How do I get the default value if the attribute
    explicitly appears in the xml file with some value?

    Any help will be greatly appreciated. TIA.

    Alexander
    Alexander, Jul 11, 2004
    #1
    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. Ajay Goel
    Replies:
    1
    Views:
    1,230
    Johannes Koch
    Jul 17, 2003
  2. test
    Replies:
    2
    Views:
    1,995
    Oliver Wong
    Jul 28, 2006
  3. Replies:
    1
    Views:
    4,239
    Joe Kesselman
    Aug 2, 2006
  4. Sjoerd Mullender
    Replies:
    2
    Views:
    330
    Sjoerd Mullender
    Feb 13, 2008
  5. dkmd_nielsen
    Replies:
    6
    Views:
    200
    Joel VanderWerf
    Nov 26, 2008
Loading...

Share This Page