Which of these statements about XML elements and XML
Namespaces are true and which statements are false?
- Browser has the ability distinguish duplicate element names in an XML document.
- True
- False
- XML developer has to ensure the uniqueness of the element names and attributes in a document.
- True
- False
- A namespace is a collection of names that can be used as element names or attribute names in XML document.
- True
- False
- In XML, elements are distinguished by using DTD.
- True
- False
Which of the following line of code are correct
namespace declarations?
- <Title:Catalog xmlns:Book = “http://www.aptech.com”>
- <CD:Catalog CD:xmlns = “http://www.aptech.com”>
- <Car xmlns:Vehicle xmlns = “http://www.aptech.com”>
- <CD:xmlns CD:Catalog = “http://www.aptech.com”>
Which of the statements about attributes and namespace
are true and which the statements are false?
- Attribute belonging to particular elements within some namespace is also apart of the same namespace.
- True
- False
- An attribute without a prefix is in default namespace.
- True
- False
- xmlns:localname=”value” is correct syntax for including a attribute in a namespace.
- True
- False
- <Student:Name age = “12”>Kevin</Student:Name> it the correct for associating age with the student namespace.
- True
- False
- The prefix used in an attribute is used as a reference to the namespace.
- True
- False
Which of the statements about default namespaces are
true and which statements are false?
- <elementName xmlns=’URL’> is the correct syntax for declaring a default namespace.
- True
- False
- The descendant has the same namespace as the parent element even if it has a namespace definition.
- True
- False
- A default namespace is used by an element and its child elements is the element has a namespace prefix.
- True
- False
- A default namespace applies to the element on which it was defined and all descendants or that element.
- True
- False
- A descendant having a new namespace cannot override the namespace defined by the parent element.
- True
- False
0 nhận xét:
Đăng nhận xét