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 Answer : a Pls. Explain(since SAX has processing Instruction callback)
Both DOM and SAX have the mechanism to handle processing instructions. DOM has a node type ProcessingInstruction and SAX has a notification method processingInstruction() as part of its ContentHandler interface. Hence, the answer to this has to be false in my opinion.