DOCTYPE and attribute

B

Bill

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top