Professional Documents
Culture Documents
A.
B.
C.
D.
Load each document into DOM, and use XPath to extract required
information.
A.
Use SAX instead of DOM to replace the prices as the items are
parsed.
B.
C.
D.
A.
Use XSLT to transform the document into a structure that can be parsed in one pass.
B.
C.
D.
B.
C.
D.
A.
B.
C.
Schema errors could easily lead to XML documents which are not well-
formed and valid.
D.
A.
B.
C.
D.
(Choose 2)
A.
ebXML
B.
XLink
C.
XSLTC
D.
JAXB
E.
XSL-FO
8)Assume that a W3C XML Schema Language document uses the following
prefix declaration:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
A.
B.
C.
D.
http://www.acompany.com/namespace:Node
B.
http://www.bcompany.com/namespace:Node
C.
http://www.ccompany.com/namespace:Node
D.
Node
A.
B.
C.
D.
11)Assume that a W3C XML Schema Language document uses the following
prefix declaration:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
B.
C.
D.
12)A developer can use an XML schema or a DTD to govern which of the
following XML document validation requirements?
A.
B.
C.
D.
13)An application will access data that will reside in XML documents
stored in an RDBMS. What are two vendor-independent choices for
storing each document in the RDBMS?
(Choose 2)
A.
In a table view.
B.
As a SOAP envelope.
C.
D.
As RDBMS meta-data.
E.
A.
B.
Persist the XML as a CLOB into the RDBMS, and convert to PDF on a
per request basis.
C.
Convert each received document to PDF, and persist both the PDF and
XML into the RDBMS.
15)What are the typical steps using JAXP to create a SAX parser to
process XML documents?
A.
DocumentBuilder-> SAXParser->XMLReader->DefaultHandler
B.
C.
SAXParserFactory->SAXParser->XMLReader->DefaultHandler
D.
(Choose 2)
A.
Call XMLReader.setContentHandler().
B.
Call XMLReader.setErrorHandler().
C.
E.
A.
Break the document into several smaller fragments and enable HTTP
parallel rendering to re-join them on the client.
B.
Create a stub XHTML file to load onto the browser and then use AJAX
calls to retrieve the remainder of the document in the background.
C.
D.
A.
XML data is transformed on server-side when client browser requests.
B.
C.
D.
<xsl:template name="Do">
<xsl:param name="j" select="1"/>
<xsl:if test="$j <= 5">
<xsl:value-of select="$j"/>
<xsl:call-template name="Do">
<xsl:with-param name="j" select="$j + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
A.
01234
B.
12345
C.
15
D.
12345
A.
Define the field as a schema type xsd:date and the browser styles
the date selector.
B.
C.
D.
A.
Render the XML using the XSL-FO on the server-side and then covert
to PDF.
B.
Render the XML into the HTML including all style information using
XSLT on the server-side.
C.
Render the XML into the HTML with XSLT on the server-side then
supply the CSS to clients.
D.
Send XML data and stylesheets to the Web browsers to let the client
process the stylesheets.
A.
The base schema should wrap the required elements within the complex
type with an <xsd:restriction> tag.
B.
C.
D.
A.
B.
Ease of Authoring.
C.
Ease of Processing.
D.
A.
B.
C.
Test the value of x for NaN (by comparing its value to 0 div 0),
then set a default value if needed.
D.
Test the value of x with the XPath function not($x), then set a
default value if needed.
25)A developer is designing a new schema so that an element's
attribute is both required and unique. Which of the following will
enforce this rule?
A.
B.
Use the <xs:key> tag inside the element definition that references
the attribute with a <xs:field> tag.
D.