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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top