Term
Select which XML documents are valid with respect to the following DTD. <? XML version="1.0"?> <!DOCTYPE contact [ <!ELEMENT contact (TEL*|FAX*)> <!ELEMENT TEL (#PCDATA)> <!ELEMENT FAX (#PCDATA)> ]>
A.
<contact>
<TEL>00-979-99999</TEL>
<TEL>00-979-99998</TEL>
<FAX>00-979-99997</FAX>
</contact">
B.
<contact>
<TEL>00-979-99999</TEL>
<TEL>00-979-99998</TEL> </contact>
C.
<contact>
<TEL>00-979-99999</TEL>
<FAX>00-979-99998</FAX>
</contact>
D.
<contact/>
|
|
Definition
|
|
Term
Select which of the following describes an XML document with correct comment coding.
A.
<!--Comment -- >
<product>
<name>pencil</name>
</product>
B.
<!--Comment -- >
<? XML version="1.0">
<PRODUCT> <name>pencil</name>
</PRODUCT>
C.
<? XML version="1.0"?>
<PRODUCT> <!--Comment-- >
<name>pencil</name>
</PRODUCT>
D.
<? XML version="1.0"?>
<PRODUCT>
<name><!--Comment-- >pencil</name>
</PRODUCT> |
|
Definition
|
|
Term
Select which of the following XML documents is not a well-formed XML document.
A. <? XML version="1.0?"> <namecard> <company >NNN Ltd. </company > <name>John Smith</name> </namecard>
B.
<? XML version="1.0"?> <namecard> <company ></company >
<name>John Smith</name>
</namecard>
C.
<? XML version="1.0"?> <namecard> >> My name is <<< <name>John Smith</name> </namecard>
D.
<? XML version="1.0"?> <namecard/> |
|
Definition
|
|
Term
Select which of the following results in date attribute value different than other XML documents after being read by an XML Processor.
A.
<? XML version="1.0"?> <!DOCTYPE namecard <!ELEMENT namecard (company,name)> <!ELEMENT company (#PCDATA)> <!ELEMENT name (#PCDATA)> <!ATTLIST namecard date CDATA #REQUIRED> ]> <namecard date="2005/07/06"> <company >XX Ltd. </company > <name>kent</name> </namecard>
B.
<? XML version="1.0"?> <!DOCTYPE namecard [
<!ELEMENT namecard (company,name)> <!ELEMENT company (#PCDATA)> <!ELEMENT name (#PCDATA)> <!ATTLIST namecard date CDATA “2005/07/06"> ]> <namecard> <company >XX Ltd. </company > <name>kent</name> </namecard>
C.
<? XML version="1.0"> <!DOCTYPE namecard [
<!ELEMENT namecard (company,name)> <!ELEMENT company (#PCDATA)> <!ELEMENT name (#PCDATA)> <!ATTLIST namecard date CDATA “2005/07/06"> ]> <namecard date="">
<company >XX Ltd. </company >
<name>kent</name>
</namecard>
D.
<? XML version="1.0"?> <!DOCTYPE namecard [ <!ELEMENT namecard (company,name)> <!ELEMENT company (#PCDATA)> <!ELEMENT name (#PCDATA)> <!ATTLIST namecard date CDATA #FIXED “2005/07/06"> ]> <namecard> <company >XX Ltd. </company> <name>kent</name> </namecard>
|
|
Definition
|
|
Term
Press the exhibit button view "DTD". Select which of the following is valid XML document with respect to "DTD".
A.
<Delivery_File Delivery_Person_Code="HG045875” Ver="03"> <File_ information> <Subject>Block H Sketch</Subjec"> <File_Name>H0683. PDF</File_Name> <Notes>Revised version of file deliveted June 2005</Notes> <Notes>H0682.PDF Detailed Sketch</Notes> </File_ information> <File_ information> <Subject>Block I Sketch</Subject> <File_Name>H0685.PDF</File_Name> <Notes>Revised version of file delivered June 2005</Notes> <Notes>H0682.PDF Detailed Sketch</Notes> </File_ information> </Delivery_File>
B.
<Delivery_File> <File_ information> <Subject>Block H Sketch</Subject> <Subtitle>Main Pavilion</Subtitle> <File_Name>H0683.PDF</File_Name> <Notes>H0682.PDF Detailed Sketch</Notes> </File_ information> </Delivery_File>
C.
<Delivery_FileDelivery_Person_Code="HG045875t Vet="02"> <File_ information> <Subjec">Block H Sketch</Subjec"> <File_Name>H0683.PDF</File_Name> <Notes>Revised version of file delivered June 2005</Notes> </File_ information> <File_ information> <Subject>Block I Sketch</Subject> <File_Name>H0685.PDF</File_Name> <Notes>Revised version of file delivered June 2005</Notes> </File_ information> </Delivery_File>
D.
<Delivery_File Ver="03"> <File_ information> <Subject>Block H Sketch</Subject> <File_Name>H0683.PDF</File_Name> </File_ information> </Delivery_File> |
|
Definition
|
|
Term
Press the exhibit button view "XML Schema document". Select which of the following correctly describes valid XML document with respect to "XML Schema document"
A
<? XML version="1.0"> <ContactInformation> <Name>Tato Yamada</Name> <eMail>yamada@abc.co.jp</eMail> <Tel>03-xxxx-xxxx</Tel> <Fax>03-xxxx-xxxx</Fax>
</ContactIinformation>
B.
<? XML version="1.0"?> <ContactInformation> <Name>Tato Yamada</Name> <eMail>yamada@abc.co.jp</eMail> <Tel>03-xxxx-xxxx</Tel>
</ContactInformation>
C.
<? XML version="1.0"?> <ContactInformation> <Name>Tato Yamada</Name> <eMail>yamada@abc.co.jp</eMail> <Fax>03-xxxx-xxxx</Fax>
</ContactInformation>
D.
<? XML version="1.0"?> <ContactInformation> <Name>Tato Yamada</Name> <eMail>yamada@abc.co.jp</eMail> </ContactInformation> |
|
Definition
|
|
Term
Press the exhibit button view “XML Schema document”. Select which of the following correctly describes valid XML document with respect to "XML Schema document" A.
<? XML version="1.0"?>
<OrderItem/>
B.
<? XML version="1.0"?>
<OrderItem>
<Price>800</Price>
</OrderItem>
C.
<? XML version="1.0"?>
<OrderItem>
<Quantity>4</Quantity>
<Price>750</Price>
</OrderItem>
D.
<? XML version="1.0">
<OrderItem>
<Price>750</Price>
<Quantity>4</Quantity>
</OrderItem>
E.
<? XML version="1.0"?>
<OrderItem>
<Quantity>1</Quantity>
<Price>100</Price> <Quantity>2</Quantity>
<Price>200</Price>
</OrderItem> |
|
Definition
|
|
Term
Select which of the following statements is correct.
A. When repeatedly using the same element name of an element with in a single XML document, use an ID style attribute to distinguish each element.
B. A child element has multiple number of different parent elements.
C. When converting customer information or other multiple occurrence data to an XML document, the data must go into separate XML documents , since a multiple number of toor elements are not permitted.
D. In a DTD , an element’s content default value cannot be set.
|
|
Definition
|
|
Term
Select which of the following statements is correct.
A. Under XML 1. 0 recommendations , there are no clear rules as to whether to use a child element or an attribute when attaching information to an element.
B. An XML document must never be structured without any element content, and with only empty elements and attributes.
C. Use attributes when including specific, clear numerical value information an XML document.
D. Attribute values cannot include line feeds or white spaces.
|
|
Definition
|
|
Term
Select which of the following are not well-formed XML documents.
A.<product color=’red’ price="100”/> B.<product color="red” color="black">Pencil</product> C. <product color="red” price="100">Pencil</product> D. <product color="red">Pencil</product price="100">
|
|
Definition
|
|
Term
Select which of the following methods can be used when using a single quote (‘) in an attribute value. A. Use a double quotation mark (“) to enclose the attributes value. B. Use the entity reference ' represent the single quote in the attribute value. C. Use a Unicode character code (0x0027) for a single quote(‘) and enclose the section with the character reference “'”. D. Any of the above. |
|
Definition
|
|
Term
Select which of the following statements about CDATA sections is correct.
A. When coding a CDATA section in an XML document, you must first make a specific declaration with the DTD.
B. You may use different character encoding within the CDATA section than for the body of the XML document.
C. Characters such as t<t and tt" can be used with in the CDATA section with out any modification.
D. an XML parser Processes text string s with in the CDATA section as comments.
|
|
Definition
|
|
Term
Select which of the following correctly describes designating two “color” attributes for the “product" element.
A. Use the DTD to make the following attribute list declaration. <!ATTLIST product color CDATA #REQUIRED
color CDATA #REQUIRED>
B. Use the XML Schema to make the following attribute declaration. <xs:attribute name="color” type="xs:string” minOccurs="2” maxOccurs="2”/>
C. Use the DTD to make the following attribute list declaration. <!ATTLIST product (color+) CDATA #REQUIRED>
D. A single element cannot have multiple number of attributes with the mame name. |
|
Definition
|
|
Term
|
Definition
To navigate through elements and attributes in an XML document. |
|
|
Term
XPATH is a W3C recomendation? |
|
Definition
|
|
Term
Which are the seven types of nodes in XPATH? |
|
Definition
1. Element 2. Attribute 3. Text 4. namespaces 5. processing-instruction 6. comment 7. document nodes |
|
|
Term
What is an Atomic Values? |
|
Definition
Are nodes with no children or parent. examples: J K. Rowling "en" |
|
|
Term
In XPATH, what is an Items? |
|
Definition
Are atomic values or nodes. |
|
|
Term
In XPATH, relationship with nodes parents? |
|
Definition
Each element and attribute has one parent. |
|
|
Term
In XPATH, relationship with children? |
|
Definition
Element nodes may have zero, one or more children. |
|
|
Term
In XPATH, relationship with children? |
|
Definition
Element nodes may have zero, one or more children. |
|
|
Term
In XPATH, relationship with siblings? |
|
Definition
Nodes that have the same parent. |
|
|
Term
In XPATH, relationship with Ancestors? |
|
Definition
A node's parent, parent's parent, etc |
|
|
Term
In XPATH, relationship with Descendants? |
|
Definition
A node's children, children's children, etc. |
|
|
Term
In XPATH, what means the expression nodename? |
|
Definition
Selects all nodes with the name "nodename" |
|
|
Term
In XPATH, what means the expression /? |
|
Definition
Selects from the root node |
|
|
Term
In XPATH, what means the expression //? |
|
Definition
Selects nodes in the document from the current node that match the selection no matter where they are. |
|
|
Term
In XPATH, what means the expression .? |
|
Definition
|
|
Term
In XPATH, what means the expression ..? |
|
Definition
Selects the parent of the current node |
|
|
Term
In XPATH, what means the expression @? |
|
Definition
|
|
Term
In XPATH, what is the result of the expression:
|
|
Definition
|
|
Term
In XPATH, what is the result of the expression:
|
|
Definition
|
|
Term
In XPATH, what is the result of the expression:
|
|
Definition
|
|
Term
In XPATH, what is the result of the expression:
//book |
|
Definition
Selects all book elements no matter where they are in the document |
|
|
Term
In XPATH, what is the result of the expression:
bookstore//book |
|
Definition
Selects all book elements that are descendant of the bookstore element, no matter where they are under the bookstore element |
|
|
Term
In XPATH, what is the result of the expression:
//@lang |
|
Definition
Selects all attributes that are named lang. |
|
|
Term
In XPATH, what are predicates used for? |
|
Definition
Predicates are used to find a specific node or a node that contains a specific value. |
|
|
Term
In XPATH, how do you write de predicates? |
|
Definition
Predicates are always embedded in square brackets. |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[1] |
|
Definition
Selects the first book element that is the child of the bookstore element.
Note: In IE 5,6,7,8,9 first node is[0], but according to W3C, it is [1]. To solve this problem in IE, set the SelectionLanguage to XPath:
In JavaScript: xml.setProperty("SelectionLanguage","XPath"); |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[last()] |
|
Definition
Selects the last book element that is the child of the bookstore element |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[last()-1] |
|
Definition
Selects the last but one book element that is the child of the bookstore element |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[position()<3] |
|
Definition
Selects the first two book elements that are children of the bookstore element |
|
|
Term
What is the result of the following XPATH expression?
//title[@lang] |
|
Definition
Selects all the title elements that have an attribute named lang |
|
|
Term
What is the result of the following XPATH expression?
//title[@lang='eng'] |
|
Definition
Selects all the title elements that have an attribute named lang with a value of 'eng' |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[price>35.00] |
|
Definition
Selects all the book elements of the bookstore element that have a price element with a value greater than 35.00 |
|
|
Term
What is the result of the following XPATH expression?
/bookstore/book[price>35.00]/title |
|
Definition
Selects all the title elements of the book elements of the bookstore element that have a price element with a value greater than 35.00 |
|
|
Term
In XPATH, Do we use wildcards for? |
|
Definition
to select unknown XML elements. |
|
|
Term
In XPATH, what is de descirption for the following wildcard?
* |
|
Definition
|
|
Term
In XPATH, what is de descirption for the following wildcard?
@* |
|
Definition
Matches any attribute node |
|
|
Term
In XPATH, what is de descirption for the following wildcard?
node() |
|
Definition
Matches any node of any kind |
|
|
Term
In XPATH, what is de descirption for the following wildcard?
/bookstore/* |
|
Definition
Selects all the child nodes of the bookstore element. |
|
|
Term
In XPATH, what is de descirption for the following wildcard?
|
|
Definition
|
|
Term
In XPATH, what is de description for the following wildcard?
|
|
Definition
|
|
Term
Press the exhibit button view the external DTD subset "prod.dtd". Select which of the following correctly describes a valid XML document when the external DTD subset “prod.dtd” file is generated. A. <?XML version="1.0?"> <!DOCTYPE product SYSTEM prod.dtd"> <product>
<name/> <price/> </product>
B. <?XML version="1.0"> <!DOCTYPE product SYSTEM "prod.dtd"> <product> <name>
<price/>
</name>
</product>
C. <?XML version="1.0"> <!DOCTYPE product SYSTEM "prod.dtd"> <product> <price/> <name/>
</product>
D. <?XML version="1.0"> <!DOCTYPE product SYSTEM "prod.dtd"> <product> <name/> </product>
E. <?XML version="1.0"> <!DOCTYPE product SYSTEM "prod.dtd"> <product> <price/> </product> |
|
Definition
|
|
Term
Select which of the following is an XSLT instruction to create new node in a resulting XML document.
A. xsl:attribute B. xsl:cdata
C. xsl:element
D. xsl:entity
|
|
Definition
|
|
Term
Press the exhibit button view and transform “Transformation Source XML document”. Select the Answer that correctly describes what belongs in(1) in the “XSLT Stylesheet” to derive “Post-Transformation XML document”.
[XSLT Stylesheet] <xsl:stylesheet version="1.0” xmlns:xsl="http://www. w3. org/1999/xsl/Transform"> <xsl:template match="/"> <product> <xsl:apply-templates Select ="(1)____________”>
</product> </xsl:template> <xsl:template match="name"> <xsl:value-of Select =". /> </xsl:template> </xsl:stylesheet>
A. //name B. /name C. product/name D. /product .
|
|
Definition
|
|
Term
Select which of the following is correct with respect to designating XML document character encoding output via XSLT. A. the output XML document character encoding is the mame as the original XML document . B. the output XML document character encoding is the mame as the XSLT stylesheet. C. Use xsl:output instructions to met the character encoding . D. the character encoding for the XML document of the transformation results cannot be designated.
|
|
Definition
|
|
Term
NO.125
With respect to XML 1.0, select which character (encoding value for the XML declaration) that an XML Processor absolutely must be able Process.
A. Shift_JIS B. JIS C. EUC-JP D. UTF-8 .
|
|
Definition
|
|
Term
Select which of the following is correct with regard to using a multiple number of character encoding types in a single XML document that contains no external references.
A. attach encoding element attributes to the element. B. attach encoding attributes for each element in the DTD. C. Use UTF-8 or UTF-16. D. A multiple number of character encoding types cannot be used.
|
|
Definition
|
|
Term
Select the statements that were mentioned as problems with DTDs when the XML Schema was instituted.
A. DTDs have not yet been recommended by the w3C. B. In a DTD, it is not possible specify an explicit numerical data style. C. DTDs do not comply with XML syntax rules. D. In a DTD, Unicode can not be used.
|
|
Definition
|
|
Term
Assume that you want to change XML document a into XML document b, as shown below . Choose the specification that is the best suited for this purpose. [XML document a] <?xml version="1.0"> <book> <author>Charley</author> <title>FLOWERS</title> </book>
[XML document b] <? XML version="1.0"> <book> <title author="Charley">FLOWERS</title> </book>
A. XSLT B. CSS C. XSL-FO D. RSS
|
|
Definition
|
|
Term
Choose the statement about XML that is correct.
A. an XML files extension must be .xml B. If any extension other than . xml needs to be attended to XML files it must be registered with the w3C. C. xml file extensions are not prescribed by the w3C. D. If an XML file’s extension is .xml, no XML declaration is requiterd.
|
|
Definition
|
|
Term
Choose the statement about difference between XML and HTML that is incorrect. A. In HTML element names are predefined, while in XML element names can be defined depending on the it purposes of use. B. HTML is an extension of XML and is a language developed to view Web pages. C. In an HTML document, the end-tag associated with a start-tag can be omitted. however, in XML documents a start-tag must always have terminating end-tag. D. HTML element names are not case sensitive, while XML element names are case sensitive.
|
|
Definition
|
|
Term
Press the exhibit button view "XML document". Select which of the following correctly describes the resulting document after applying “XSLT Stylesheet" to "XML document" assume that the input XML document and transformation results ignore meaning less whitespace.
A.
<? XML version="1.0">
<prefecture_list>
<Name>Hokkaido</Name>
<Name>Aomori</Name> <Name>Akita</Name>
</prefectute_list> B.
<? XML version="1.0">
<prefecture_list>
Hokkaido
aomori
akita
</prefectute_list> C.
<? XML version="1.0">
<prefectute_list>
<Name>Akita</Name>
</prefectute_list> D. an error is thrown E. <?XML version="1.0?"> <prefectute_list>
</prefectute_list>
|
|
Definition
A. Every single name must go surrounded by the tag "name" |
|
|
Term
NO.38
Select which of the following is correct with respect to XSLT.
A. XSL-FO must be used when using an XSLT stylesheet to distlay an XML document. B. Only a single XSLT stylesheet may be applied to a single XML document. C. An XSLT stylesheet can be used to acquire the values of specific elements with in an XML document. D. The XSLT version 1.0 recommendation defines special instructions to create corresponding DTD from the original XML document.
|
|
Definition
|
|
Term
|
Definition
XSL Formatting Objects, or XSL-FO, is a markup language for XML document formatting which is most often used to generate PDFs. |
|
|
Term
Press the exhibit button to view and transform “Transformation Source XML document". Select which of the following correctly describes the XPath method that belongs in (1) of the “XSLT Stylesheet" when deriving “Post-Transformation XML document". [XSLT Stylesheet] <? XML version="1.0?"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <Fruit> <xsl:value-of Select ="(1)_____________ “/> </Fruit> </xsl:template> </xsl:stylesheet>
A. /fruit@fruit1 B. /fruit/name C. /name D. fruit/@fruit1 E. //name[.=’apple’].
|
|
Definition
|
|
Term
Press the exhibit button view “Transformation Source XML document". Select which of the following correctly describes the XPath method combination belonging in (1), (2) and (3) of the “XSLT Stylesheet" when acquiring the text string “Taro_Suzuki” from the “Transformation Source XML document".
A.
(1) book/author (2) author (3).
B.
(1)library/book (2)book (3)author
C.
(1)/library (2)//library (3)book/author
D.
(1)//author (2). (3).
E.
(1) //number (2) number (3) ../author |
|
Definition
|
|
Term
Press the exhibit button view “Transformation Source XML document". Select which of the following correctly describes the XPath method (1) and (2) that belongs in the “XSLT Stylesheet” blank space when acquiring the text string “Taro_Suzuki” from the “Transformation Source XML Document"
Text string (1) … library/book/author Text string (2) … library//author
A. both(1) and (2) are correct. B. (1) is correct, but (2) is not correct. C. (2) is correct, but (1) is not correct. D. Neither are correct.
|
|
Definition
|
|
Term
Select which of the following correctly describes the XML namespace to which the -->(1) "price" element in the "XML document” below belongs. [XML documents] <?XML version="1.0"> <products xmlns="urn:sample:product"> <item:product xmlns:item="urn:sample:item"> <item:name>T-Shirt</item:name> <price>2500</price> -->(1) </item:product>
</products>
A. urn:sample:product B. urn:sample:item C. item D. None |
|
Definition
|
|
Term
When using an XML Processor to read the XML document below, which answer correctly describes the value that entity reference “&name;” replaces ? Assume that the XML Processor can read “external.txt”.
[external.txt] <?xml version="1.0” encoding ="UTF-8"?> <name>gloria</name> [XML documents] <?xml version="1.0” encoding ="UTF-8?"> <!DOCTYPE text [ <!ELEMENT text (#PCDATA|name)*> <!ELEMENT name (#PCDATA)> <!ENTITY name SYSTEM “external.txt"> ]> <text>My name is &name;</text>
A. gloria B. <?xml version="1.0"?>
<name>gloria</name> C. <name>gloria</name> D. An error is thrown and nothing is replaced. |
|
Definition
|
|
Term
Select which of the following is incorrect with respect to an XML Schema element content model. Assume the Schema namespace prefix is “xs”.
A. When the ProductCode element is limited to text data, and the number of character is limited, use the following simpleType to construct a definition.
<xs:element name="ProductCode"> <xs:simpleType> <xs:restriction base="xs:string "> <xs:minLength value="1”/> <xs:maxLength value="5”/> </xs:restriction>
</xs:simpleType> </xs:element > B. When the ProductItem element content is a content model including a different element, use the following complexType to construct a definition. <xs:element name="ProductItem"> <xs:complexType> <xs:sequence> <xs:element ref="ProductCodet/> </xs:sequence> </xs:complexType> </xs:element > <xs:element name="ProductCode” style="xs:string “/>
C. Use the following simpleType when element content includes both character data and element. <xs:element name="ProductItem” type="ProductTypet”/> <xs:simpleType name="ProductType"> <xs:sequence> <xs:element ref="ProductCode”/> </xs:sequence> </xs:simpleType> <xs:element name="ProductCode” type="xs:string”/>
D. Use the following simpleType for defining an empty element. <xs:element name="ProductItemt type="ProductType”/> <xs:simpleType name="ProductType”/>
|
|
Definition
|
|
Term
Select which statement correctly describes the XML document below. <!DOCTYPE element1 <!ELEMENT element 1 (#PCDATA)> ]>
<element1><![CDATA[<element2/><![CDATA[<element3/>]]></element1>
A. This not a valid XML document, because there is no element style declaration for element 2 and element 3. B. This not a well-formed document, because the CDATA section is not closed. C. This not a well-formed document, because the CDATA section does not contain <!tCDATAt. D. This valid XML document.
|
|
Definition
|
|
Term
Choose the specification that is recommended by the w3C, and defines the features and syntax to describe two-dimensional vector graphics in XML.
A.SMIL B.RDF C.SVG D. MathML.
|
|
Definition
|
|
Term
Select the answer that correctly identifies an element in the "XML document” below. [XML documents] <abc def="ghi"> jklmno </abc>
A. <abc> B. def="ghit C. abc D.
<abcdef="ghi"> jklmno </abc> E. jklmno |
|
Definition
|
|
Term
Company A has decided to manage their report information using XML data. Press the exhibit button view "Requirements". Select which of the following DTD definitions best satisfies “Requirements”.
A.
<!ELEMENT report (#PCDATA|name|tage|software|attachment|attached_software)"> <!ELEMENT name (#PCDATA)> <!ELEMENT page (#PCDATA)> <!ELEMENT software (#PCDATA)> <!ELEMENT attachment (#PCDATA)> <!ELEMENT attached_software (#PCDATA)> B.
<!ELEMENT (reporttdata )*> <!ELEMENT reportdata (name, tage, software, (attachment, attached_software)*)> <!ELEMENT name (#PCDATA)> <!ELEMENT page (#PCDATA)> <!ELEMENT software (#PCDATA)> <!ELEMENT attachment (#PCDATA)> <!ELEMENT attached_software (#PCDATA)> C.
<!ELEMENT (reportdata )> <!ELEMENT reportdata (name, page, software, (attachment, attached_software)*)> <!ELEMENT name (#PCDATA)> <!ELEMENT page (#PCDATA)> <!ELEMENT software (#PCDATA)> <!ELEMENT attachment (#PCDATA)> <!ELEMENT attached_software (#PCDATA)> D.
<!ELEMENT (reportdata )> <!ELEMENT reportdata (name, tage, software, alist)*> <!ELEMENT name (#PCDATA)> <!ELEMENT page (#PCDATA)> <!ELEMENT software (#PCDATA)> <!ELEMENT alist (attachment, attached_software)> <!ELEMENT attachment (#PCDATA)> <!ELEMENT attached_software (#PCDATA)>.
|
|
Definition
|
|
Term
Company B has decided to manage product information using XML data. Press the exhibit button view "Requirements". Select which of the following DTD definitions best satisfies "Requirements".
A.
<!ELEMENT Product (name, ID, color?, size?)*> <!ELEMENT name (#PCDATA)> <!ELEMENT ID (#PCDATA)> <!ELEMENT color (#PCDATA)> <!ELEMENT size (#PCDATA)> B.
<!ELEMENT (ProductData)*> <!ELEMENT ProductData (name, ID)*> <!ELEMENT name (#PCDATA)> <!ELEMENT ID (#PCDATA)> <!ATTLIST ProductData color CDATA #IMPLIED> <!ATTLIST ProductData size CDATA #IMPLIED> C.
<!ELEMENT (ProductData)*> <!ELEMENT ProductData (name, ID)> <!ELEMENT name (#PCDATA)> <!ELEMENT ID (#PCDATA)> <!ATTLIST ProductData color CDATA #IMPLIED> <!ATTLIST ProductData size CDATA #IMPLIED> D.
<!ELEMENT (ProductData)*> <!ELEMENT ProductData (name, ID)> <!ELEMENT name (#PCDATA)> <!ELEMENT ID (#PCDATA)> <!ATTLIST Product color CDATA #IMPLIED size CDATA #IMPLIED>. |
|
Definition
|
|
Term
Company C has decided to manage documents using XML data. Press the exhibit button view "Requirements". Select which of the following DTD definitions best satisfies "Requirements".
A.
<!ELEMENT document (title, doc)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT doc (bold)*> <!ELEMENT bold (#PCDATA)> B.
<!ELEMENT document (title, doc)> <!ELEMENT title (#PCDATA)>
<!ELEMENT doc (sentence, bold)*>
<!ELEMENT sentence (#PCDATA)> <!ELEMENT bold (#PCDATA)> C.
<!ELEMENT document (title, doc)> <!ELEMENT title (#PCDATA)> <!ELEMENT doc (#PCDATA|bold)*> <!ELEMENT bold (#PCDATA)> D.
<!ELEMENT document (title, doct)> <!ELEMENT title (#PCDATA)> <!ELEMENT doc (#PCDATA|bold)*> <!ELEMENT bold (#PCDATA)>.
|
|
Definition
|
|
Term
NO.47
Select which of the following correctly describes a valid XML document with respect to the DTD below. <!DOCTYPE list [ <!ELEMENT list (product+)> <!ELEMENT product (name?)> <!ATTLIST product_division (healthcate|cosmetic) “cosmetic"> <!ELEMENT name (#PCDATA)> ]>
A. The name element must be designated at least once within the XML document. B. The division attribute must be designated within the XML document. C. the product element and name element must appear within the XML document the exact mame number of times. D. The product element must be designated at least once within the XML document.
|
|
Definition
|
|