DOCTYPE and attribute

Discussion in 'XML' started by Bill, Aug 17, 2009.

  1. Bill

    Bill Guest

    I am parsing with .net 2.0 xmlreader. If the parser reads an
    xmlnodetype.documenttype node, can the reader.hasattributes ever be
    true? I want to know if I need to add code to iterate through the
    attributes using MoveToNextAttribute. According to MSDN's definitions
    of the various node types, it appears the DocumentType does not have
    attributes, only Elements. But in reading some articles on
    DocumentType, most state that it can contain attributes. My guess is
    they really mean that the DTD can specify attributes of an Element,
    rather than the DocumentType delaration actually having attributes. Is
    my understanding correct?

    Bill
    Bill, Aug 17, 2009
    #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. TheKeith
    Replies:
    9
    Views:
    1,156
    Leif K-Brooks
    Oct 22, 2003
  2. coconet
    Replies:
    1
    Views:
    593
    Walter Wang [MSFT]
    Jan 3, 2008
  3. kanpeter
    Replies:
    0
    Views:
    1,331
    kanpeter
    Oct 26, 2010
  4. dkmd_nielsen
    Replies:
    6
    Views:
    213
    Joel VanderWerf
    Nov 26, 2008
  5. Larry Lindstrom
    Replies:
    19
    Views:
    1,284
    Jonathan N. Little
    Jun 12, 2012
Loading...

Share This Page