CS311 – Introduction to Web Services Development: Midterm Important MCQs (129 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS311 Course Page · CS311 Subjective Pack (43 Q&As)
-
__________ provides extra information about XML elements.
Topic: XML Fundamentals & Syntax
- Tags
- Delimiter
- Attributes ✓ Correct answer
- Entities
-
Attributes are always placed inside the __________ of an element.
Topic: XML Fundamentals & Syntax
- header
- None of the above
- footer
- opening tag ✓ Correct answer
-
Which one is used to add a unique label to an element?
Topic: XML Fundamentals & Syntax
- Attributes ✓ Correct answer
- Elements
- Entities
- Comments
-
Name conflicts in XML elements can easily be avoided using ___________.
Topic: XML Fundamentals & Syntax
- xml schema
- name prefix ✓ Correct answer
- empty elements
- entities
-
What does XML stand for?
Topic: XML Fundamentals & Syntax
- X-Markup Language
- eXtra Modern Link
- Example Markup Language
- eXtensible Markup Language ✓ Correct answer
-
XML's goal is to replace HTML.
Topic: XML Fundamentals & Syntax
- True
- False ✓ Correct answer
-
What is the correct syntax of the declaration which defines the XML version?
Topic: XML Fundamentals & Syntax
- <xml version="1.0" />
- <?xml version="1.0" />
- <?xml version="1.0"?> ✓ Correct answer
-
An XML document is called a well-formed document if __________.
Topic: XML Fundamentals & Syntax
- it adheres to the syntax rules specified by the XML 1.0 specification, in that it must satisfy both physical and logical structures ✓ Correct answer
- it is stored together with a DTD in the same file
- all of its elements are written in lowercase
- it contains exactly one attribute
-
Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
Topic: XML Fundamentals & Syntax
- Yes ✓ Correct answer
- No
-
Is this a "well formed" XML document? <?xml version="1.0"?> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body>
Topic: XML Fundamentals & Syntax
- Yes
- No ✓ Correct answer
-
Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age="29">Tove</to> <from>Jani</from> </note>
Topic: XML Fundamentals & Syntax
- Yes ✓ Correct answer
- No
-
Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age=29>Tove</to> <from>Jani</from> </note>
Topic: XML Fundamentals & Syntax
- No ✓ Correct answer
- Yes
-
Which statement is true?
Topic: XML Fundamentals & Syntax
- All XML elements must have a closing tag ✓ Correct answer
- All XML documents must have a DTD or an XML schema
- All XML elements must be lowercase
- All of the statements are true
-
Which statement is true?
Topic: XML Fundamentals & Syntax
- XML tags are case sensitive
- XML elements must be properly nested
- XML documents must have the root element
- All the statements are true ✓ Correct answer
-
XML preserves white spaces.
Topic: XML Fundamentals & Syntax
- True ✓ Correct answer
- False
-
XML attribute values must always be enclosed in quotes.
Topic: XML Fundamentals & Syntax
- False
- True ✓ Correct answer
-
XML attributes must be assigned values.
Topic: XML Fundamentals & Syntax
- True ✓ Correct answer
- False
-
XML attributes must be in double quotes.
Topic: XML Fundamentals & Syntax
- True
- False ✓ Correct answer
-
XML elements cannot be empty.
Topic: XML Fundamentals & Syntax
- True
- False ✓ Correct answer
-
Which is not a correct name for an XML element?
Topic: XML Fundamentals & Syntax
- <Note>
- <h1>
- <1dollar> ✓ Correct answer
- All 3 names are incorrect
-
Which is not a correct name for an XML element?
Topic: XML Fundamentals & Syntax
- <age>
- <first name> ✓ Correct answer
- <NAME>
- All 3 names are incorrect
-
Which is not a correct name for an XML element?
Topic: XML Fundamentals & Syntax
- All 3 names are incorrect
- <xmldocument>
- <7eleven> ✓ Correct answer
- <phone number>
-
Which statement is true?
Topic: XML Fundamentals & Syntax
- Attributes must occur in defined order
- None of the statements are true ✓ Correct answer
- Attributes must always be present
- Both statements are true
-
The entity reference < represents ______ character.
Topic: XML Fundamentals & Syntax
- < ✓ Correct answer
- >
- &
- "
-
What are XML entities used for?
Topic: XML Fundamentals & Syntax
- Entities define shortcuts to standard attributes
- Entities define shortcuts to standard text or special characters ✓ Correct answer
- Entities define shortcuts to standard elements
-
Which of the following XML fragments is well-formed?
Topic: XML Fundamentals & Syntax
- <customer id=3456><name>John Smith</name></customer>
- <customer id="3456"><address/><zip code="3456"/></customer> ✓ Correct answer
-
What is an XML instance?
Topic: XML Fundamentals & Syntax
- An XML element
- An XML attribute
- An XML document ✓ Correct answer
-
What can XML do?
Topic: XML Fundamentals & Syntax
- The standard for automating data exchange between systems ✓ Correct answer
- The standard for displaying data on the Web
- The standard for a cross-platform programming language
-
Which is false?
Topic: XML Fundamentals & Syntax
- XML is used to describe only structured data
- XML is used only on the Internet
- XML is used to represent only simple data
- All of the above ✓ Correct answer
-
XML is a subset of SGML.
Topic: XML Fundamentals & Syntax
- True ✓ Correct answer
- False
-
Which of the following is not the building block of XML documents?
Topic: XML Fundamentals & Syntax
- Elements
- Lists ✓ Correct answer
- Attributes
- Entities
-
Which of the following is not the building block of XML documents?
Topic: XML Fundamentals & Syntax
- Elements
- Attributes
- Entities
- DTD ✓ Correct answer
-
XML often contains new line, or _______ space characters, between nodes.
Topic: XML Fundamentals & Syntax
- White ✓ Correct answer
- Blank
- Empty
- Null
-
What does DTD stand for?
Topic: DTD, CDATA & PCDATA
- Document Type Definition ✓ Correct answer
- Dynamic Type Definition
- Do The Dance
- Direct Type Definition
-
There is a way of describing XML data, how?
Topic: DTD, CDATA & PCDATA
- XML uses a DTD to describe the data ✓ Correct answer
- XML uses XSL to describe data
- XML uses a description node to describe data
-
The Document Type Definition must be stored in an external file.
Topic: DTD, CDATA & PCDATA
- True
- False ✓ Correct answer
-
The DTD starts with
Topic: DTD, CDATA & PCDATA
- [ ]
- <!DOCTYPE delimiter ✓ Correct answer
- { }
- <?DOCTYPE delimiter
-
If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax:
Topic: DTD, CDATA & PCDATA
- <DOCTYPE root-element [element-declarations]>
- <!DOCTYPE [element-declarations]>
- <DOCTYPE root-element (element-declarations)>
- <!DOCTYPE root-element [element-declarations]> ✓ Correct answer
-
If the DTD is pointing to ____________ then it is called External Subset.
Topic: DTD, CDATA & PCDATA
- Internal Path
- External DTD
- Internal URL
- External Path ✓ Correct answer
-
Which one is the correct syntax to declare zero or one occurrences of child element "message"?
Topic: DTD, CDATA & PCDATA
- <!ELEMENT note (message+)>
- <!ELEMENT note (message?)> ✓ Correct answer
- <!ELEMENT note (message*)>
- None
-
The ? sign declares that the child element "message" can occur ____ inside the "note" element.
Topic: DTD, CDATA & PCDATA
- zero or one time ✓ Correct answer
- one or more times
- zero or more times
- exactly one time
-
Which of the following DTD statements indicates that an ELEMENT can contain any combination of parsable data?
Topic: DTD, CDATA & PCDATA
- <!ELEMENT element-name EMPTY>
- None of the given
- <!ELEMENT element-name ANY> ✓ Correct answer
- <!ELEMENT element-name (#PCDATA)>
-
In DTD, empty elements are declared with the keyword ________.
Topic: DTD, CDATA & PCDATA
- IDLE
- EMPTY ✓ Correct answer
- NULL
- VOID
-
In a DTD, attributes are declared with an _________ declaration.
Topic: DTD, CDATA & PCDATA
- ATTLIST ✓ Correct answer
- ELEMENT
- ENTITY
- NOTATION
-
Use _________ keyword if you don't have an option for a default value, but still want to force the attribute to be present.
Topic: DTD, CDATA & PCDATA
- #REQUIRED ✓ Correct answer
- #IMPLIED
- #FIXED
- #DEFAULT
-
In XML, the term PCDATA stands for _________.
Topic: DTD, CDATA & PCDATA
- Predefined Character Data
- Pure Character Data
- None of the given options
- Parsed Character Data ✓ Correct answer
-
Parsed Character Data (PCDATA) is a term used about _______ data that will be parsed by the XML parser.
Topic: DTD, CDATA & PCDATA
- Character
- Text ✓ Correct answer
- Element
- None of the given options
-
CDATA stands for _________.
Topic: DTD, CDATA & PCDATA
- None of the given options
- Character Data ✓ Correct answer
- Controlled Document
- Controlled Data
-
The term CDATA is used about __________ data that should not be parsed by the XML parser.
Topic: DTD, CDATA & PCDATA
- audio
- text ✓ Correct answer
- video
- Null
-
For the XML parser to ignore a certain section of your XML document, which syntax is correct?
Topic: DTD, CDATA & PCDATA
- <CDATA> Text to be ignored </CDATA>
- <xml:CDATA[ Text to be ignored ]>
- <PCDATA> Text to be ignored </PCDATA>
- <![CDATA[ Text to be ignored ]]> ✓ Correct answer
-
XML DOM is:
Topic: XML DOM & Nodes
- Dynamic in nature
- All of the given ✓ Correct answer
- Traversable
- Platform independent
-
In the XML DOM, each node is a(n) __________.
Topic: XML DOM & Nodes
- Property
- Parser
- Object ✓ Correct answer
- Root
-
Which of the following specifies the type of node?
Topic: XML DOM & Nodes
- nodeType ✓ Correct answer
- nodeValue
- nodeName
- None of the given options
-
If the node type is _______ it is an element node.
Topic: XML DOM & Nodes
- 1 ✓ Correct answer
- 2
- 3
- 9
-
__________ evaluates an XML document as a DOM structure.
Topic: XML DOM & Nodes
- Compiler
- Interpreter
- Parser ✓ Correct answer
- Translator
-
Which XML DOM object represents a node in the node tree?
Topic: XML DOM & Nodes
- The nodeList object
- The node object ✓ Correct answer
- The document object
-
Which property of an XML document represents the root node?
Topic: XML DOM & Nodes
- The documentElement property ✓ Correct answer
- The rootNode property
- The firstChild property
- The nodeName property
-
Following are important node properties except:
Topic: XML DOM & Nodes
- nodeAddress ✓ Correct answer
- nodeName
- nodeValue
- nodeType
-
Nodes can be navigated using node ____________.
Topic: XML DOM & Nodes
- block
- relationships ✓ Correct answer
- class
- array
-
Whenever we access the nodes in the node tree via the relationship between these nodes, it is called _________.
Topic: XML DOM & Nodes
- Navigating Nodes ✓ Correct answer
- Parsing Nodes
- Compiling Nodes
- Validating Nodes
-
When you want to extract the value of each element, this is called ____________.
Topic: XML DOM & Nodes
- "Traversing the last tree"
- "Traversing the first tree"
- "Traversing the node tree" ✓ Correct answer
- "Traversing first and last tree"
-
The _________ property of a node list is the number of nodes in the list.
Topic: XML DOM & Nodes
- Length ✓ Correct answer
- Size
- Count
- Index
-
By using the _________, we can loop through a node list.
Topic: XML DOM & Nodes
- node type
- title
- length property ✓ Correct answer
- None of the given options
-
Which of the following is used to get the value of an attribute?
Topic: XML DOM & Nodes
- getAttribute() ✓ Correct answer
- nodeValue
- getAttributeNode
- getElementsByTagName()
-
When a node is removed, ___________________________.
Topic: XML DOM & Nodes
- its child nodes are not removed
- None of the above
- all its child nodes are also removed ✓ Correct answer
- its child nodes navigated to other nodes
-
The ____________ method can also be used to remove a text node.
Topic: XML DOM & Nodes
- childText()
- textChild()
- removeChild() ✓ Correct answer
- updateText()
-
The _______ method can be used to remove the specified node.
Topic: XML DOM & Nodes
- deleteChild()
- reChild()
- dropChild()
- removeChild() ✓ Correct answer
-
Element nodes do not have a __________ value.
Topic: XML DOM & Nodes
- text ✓ Correct answer
- video
- loop
- audio
-
Which one of the following is not an advantage of XML DOM?
Topic: XML DOM & Nodes
- It is modifiable
- Language and Platform independent
- It is traversable
- Operational speed is slower than SAX ✓ Correct answer
-
_________ is used to transform an XML document into another XML or HTML document.
Topic: XSL, XPath & Linking
- XSLT ✓ Correct answer
- XPath
- XQuery
- DTD
-
What does XSL stand for?
Topic: XSL, XPath & Linking
- eXtra Style Language
- eXtensible Stylesheet Language ✓ Correct answer
- eXtensible Style Listing
- eXpandable Style Language
-
What is a correct way of referring to a stylesheet called "mystyle.xsl"?
Topic: XSL, XPath & Linking
- <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?> ✓ Correct answer
- <link type="text/xsl" href="mystyle.xsl" />
- <stylesheet type="text/xsl" href="mystyle.xsl" />
-
Which of the following is not part of XSL?
Topic: XSL, XPath & Linking
- XQuery ✓ Correct answer
- XPath
- XSLT
- XPointer
-
XSLT is essentially a tool for translating what kind of documents?
Topic: XSL, XPath & Linking
- XML ✓ Correct answer
- DOM
- RTF
-
XPath expressions are used to __________ in XML documents.
Topic: XSL, XPath & Linking
- Navigate ✓ Correct answer
- Transform
- Validate
- Parse
-
___________ provides methods for creating internal and external links within XML documents.
Topic: XSL, XPath & Linking
- Xpath
- XLink ✓ Correct answer
- Xquery
- Xpointer
-
XPointer is the short name for the ___________.
Topic: XSL, XPath & Linking
- XML Pointer Language ✓ Correct answer
- Base Pointer
- External Pointer
- Link Pointer
-
Which method does SAX use for processing XML documents?
Topic: SAX & DOM Parsing
- Event Based ✓ Correct answer
- DocumentHandler
- Document
- Tree based
-
Which method does DOM use for processing XML documents?
Topic: SAX & DOM Parsing
- Event Based
- DocumentHandler
- Document
- Tree based ✓ Correct answer
-
Which interfaces are part of the SAX2 API?
Topic: SAX & DOM Parsing
- ContentHandler, ErrorHandler, DTDHandler, EntityResolver ✓ Correct answer
- DocumentHandler, ErrorHandler, DTDHandler, EntityHandler
- DocumentHandler, Errorhandler, DTDHandler, SchemaHandler
- DocumentHandler, Errorhandler, DTDHandler, EntityResolver
-
Which is the best description of the "characters()" method?
Topic: SAX & DOM Parsing
- a method of DOM API to insert character data in the XML document
- a method of the SAX ContentHandler interface to receive notification of the presence of character data ✓ Correct answer
- a method of the DOM interface to replace the entity reference with the character data
- None of these
-
An XML document to be processed is very large. The application extracts a small portion of the information from the document. Memory and speed may be constraints. Which method or methods are most appropriate for this situation?
Topic: SAX & DOM Parsing
- Use SAX ✓ Correct answer
- Use DOM
- Extract the necessary information and process using XSLT
- Use a schema-based approach
-
When you construct an XML using a DOM enabled Parser, the same parser should be used to process back the XML document when the process involves legacy applications, otherwise it is not necessary to do so.
Topic: SAX & DOM Parsing
- Not really
- Yes, whenever the process is between legacy connectivity this is better
- You can use SAX enabled parser to fill this gap
- This statement is not a correct one, because DOM is constructed using IDL ✓ Correct answer
-
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.
Topic: SAX & DOM Parsing
- true
- false ✓ Correct answer
-
Consider a system which is memory & speed constraint. The application is to process XML documents, sort the contents and mail them to a higher configuration machine for transformation. Which is the best approach?
Topic: SAX & DOM Parsing
- Use platform native language to process the documents
- Use DOM based approach
- Using SAX based approach is the best ✓ Correct answer
- DOM and SAX must be used in this context
-
When receiving documents from a non-trusted agent, the best way to process the documents is:
Topic: SAX & DOM Parsing
- Use SAX
- Use DOM
- Both can be used here
- Both can be used but validity is an issue here ✓ Correct answer
-
In DOM, the Document interface is the only interface that allows you to create other DOM document components.
Topic: SAX & DOM Parsing
- true ✓ Correct answer
- false
-
Use of SAX based parser is most likely to be used in which of the following scenarios?
Topic: SAX & DOM Parsing
- You want to process the document in a sequential order only ✓ Correct answer
- The document is very large
- When there is no need to validate XML documents
- The parser implements only SAX based approach
-
DOM can be used to process HTML documents.
Topic: SAX & DOM Parsing
- true ✓ Correct answer
- false
-
What error types does the SAX2 ErrorHandler interface handle?
Topic: SAX & DOM Parsing
- informational, warning, fatal-error
- warning, error, fatal-error ✓ Correct answer
- warning, error
- informational, warning, error, fatal-error
-
A DOM-based parser should be used for which of the following situations?
Topic: SAX & DOM Parsing
- Need to modify the XML document directly ✓ Correct answer
- Performance and/or memory is an issue
- Need to have random access to the components of the XML document
- Only need to process the XML document sequentially
-
Which of the following is used to request data from a server?
Topic: AJAX, XMLHttpRequest & Servlets
- XMLHttpRequest object ✓ Correct answer
- DTD
- XLink
- XML Schema
-
XML files can be stored on an Internet server exactly the same way as ________ files.
Topic: AJAX, XMLHttpRequest & Servlets
- Java files
- PHP files
- HTML files ✓ Correct answer
- C++ files
-
During a server request, the readyState changes from ______ to ______.
Topic: AJAX, XMLHttpRequest & Servlets
- 2, 2
- 1, 4
- 0, 4 ✓ Correct answer
- 1, 3
-
During a server request, the readyState = 3 means:
Topic: AJAX, XMLHttpRequest & Servlets
- Request finished and response is ready
- Server connection established
- Processing request ✓ Correct answer
- Request received
-
If (xhttp.readyState == 3 && xhttp.status == 404) then,
Topic: AJAX, XMLHttpRequest & Servlets
- readyState: Request Received, status: Page Not Found
- readyState: Server Connection Establishes, status: OK
- readyState: Processing Request, status: Page Not Found ✓ Correct answer
- readyState: Processing Request, status: OK
-
A servlet life cycle can be defined as the entire process from its creation till the ___________.
Topic: AJAX, XMLHttpRequest & Servlets
- Destruction ✓ Correct answer
- Initialization
- Execution
- Compilation
-
How many types of cookies are in servlets?
Topic: AJAX, XMLHttpRequest & Servlets
- 1
- 2 ✓ Correct answer
- 3
- 4
-
For all XML processors which encoding must be supported?
Topic: XML Fundamentals & Syntax
- UTF - 55
- UTF - 16 ✓ Correct answer
- UTF - 10
- None of the given options
-
An XML file which contains correct syntax is called a __________ XML file.
Topic: XML Fundamentals & Syntax
- Well Formed ✓ Correct answer
- Mature
- Valid
- None of the given options
-
Which of the following is representing the empty element tag?
Topic: XML Fundamentals & Syntax
- <person></person>
- <person/>
- </person>
- Both <person></person> and <person/> ✓ Correct answer
-
XML does not help to simplify data ____________.
Topic: XML Fundamentals & Syntax
- Transport
- Styling ✓ Correct answer
- Availability
- Sharing
-
Which of the following string is a correct XML element name?
Topic: XML Fundamentals & Syntax
- _myElement ✓ Correct answer
- my Element
- #myElement
- None of the given options
-
Elements with only parsed character data are declared with ____________ inside parentheses.
Topic: DTD, CDATA & PCDATA
- ANY
- #PCDATA ✓ Correct answer
- CDATA
- #DATA
-
What is the description of the attribute-type NMTOKEN?
Topic: DTD, CDATA & PCDATA
- The value is a list of valid XML names
- The value is a valid XML name ✓ Correct answer
- The value is a list of other ids
- The value is the id of another element
-
The _______ element is the root element of every XML Schema?
Topic: XML Schema
- <schema> ✓ Correct answer
- targetNamespace
- xmlns:xs
- None
-
In XML schema _________ is used to indicate child elements in an element.
Topic: XML Schema
- complexType ✓ Correct answer
- sequence
- xmlns
- targetNamespace
-
DOM stands for
Topic: XML DOM & Nodes
- Document Object Markup
- Design Object Model
- Document Object Model ✓ Correct answer
- None of the given.
-
Which one of the following languages is used to access and manipulate methods and properties of objects?
Topic: XML DOM & Nodes
- C++
- HTML
- XML
- JavaScript ✓ Correct answer
-
The cloneNode() method has a parameter:
Topic: XML DOM & Nodes
- 0 or 1
- True or False ✓ Correct answer
- Yes or No
- None of the given
-
replaceData() method has ____________ parameters:
Topic: XML DOM & Nodes
- 1
- 2
- 3 ✓ Correct answer
- 4
-
The attributes property of an element node returns a list of attribute nodes. This is called a named ____________.
Topic: XML DOM & Nodes
- array map
- node map ✓ Correct answer
- node function
- function node
-
Node object can have ______________.
Topic: XML DOM & Nodes
- any number of parent node objects.
- only one parent node object. ✓ Correct answer
- many parent node objects.
- only two parent node objects.
-
getElementsByTagName() method is used to access a ____________.
Topic: XML DOM & Nodes
- Object
- Node ✓ Correct answer
- DOM
- Property
-
DOM is separated into ________ different parts.
Topic: XML DOM & Nodes
- 2
- 3 ✓ Correct answer
- 4
- 5
-
Nodes in the node list are accessed with index numbers starting from ____________.
Topic: XML DOM & Nodes
- -1
- 0 ✓ Correct answer
- 1
- 2
-
The operational speed of XML DOM, compared to SAX is:
Topic: SAX & DOM Parsing
- Faster
- Slower ✓ Correct answer
- Equal
- None of the given
-
In SAX parsing, which of the following method is used to read contents?
Topic: SAX & DOM Parsing
- startDocument()
- characters() ✓ Correct answer
- startElement()
- endElement()
-
Which of the following method gets called at the beginning of a document in SAX parsing?
Topic: SAX & DOM Parsing
- startDocument() ✓ Correct answer
- initDocument()
- documentStart()
- None of the given options
-
Which of the following method gets called at the end of a document in SAX parsing?
Topic: SAX & DOM Parsing
- endDocument() ✓ Correct answer
- finalizeDocument()
- documentEnded()
- None of the given options
-
Which of the following statement(s) is/are true about SAX parsing?
Topic: SAX & DOM Parsing
- SAX parser reads an XML document from top to bottom, recognizing the tokens that make up a well-formed XML document
- SAX parser reports the application program the nature of tokens that the parser has encountered as they occur
- The application program provides an event handler that must be registered with the parser
- All of the given options ✓ Correct answer
-
Which one of the following is recommended language to style XML elements?
Topic: XSL, XPath & Linking
- XSLT ✓ Correct answer
- CSS
- XSS
- All of the given options
-
___________ is used for navigation in XML documents.
Topic: XSL, XPath & Linking
- XPointer
- XQuery
- XLink
- XPath ✓ Correct answer
-
XPath is used to navigate through
Topic: XSL, XPath & Linking
- different types
- files
- elements and attributes ✓ Correct answer
- different groups
-
Converting a Java object into an XML file is called ___.
Topic: JDOM, JAXB & Marshalling
- Marshalling ✓ Correct answer
- Un-Marshalling
- Transforming
- Object Conversion
-
Converting an XML content into a Java Object is called ___.
Topic: JDOM, JAXB & Marshalling
- Marshalling
- Un-Marshalling ✓ Correct answer
- Transforming
- Object Conversion
-
Which component of the following JDOM Parser represents comments in an XML document?
Topic: JDOM, JAXB & Marshalling
- Comment ✓ Correct answer
- Element
- Attribute
- Text
-
Which of the following is true about JDOM Parser?
Topic: JDOM, JAXB & Marshalling
- JDOM is an open source, Java based library to parse XML document
- JDOM is typically a Java developer friendly API
- Both of the above ✓ Correct answer
- None of the above
-
In which scenario(s), you will use a JDOM Parser?
Topic: JDOM, JAXB & Marshalling
- You need to use the information in the document more than once
- You are a Java developer and want to leverage Java optimized parsing of XML
- Both the above ✓ Correct answer
- None of the given options