XML I10-002 - XML Master: Professional V2 Exam
Page: 2 / 8
Total 40 questions
Question #6 (Topic: )
Process the following "XML Document" according to the method shown by "DOM
Processing," and output "article" (by print method). Select which of the following correctly
describes what should be in (1) for "DOM Processing"
[XML-I10-002-6.0/XML-I10-002-4_2.png]
Processing," and output "article" (by print method). Select which of the following correctly
describes what should be in (1) for "DOM Processing"
[XML-I10-002-6.0/XML-I10-002-4_2.png]
A. content.getText()
B. content.getNodeValue()
C. content.getChildNode().getNodeValue()
D. content.getFirstChild().getNodeValue()
Answer: D
Question #7 (Topic: )
Push the Exhibit Button to load the referenced "XML Document," and process XML using
"DOM Processing". Select which of the following is the most appropriate expression of the
results under XML 1.0. Line feeds and/or indents are not reflected in the results.
"DOM Processing". Select which of the following is the most appropriate expression of the
results under XML 1.0. Line feeds and/or indents are not reflected in the results.
A. <root xmlns="urn:xmlmaster:EX"> <data1>string value</data1> <ns:data2 xmlns:ns="urn:xmlmaster:EX"> <data1>string value</data1> </ns:data2> </root>
B. <root xmlns="urn:xmlmaster:EX"> <data1>string value</data1> <data2> <data1>string value</data1> </data2> </root>
C. <root xmlns="urn:xmlmaster:EX"> <ns:data2 xmlns:ns="urn:xmlmaster:EX" xmlns=""> <data1 xmlns="urn:xmlmaster:EX">string value</data1> </ns:data2> </root>
D. <root xmlns="urn:xmlmaster:EX"> <data2> <data1>string value</data1> </data2> </root>
Answer: C
Question #8 (Topic: )
When processing the following "XML Document" according to the method shown by "DOM
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. 44
B. 43
C. 42
D. 33
E. 32
F. 31
Answer: E
Question #9 (Topic: )
Push the Exhibit Button to load the referenced "XML Document 1" and "XML Document 2,"
and process XML using "DOM Processing".
[XML-I10-002-6.0/XML-I10-002-6_2.png]
Select which of the following is the most appropriate expression of the results under XML
1.0. Line feeds and/or indents are not reflected in the results.
and process XML using "DOM Processing".
[XML-I10-002-6.0/XML-I10-002-6_2.png]
Select which of the following is the most appropriate expression of the results under XML
1.0. Line feeds and/or indents are not reflected in the results.
A. <ns:root2 xmlns:ns="urn:xmlmaster:EX2" ns:info="value" xmlns:ns="urn:xmlmaster:EX1" />
B. <ns:root2 NS1:info="" xmlns:ns="urn:xmlmaster:EX2" xmlns:NS1="urn:xmlmaster:EX1" />
C. <ns:root2 NS1:info="value" xmlns:ns="urn:xmlmaster:EX2" xmlns:NS1="urn:xmlmaster:EX1" />
D. <ns:root2 ns:info="value" xmlns:ns="urn:xmlmaster:EX2" />
Answer: C
Question #10 (Topic: )
Assume that the "XML Document" is changed to the "Results XML Document." Select
which XSLT style sheet correctly performs the transformation. Note that the XSLT
processor can output transformation results as a document. [Results XML Document]
<ZZZ><YYY>lmnop</YYY></ZZZ>
which XSLT style sheet correctly performs the transformation. Note that the XSLT
processor can output transformation results as a document. [Results XML Document]
<ZZZ><YYY>lmnop</YYY></ZZZ>
A. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="exam.xsl" /> <xsl:template match="/"> <xsl:apply-templates select="root" /> </xsl:template> <xsl:template match="root"> <AAA><BBB><xsl:value-of select="data" /></BBB></AAA> </xsl:template> </xsl:stylesheet> [exam.xsl] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="//root"> <ZZZ><YYY><xsl:valu
B. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="exam.xsl" /> <xsl:template match="/"> <xsl:apply-templates select="root" /> </xsl:template> <xsl:template match="root"> <AAA><BBB><xsl:value-of select="data" /></BBB></AAA> </xsl:template> </xsl:stylesheet> [exam.xsl] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="//root"> <ZZZ><YYY><xsl:value
C. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="exam.xsl" /> <xsl:template match="/"> <xsl:apply-templates select="root" /> </xsl:template> <xsl:template match="root"> <xsl:template match="root"> <AAA><BBB><xsl:value-of select="data" /></BBB></AAA> <AAA><BBB><xsl:value-of select="data" /></BBB></AAA> </xsl:template> </xsl:stylesheet> [exam.xsl] <xsl:stylesheet version="1.0" xmlns:xsl="h
D. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">D.<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="exam.xsl" /> <xsl:template match="/"> <xsl:template match="/"> <xsl:apply-templates select="root" /> <xsl:apply-templates select="root" /> </xsl:template> <xsl:template match="root"> <xsl:template match="root"> <AAA><BBB><xsl:value-of select="data" /></BBB></AAA> </xsl:tem
Answer: A