XML I10-002 - XML Master: Professional V2 Exam
Page: 1 / 8
Total 40 questions
Question #1 (Topic: )
Which of the following correctly describes the DOM (Level 2) Node interface?
A. The Node interface can be used to change the value (nodeValue) of the DOM element node (Element)
B. The Node interface can be used to change the name (nodeName) of the DOM element node (Element)
C. The Node interface can be used to change the value (nodeValue) of the DOM attribute node (Attr)
D. The Node interface can be used to change the name (nodeName) of the DOM attribute node (Attr)
Answer: C
Question #2 (Topic: )
Select the following DOM (Level 2) methods that can add an attribute node (Attr) to an
element node (Element). (Multiple answers possible. Select two.)
element node (Element). (Multiple answers possible. Select two.)
A. appendChild
B. hasAttribute
C. setAttribute
D. setAttributeNode
Answer: C,D
Question #3 (Topic: )
Which of the following describes the most correct call order of the ContentHandler interface
methods when parsing the following "XML Document" using a validating SAX parser?
This question reflects line feeds within the XML Document.
methods when parsing the following "XML Document" using a validating SAX parser?
This question reflects line feeds within the XML Document.
A. startDocument - startElement - ignorableWhitespace - startElement - characters - endElement - ignorableWhitespace -endElement - endDocument
B. startDocument - startElement - characters - startElement - characters - endElement - characters - endElement -endDocument
C. startDocument - startElement - startElement - characters - endElement - endElement - endDocument
D. startDocument - startElement - startElement - characters - endElement - ignorableWhitespace - endElement -endDocument
Answer: B
Question #4 (Topic: )
Under the SAX specification, which of the following is a method for determining whether to
validate a document with the SAX parser?
validate a document with the SAX parser?
A. Use the getFeature method of XMLReader interface to look up the feature value under the name "http://xml.org/sax/features/validation"
B. Use the parse method of XMLReader interface to investigate whether an error occurs
C. Use the parseWithValidating method of XMLReader interface
D. Use the isValidatingParser method of XMLReader interface
Answer: A
Question #5 (Topic: )
When processing the following "XML Document" according to the method shown by "SAX
Processing," which of the following correctly describes the output results (print method
output)?
Processing," which of the following correctly describes the output results (print method
output)?
A. East<![CDATA[&]]>West
B. East&West
C. EastWest
D. East
Answer: B