XML 1.0 Test
An XML document has a root element named <folder>. The DTD for this document is stored in an External file called folder.dtd. How will you declare this external DTD in the XML document?
CDATA sections provide a way to tell the parser that there is no markup in the characters contained by the CDATA section. Which of the following is the correct syntax for CDATA?
Choose the correct DTD Element definition:
Comments describe statements in a better way. What is the correct syntax of comments in XML?
How is an entity used within an XML document?
How is an External Unparsed General entity defined in a DTD?
Is the following statement correct? Inner tags in XML must be closed first.
Is the following statement correct? You can use XSL Transformations (XSLT) to merge simple regular XML data with an HTML template for display.
Read the following statements carefully. 1. <xsl:for-each select="portfolio/stock"> 2. <TR> 3. <TD><xsl:value-of "symbol"/></TD> 4. </TR> 5. </xsl:for-each> Which statement is i...
Select the appropriate statement to find all books that have an excerpt and a title.
Select the appropriate statement to find all bookstores where the value of the specialty attribute is equal to "textbooks".
Select the correct XML from following options.
State whether the following statement is correct? Attributes must have both a name and a value.
State whether the following statement is correct? Conditional templates are output only if certain conditions exist within the source document.
State whether the following statement is correct? Inline schema is useful when it is inconvenient to physically separate the schema and the instance.
State whether the following statement is correct? XPath can be used directly from the Document Object Model (DOM).
What are the possible values for the actuate attribute of an XLink?
What are the possible values for the show attribute of an XLink?
What are the relative advantages of Schemas over DTDs?
What are the requirements for an Extended XLink element?
What are XML Namespaces used for?
What does depth method of DOM do?
What does the following DTD imply? <!DOCTYPE messagelist [ <!ELEMENT messagelist(message*)> <!ELEMENT message(sender?,receiver,subject,body,attachment+)> <!ELEMENT sender (#PCDATA)> <!ELEM...
What does the following DTD imply? <!DOCTYPE messagelist [ <!ELEMENT messagelist(message*)> <!ELEMENT message(sender*,receiver,body+)> <!ELEMENT sender (#PCDATA)> <!ELEMENT receiver (#PCDA...
What does the following XPath expression represent? /addressbook/*/phone
What does the following XPath expression represent? /addressbook//phone
What does the following XPath expression represent? /addressbook/address
What does the following XPath expression represent? /addressbook/address[@id='1']
What is an ENTITY attribute type?
What is an ID attribute type?
What is an IDREFS attribute type?
What is an NMTOKEN attribute type?
What is the correct value of order attribute for sorting the string in ascending order?
What is the difference between General entities and Parameter Entities?
What is the purpose of XPointer?
What is the Root element of an XSL file?
What is wrong with this XML code? 1 <?xml version="1.0"?> 2 <folder dt="1/1/2000"> 3 <file id="1" > 4 <name>Accounts Reports</name> 5 <contents /> 6 <!-- Note: This file does n...
What is XML DOM used for?
When are you likely to use an XML Namespace?
When are you most likely to use XML?
When is the DOM event 'ondataavailable' fired?
When is the DOM event 'onreadystatechange' fired?
Which attribute is not used when specifying a Simple XLink element?
Which element in the following extract contains Element Content? 1 <?xml version="1.0"?> 2 <folder> 3 <file> 4 <name>Accounts Reports</name> 5 <contents>These are the contents of th...
Which element in the following extract contains Simple Content (Text Content)? 1 <?xml version="1.0"?> 2 <folder> 3 <file> 4 <name>Accounts Reports</name> 5 <contents>These are the contents of the...
Which elements in the following extract contain Mixed Content? 1 <?xml version="1.0"?> 2 <folder> 3 <file> 4 <name>Accounts Reports</name> 5 <contents>These are the contents of the ...
Which is the correct method for declaring the xml version?
Which is the correct way to declare an XML Namespace?
Which limitation of HTML links is overcome by XLink?
Which line will generate an error in the following XML code? 1 <?xml version="1.0"?> 2 <f_ns:folder dt="1/1/2000"> 3 <file f_id="1" > 4 <name>Accounts Reports</name> 5 <contents /> ...
Which line will generate an error in the following XML file? 1.<?xml version="1.0"?> 2.<folder> 3.<file><name><contents></contents></name></file> 4.<file><name/><contents></contents><name/></file>...
Which of the following are methods of formatting of XML documents?
Which of the following are the elements used to define an XML Schema?
Which of the following are XHTML DTDs?
Which of the following attributes are optional in xsl:sort command?
Which of the following can store negative values?
Which of the following data types are allowed in xsl:sort command?
Which of the following is a required namespace in xml schema?
Which of the following is an attribute of the locator element in an Extended XLink?
Which of the following is an invalid operator?
Which of the following is an XML declaration?
Which of the following is correct about SAX2?
Which of the following is false when you use XSL to convert an XML document to HTML format?
Which of the following is not a DOM method?
Which of the following is not a parameter of DOM event ontransformnode?
Which of the following is not a primitive data type?
Which of the following is not a reason for using DTDs?
Which of the following is not a schema element?
Which of the following is not a type of attribute?
Which of the following is not an advantage of DOM?
Which of the following is not an advantage of XML?
Which of the following is not an attribute of AttributeType element of schema?
Which of the following is not an XSL element?
Which of the following is not true about CDATA sections?
Which of the following is the correct way to define an attribute named size of an element named shoe. The attribute should have a default value of 0?
Which of the following most accurately describes the purpose of XSL?
Which of the following namespaces is required for xml data types?
Which of the following options have incorrect syntax?
Which of the following patterns are correct for 'select' attribute of xsl:sort command?
Which of the following statements are correct about XPath?
Which of the following statements are correct?
Which of the following statements are true about the number data type in xml?
Which of the following statements are true for elements?
Which of the following statements define 'prolog' in xml?
Which of the following statements is false with regard to XHTML syntax?
Which of the following statements is not correct about schema?
Which of the following statements is true with regard to XHTML?
Which of the following statements is true?
Which of the following statements is/are correct. Statement (a): XML takes up more network bandwidth and storage space. Statement (b): XML requires more processor time for compression.
Which of the following XPath functions is not a string function?
Which of the statements are correct? (a)Attributes added with <xsl:attribute> must appear before children are added to the element. (b)You can add an attribute to an element that already has an at...
You have records of 50 employees in an XML document. You want to create a table from a group of XML nodes. Which method is best suited to convert data into HTML table rows?