• Post Reply Bookmark Topic Watch Topic
  • New Topic

Revised DOM/SAX mock exam

 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there!
The DOM/SAX mock exam has been revised a bit. If you have time please run through it and if you see any problems please let us know. Please indicate the question number, what the problem is, and the proposed solution (reword the question, change the answer, etc.).
Thanks!
 
Joel Amoussou
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, thank you for putting the mock together.
In question No.7, the following statement is FALSE:
"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."
The fact is that the ContentHandler interface in SAX2, defines a processingInstruction() method to receive notification of a processing instruction. The method signature is:
public void processingInstruction(java.lang.String target, java.lang.String data)
throws SAXException
-------
Joel Amoussou
IBM XML Certification Practice Test
http://www.xmlmentor.net/xmlexamsim.htm
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Joel. I'm working on this.
Keep the comments coming!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!