Deck 25: Xml Etext Only
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/74
Play
Full screen (f)
Deck 25: Xml Etext Only
1
Which of the following XML fragments contains an error?
A.half dollar
B.
C.
D.quarter
A.
B.

C.

D.

2
What does DOM stand for?
A.Data Object Model
B.Data Oriented Model
C.Document Object Model
D.Definition Object Model
A.Data Object Model
B.Data Oriented Model
C.Document Object Model
D.Definition Object Model
Document Object Model
3
A ________ parser reports the building blocks of an XML document.
A.tree-based
B.XPath
C.streaming
D.DOM
A.tree-based
B.XPath
C.streaming
D.DOM
streaming
4
Which of the following is a correctly-formatted XML fragment for a course element and two child elements, courseID and credits.The course ID is CS605 and it has 3 credit hours.
A. CS605 3
B. CS605 3
C. CS605 3
D. CS605 3
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following best describes the line of code?
Have a fantastic day!P1P1_E
A.Mixed content
B.Element content
C.Attribute content
D.Combined content
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following statements is correct?
A.Elements cannot have attributes.
B.An XML document starts out with an HTML declaration and contains elements and text.
C.An element must contain text or elements, not both.
D.An attribute is appropriate only if it tells something about the data but is not part of the data itself.
A.Elements cannot have attributes.
B.An XML document starts out with an HTML declaration and contains elements and text.
C.An element must contain text or elements, not both.
D.An attribute is appropriate only if it tells something about the data but is not part of the data itself.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following statements is correct?
A.Elements describe how to interpret attributes.
B.In XML, attribute values must be enclosed in quotes.
C.Mixed content allows you to have control over the order in which elements appear.
D.You should always use mixed content for elements that describe data sets.
A.Elements describe how to interpret attributes.
B.In XML, attribute values must be enclosed in quotes.
C.Mixed content allows you to have control over the order in which elements appear.
D.You should always use mixed content for elements that describe data sets.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is true about HTML and XML?
A.HTML describes the meaning of the data and XML also describes the meaning of the data
B.HTML describes the website to the browser while XML describes the meaning of the data
C.HTML describes the website to the browser while XML describes how to display the data
D.HTML describes the meaning of the data while XML describes how to display the data
A.HTML describes the meaning of the data and XML also describes the meaning of the data
B.HTML describes the website to the browser while XML describes the meaning of the data
C.HTML describes the website to the browser while XML describes how to display the data
D.HTML describes the meaning of the data while XML describes how to display the data
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
9
An XPath describes a node or_______, using a syntax that is similar to directory paths.
A.folder
B.set of nodes
C.parser
D.model
A.folder
B.set of nodes
C.parser
D.model
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
10
Which parser gives you an overview of the complete document so you can analyze it?
A.grammar parser
B.tree-based parser
C.block parser
D.streaming parser
A.grammar parser
B.tree-based parser
C.block parser
D.streaming parser
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
11
To read and analyze the contents of an XML document, you need an XML ____________.
A.parser
B.document analyzer
C.path
D.tokenizer
A.parser
B.document analyzer
C.path
D.tokenizer
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
12
A ___________ is a program that reads a document, checks whether it is syntactically correct, and takes some action as it processes the document.
A.browser
B.compiler
C.document builder
D.parser
A.browser
B.compiler
C.document builder
D.parser
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following statements is correct?
A.XML-formatted data files are resilient to change.
B.In XML, start-tags need not have matching end-tags.
C.XML describes how to display data.
D.HTML is a special case of XML.
A.XML-formatted data files are resilient to change.
B.In XML, start-tags need not have matching end-tags.
C.XML describes how to display data.
D.HTML is a special case of XML.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
14
The XML standard recommends that every XML document start with ____.
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following statements is correct?
A.In XML, every start-tag must have a matching end-tag.
B.XML files are readable by computer programs but not by humans.
C.Attribute values need not be enclosed in quotes.
D.An element cannot contain mixed content.
A.In XML, every start-tag must have a matching end-tag.
B.XML files are readable by computer programs but not by humans.
C.Attribute values need not be enclosed in quotes.
D.An element cannot contain mixed content.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
16
The ____ standard defines interfaces and methods to analyze and modify the tree structure that represents an XML document.
A.DTD
B.SAX
C.DOM
D.API
A.DTD
B.SAX
C.DOM
D.API
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
17
____________ is an extensible syntax that can be used to specify many
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is not true when using XML?
A.Attribute values must be enclosed in quotes
B.Tags are case-sensitive
C.Indents matter to the parser
D.Every start-tag must have a matching end-tag
A.Attribute values must be enclosed in quotes
B.Tags are case-sensitive
C.Indents matter to the parser
D.Every start-tag must have a matching end-tag
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
19
In XML, an attribute has a name and a(n) ____________________.
A.variable
B.element
C.value
D.object
A.variable
B.element
C.value
D.object
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
20
A _____________ reads and reports on each element of an XML document as it reads it.
A.DOM parser
B.tree-based parser
C.block parser
D.streaming parser
A.DOM parser
B.tree-based parser
C.block parser
D.streaming parser
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
21
Where is the newDocumentBuilder method?
A.In the DocumentBuilder class.
B.In the DocumentFactoryBuilder class.
C.In the DocumentFactory class.
D.In the DocumentBuilderFactory class.
A.In the DocumentBuilder class.
B.In the DocumentFactoryBuilder class.
C.In the DocumentFactory class.
D.In the DocumentBuilderFactory class.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
22
Where is the createElement method located?
A.DocumentBuilder class.
B.newBuilder class.
C.DocumentBuilder interface.
D.Document interface.
A.DocumentBuilder class.
B.newBuilder class.
C.DocumentBuilder interface.
D.Document interface.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
23
Assuming that path is properly instantiated object of type XPath and doc is the document below, what is the value of result in the statement
A.1
B.2
C.3
D.4

A.1
B.2
C.3
D.4
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
24
To write a DOM document, you need to use an object that implements the _________ interface.
A.DocumentBuilder
B.Serializable
C.Serializer
D.LSSerializer
A.DocumentBuilder
B.Serializable
C.Serializer
D.LSSerializer
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
25
The package javax.xml.parsers contains:
A.Element and Text
B.Document and DocumentBuilder
C.DocumentBuilder and DocumentBuilderFactory
D.Element and Document
A.Element and Text
B.Document and DocumentBuilder
C.DocumentBuilder and DocumentBuilderFactory
D.Element and Document
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
26
What method do you use to insert a node into an XML document?
A.insertNode method.
B.createNode method.
C.createElement method.
D.insertElement method.
A.insertNode method.
B.createNode method.
C.createElement method.
D.insertElement method.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
27
What kind of object do you need to create a new, empty XML document?
A.DocumentBuilder
B.newBuilder
C.newInstance
D.newDocumentBuilder
A.DocumentBuilder
B.newBuilder
C.newInstance
D.newDocumentBuilder
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
28
To get a DocumentBuilder object, first call the static ____ method of the DocumentBuilderFactory class.
A.newInstance
B.document
C.connection
D.newDocument
A.newInstance
B.document
C.connection
D.newDocument
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
29
What is the purpose of the XPath?
A.Describes a node or set of nodes in an XML document
B.Describes the logic flow of an XML document
C.Describes the path to an XML document
D.Describes the nodes from the path of the XML document
A.Describes a node or set of nodes in an XML document
B.Describes the logic flow of an XML document
C.Describes the path to an XML document
D.Describes the nodes from the path of the XML document
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
30
When converting an XML document to Java classes, how should you think about XML elements?
A.Elements are equivalent to classes.
B.Elements are like instance variables.
C.Elements are similar to superclasses.
D.Elements can be instance variables, classes, or methods.
A.Elements are equivalent to classes.
B.Elements are like instance variables.
C.Elements are similar to superclasses.
D.Elements can be instance variables, classes, or methods.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
31
Given the following code, what will the XPath name(/items/item[2]/*[2]) generate?
A.price
B.product
C.description
D.quantity
![Given the following code, what will the XPath name(/items/item[2]/*[2]) generate? A.price B.product C.description D.quantity](https://d2lvgg3v3hfg70.cloudfront.net/TB7392/11eb9782_fdc5_23f5_b9fe_959070a2e832_TB7392_00.jpg)
A.price
B.product
C.description
D.quantity
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
32
What kind of object do you need to read an XML document?
A.DocumentBuilder
B.newBuilder
C.newInstance
D.newDocumentBuilder
A.DocumentBuilder
B.newBuilder
C.newInstance
D.newDocumentBuilder
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
33
You set element attributes with the _________method.
A.setElementAttributes
B.setElement
C.setAttributes
D.setAttribute
A.setElementAttributes
B.setElement
C.setAttributes
D.setAttribute
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
34
Using the grammar notation in your textbook, the expression ::= a means:
A."article must be equal to a"
B."article can be replaced with a or not a"
C."article can be replaced with a"
D."article cannot be equal to"
A."article must be equal to a"
B."article can be replaced with a or not a"
C."article can be replaced with a"
D."article cannot be equal to"
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
35
To generate an object of a class that implements the Document interface, you need a __________.
A.DocumentGenerator
B.DocumentBuilder
C.DocumentValidator
D.ObjectBuilder
A.DocumentGenerator
B.DocumentBuilder
C.DocumentValidator
D.ObjectBuilder
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
36
Given the following code, what will the XPath /items/item[2]/product/price generate?
A.29.95
B.19.95
C.2
D.4
![Given the following code, what will the XPath /items/item[2]/product/price generate? A.29.95 B.19.95 C.2 D.4](https://d2lvgg3v3hfg70.cloudfront.net/TB7392/11eb9782_fdc5_4b06_b9fe_5572712a36bf_TB7392_00.jpg)
A.29.95
B.19.95
C.2
D.4
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
37
To insert text, you need the _________methods.
A.insertElement and setElement
B.createNode and insertChild
C.createTextNode and appendChild
D.insertTextNode and insertChild
A.insertElement and setElement
B.createNode and insertChild
C.createTextNode and appendChild
D.insertTextNode and insertChild
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
38
Given the following code, what will the XPath /items/item[0]/quantity select?
A.19.95
B.4
C.8
D.The element does not exist.
![Given the following code, what will the XPath /items/item[0]/quantity select? A.19.95 B.4 C.8 D.The element does not exist.](https://d2lvgg3v3hfg70.cloudfront.net/TB7392/11eb9782_fdc4_d5d4_b9fe_e1fab568cf61_TB7392_00.jpg)
A.19.95
B.4
C.8
D.The element does not exist.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
39
Which of the following is true about XML streaming parsers and tree-based parsers?
A.Tree-based parsers require little memory while streaming parsers require a large amount of memory
B.Tree-based parsers read the XML input one token at a time while the streaming parsers builds an overview that represents the parsed document
C.Tree-based parsers give a complete overview of the data while streaming parsers give information bits at a time
D.Tree-based parsers report the building blocks of an XML document while a streaming parser gives the overall view of the XML document
A.Tree-based parsers require little memory while streaming parsers require a large amount of memory
B.Tree-based parsers read the XML input one token at a time while the streaming parsers builds an overview that represents the parsed document
C.Tree-based parsers give a complete overview of the data while streaming parsers give information bits at a time
D.Tree-based parsers report the building blocks of an XML document while a streaming parser gives the overall view of the XML document
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
40
Given the following code, what will the XPath count(/items/*) generate?
A.1
B.2
C.3
D.4

A.1
B.2
C.3
D.4
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
41
The inclusion of a DTD in an XML document allows you tell the parser to validate the document.The ___________ method of the DocumentBuilderFactory class allows you to turn on validation.
A.setValidator
B.setValidating
C.documentBuilder
D.setFactory
A.setValidator
B.setValidating
C.documentBuilder
D.setFactory
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
42
Using the grammar notation in your textbook, the expression
means:
A."article must be equal to a and the"
B."article can be replaced with a or the"
C."article can be replaced with a and the"
D."article cannot be equal a or the"

A."article must be equal to a and the"
B."article can be replaced with a or the"
C."article can be replaced with a and the"
D."article cannot be equal a or the"
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
43
To make the parser ignore white space between elements, you should call the __________ method of the DocumentBuilderFactory class.
A.setIgnoringElementContentWhitespace
B.setElementContentWhitespace
C.setIgnoringContentWhitespace
D.setIgnoringElementContent
A.setIgnoringElementContentWhitespace
B.setElementContentWhitespace
C.setIgnoringContentWhitespace
D.setIgnoringElementContent
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
44
Using the grammar notation in your textbook, which rule means that a verb can be either jumps over or eats?
A. ::= "jumps over" | "eats" |
B. ::= jumps over | eats
C. ::= jumps | over | eats
D. ::= | |
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
45
An element that is declared as _______ in a DTD may not have any children.
A.PCDATA
B.ELEMENT
C.NULL
D.EMPTY
A.PCDATA
B.ELEMENT
C.NULL
D.EMPTY
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
46
When referencing an external DTD (one not on the current file system), you must supply a(n) ____ for locating the DTD.
A.URL
B.domain name
C.IP address
D.element
A.URL
B.domain name
C.IP address
D.element
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following attribute types describes any sequence of character in a DTD?
A.#REQUIRED
B.#IMPLIED
C.CDATA
D.ATTLIST
A.#REQUIRED
B.#IMPLIED
C.CDATA
D.ATTLIST
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
48
The #PCDATA rule means ____________.
A.the children can consist of any numeric data.
B.the children can consist of 0 or more elements.
C.the children can consist of any character data.
D.any children allowed.
A.the children can consist of any numeric data.
B.the children can consist of 0 or more elements.
C.the children can consist of any character data.
D.any children allowed.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
49
In XML, a DTD is introduced with the ___________ declaration.
A.FIXED
B.REQUIRED
C.IMPLIED
D.DOCTYPE
A.FIXED
B.REQUIRED
C.IMPLIED
D.DOCTYPE
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
50
Given the following DTD expression, which section element is valid? 

Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following represents the declaration of a DTD contained within the XML document?
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
52
The XML encoding for the ">" character is:
A.&gr;
B.&greaterThan;
C.>
D.<
A.&gr;
B.&greaterThan;
C.>
D.<
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
53
Using the grammar notation in your textbook, the expression
means:
A."digit must be equal to 012"
B."digit can be replaced with 1 or 2"
C."digit must start with 0 then 1 then 2"
D."digit can be replaced with 0 or 1 or 2"

A."digit must be equal to 012"
B."digit can be replaced with 1 or 2"
C."digit must start with 0 then 1 then 2"
D."digit can be replaced with 0 or 1 or 2"
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
54
What package will you use to import DocumentBuilder?
A.javax.swing.DocumentBuilder
B.javax.xml.DocumentBuilder
C.javax.parsers.DocumentBuilder
D.javax.xml.parsers.DocumentBuilder
A.javax.swing.DocumentBuilder
B.javax.xml.DocumentBuilder
C.javax.parsers.DocumentBuilder
D.javax.xml.parsers.DocumentBuilder
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
55
Why is generating an XML file as a sequence of print statements not a good idea?
A.It takes up more memory to generate an XML document
B.It makes it easy to build an illegal XML document
C.It skips random lines of code, thus not building the desired XML document
D.It is easy to save the XML document in the wrong place
A.It takes up more memory to generate an XML document
B.It makes it easy to build an illegal XML document
C.It skips random lines of code, thus not building the desired XML document
D.It is easy to save the XML document in the wrong place
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
56
The XML encoding & is the replacement for the ____ character.
A.@
B.!
C.%
D.&
A.@
B.!
C.%
D.&
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
57
A ____________ is a sequence of rules that describes the valid attributes for each element and the valid child elements for each element type.
A.DOM
B.Protocol
C.DTD
D.Data Definition Type
A.DOM
B.Protocol
C.DTD
D.Data Definition Type
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
58
How can a DTD specify that a course child element in a semester element is optional?
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
59
What package will you use to import Document?
A.javax.swing.Document
B.org.w3c.xml.Document
C.javax.parsers.Document
D.org.w3c.dom.Document
A.javax.swing.Document
B.org.w3c.xml.Document
C.javax.parsers.Document
D.org.w3c.dom.Document
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
60
An EMPTY element is:
A.an element that may have zero or more children.
B.an element that has no value.
C.an element whose value is the null string.
D.an element that may not have any children.
A.an element that may have zero or more children.
B.an element that has no value.
C.an element whose value is the null string.
D.an element that may not have any children.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
61
Which definition in an XML schema restricts the contents of quantity to an integer?
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
62
In an attribute definition in a DTD, a #FIXED declaration of V means ____________.
A.the attribute must be either unspecified or contain V.
B.the attribute is unspecified.
C.the attribute is optional.
D.the attribute is required.
A.the attribute must be either unspecified or contain V.
B.the attribute is unspecified.
C.the attribute is optional.
D.the attribute is required.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
63
How does an XML document reference a DTD?
I The document may contain the DTD
II The document may refer to a DTD that is stored elsewhere
III The document may be set to the DTD
A.Only I
B.Only II
C.I and II
D.I and III
I The document may contain the DTD
II The document may refer to a DTD that is stored elsewhere
III The document may be set to the DTD
A.Only I
B.Only II
C.I and II
D.I and III
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
64
In an attribute definition in a DTD, an #IMPLIED declaration means ____________.
A.the attribute is valid.
B.the attribute is required.
C.the attribute is optional.
D.the attribute is implied.
A.the attribute is valid.
B.the attribute is required.
C.the attribute is optional.
D.the attribute is implied.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
65
When you parse an XML file with a DTD, ____________.
A.you should tell the parser to ignore the white space.
B.you don't need to request validation.
C.you should supply the URL for locating the DTD.
D.your should tell the parser to convert all white space to text.
A.you should tell the parser to ignore the white space.
B.you don't need to request validation.
C.you should supply the URL for locating the DTD.
D.your should tell the parser to convert all white space to text.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
66
The symbol #PCDATA refers to text, called "parsed character data." What does it mean?
A.It parses the data into characters
B.It automatically replaces special characters
C.The character data can contain any characters
D.Declares any character for the attributes
A.It parses the data into characters
B.It automatically replaces special characters
C.The character data can contain any characters
D.Declares any character for the attributes
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
67
Suppose price is an element and currency is an attribute, to represent that a price element must contain currency, we must specify ____ .
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
68
What is one reason to have the DOM parser ignore white space in an XML document?
A.White space may make the element names invalid.
B.The parser will otherwise make unneeded nodes of the white space.
C.The parser will otherwise add white space to the elements.
D.White space cannot be streamed.
A.White space may make the element names invalid.
B.The parser will otherwise make unneeded nodes of the white space.
C.The parser will otherwise add white space to the elements.
D.White space cannot be streamed.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
69
The method setIgnoringElementContentWhitespace is in the _____ class:
A.DocumentDataDefinition
B.DocumentFactory
C.DocumentFactoryBuilder
D.DocumentBuilderFactory
A.DocumentDataDefinition
B.DocumentFactory
C.DocumentFactoryBuilder
D.DocumentBuilderFactory
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
70
When referencing an external DTD (one not on the current file system), you must ____________.
A.supply a DOCTYPE.
B.supply a URL.
C.supply both DOCTYPE and URL.
D.use the SYSTEM reserved word.
A.supply a DOCTYPE.
B.supply a URL.
C.supply both DOCTYPE and URL.
D.use the SYSTEM reserved word.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
71
A number of useful advanced XML technologies have been standardized.Among them is:
A.HTML
B.HXML
C.XHTML
D.W3C
A.HTML
B.HXML
C.XHTML
D.W3C
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
72
In an attribute definition in a DTD, a V declaration means ____________.
A.use the value V or a value that contains V.
B.use the value V if the attribute is unspecified.
C.use the value V if the attribute is optional.
D.use the value V if the attribute is required.
A.use the value V or a value that contains V.
B.use the value V if the attribute is unspecified.
C.use the value V if the attribute is optional.
D.use the value V if the attribute is required.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
73
For elements that contain text, the DTD rule is:
A.
B.
C.
D.
A.
B.
C.
D.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck
74
Mixed content is ____________.
A.any sequence of numeric data and character data.
B.any sequence of character data followed by character data.
C.any sequence of character data and specified elements.
D.any sequence of numeric data and specified elements.
A.any sequence of numeric data and character data.
B.any sequence of character data followed by character data.
C.any sequence of character data and specified elements.
D.any sequence of numeric data and specified elements.
Unlock Deck
Unlock for access to all 74 flashcards in this deck.
Unlock Deck
k this deck