Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample DOM/SAX Question #6

 
Jeff X Williams
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following question is from the DOM/SAX sample exam on this site. The answer given is (a), but I don't think it is correct. The SAX ContentHandler interface has a processingInstruction() method. Am I missing something, or is this sample exam just really lame?
6. When Processing Instructions are a part of your parsing process, DOM should be used, since SAX cannot be used to detect a Processing Instruction in a document.
a)true
b)false
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are right, even the SAX 1.0 DocumentHandler interface (now deprecated, This interface has been replaced by the SAX2 ContentHandler interface, which includes Namespace support) had the method 'processingInstruction'.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic