XML

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is the correct way to start off XML in a document?

<?xml version="1.0" encoding="UTF-8"?>

What is an example of the namespace prefix written out with the declaration?

<h:table xmlns:h="give the namspace a unique name or a webpage that gives the namespace information"

What is an example of a name prefix?

<h:table></h:table> this can be for a table on a spreadsheet and <f:table></f:table> can be for a table you eat at.

All modern browsers have a built in what?

A built in XMLHttpRequest object to request data from a server.

In the DOM, every comment is what?

A comment node.

In the DOM, the entire document is a what?

A document node.

When using prefixes in XML, what must be defined for the prefix?

A namespace

According to the XML DOM, everything in an XML document is a what?

A node.

An XML tree starts at?

A root element

XML documents must have what?

A root element that is the parent of all other elements.

Raw XML files can be viewed in what?

All major browsers.

In the DOM, every attribute is what?

An attribute node.

What is an XPath Axes?

An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree.

In the DOM, every XML element is a what?

An element node.

XML documents are formed as what?

As element trees

How can name conflicts in XML easily be avoided?

By using a name prefix.

What does CDATA mean?

Character Data

An XML tree branches from the root to ?

Child elements

XML separates what from HTML?

Data

XML simplifies what 4 things?

Data sharing, data transport, platform changes, and data availability.

XML is often used for what over the internet?

Distributing data over the internet

What does DOM stand for?

Document Object Model

What are the main building blocks of both XML and HTML documents?

Elements are the main building blocks.

From a DTD point of view, all XML documents are made up by what building blocks?

Elements, attributes, entities, PCDATA, and CDATA

XML is often a compliment to what?

HTML

How does XML store data?

In pain text.

Where are attributes always placed?

Inside the opening tag of an element.

If the path starts with a slash "/" then what happenes?

It always represents an absolute path to an element.

What does DOM do?

It defines the properties and methods for accessing and editing XML.

What is XSLT?

It is a language that can be used to transform XML documents into other formats.

In the DOM, what is a leaf?

It is a node with no children.

What is URI?

It is a string of characters which identifies an Internet Resource.

What is XSL?

It is a styling language for XML.

The wildcard "@*" does what?

It matches any attribute node.

The wildcard "*" does what?

It matches any element node.

The wildcard "node( )" does what?

It matches any node of any kind.

What must happen before the XML document can be accessed?

It must be loaded into an XML DOM object.

An XPath expression returns what?

It returns either a node-set, a Boolean, or a number.

If the path expression is "//@lang", then the result will be what?

It selects all attributes that are named "lang".

If the path expression is "bookstore//book" then the result will be what?

It selects all book elements that are descendants of the bookstore element, no matter where they are under the bookstore element.

The path "//*" does what?

It selects all elements in the document.

nodename does what?

It selects all nodes with the name "nodename".

If the path is "/bookstore/book[price>35.00]", then the result is what?

It selects all the book elements of the bookstore element that have a price element with a value greater than $35.00.

The path "/bookstore/*" does what?

It selects all the child element nodes of the bookstore element.

The path "//title | //price" does what?

It selects all the title AND price elements in the document.

The path "//book/title | //book/price" does what?

It selects all the title AND price elements of all book elements.

The path "/bookstore/book/title | //price" does what?

It selects all the title elements of the book element of the bookstore element AND all the price elements in the document.

If the path is "/bookstore/book[price>35.00]/title", then the result is what?

It 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.

If the path is "//title[@lang='en']", then the result is what?

It selects all the title elements that have a "lang" attribute with a value of "en".

If the path is "//title[@lang]", then the result is what?

It selects all the title elements that have an attribute named "lang".

The path "//title[@*]" does what?

It selects all title elements which have at least one attribute of any kind.

The path expression @ does what in XML?

It selects attributes.

The path expression / does what in XML?

It selects from the root node.

The path expression // does what in XML?

It selects nodes in the document from the current node that match the selection no matter where they are.

The path expression . does what in XML?

It selects the current node.

If the path is "/bookstore/book[1]" ,then the result is what?

It selects the first book element that is the child of the bookstore element.

If the path is "/bookstore/book[last( )<3]", then the result is what?

It selects the first two book elements that are children of the bookstore element.

If the path is "/bookstore/book[last( )]" ,then the result is what?

It selects the last book element that is the child of the bookstore element.

If the path is "/bookstore/book[last( )-1]", then the result is what?

It selects the last but one book element that is the child of the bookstore element.

The path expression .. does what in XML?

It selects the parent of the current node.

If the path expression is "/bookstore", the result will be what?

It selects the root element bookstore.

What does XSLT stand for?

It stands for XSL Transformations.

XML was designed to be readable by?

It was also designed to be human and machine readable

What was XML designed for?

It was designed to store and transport data

If the path expression is "//book" then the result will be what?

It will select all book elements no matter where they are in the document.

If the path expression is "bookstore/book" then the result will be what?

It will select all book elements that are children of bookstore.

If the path expression is "bookstore", the result will be what?

It will select all nodes the the name "bookstore".

Does XML documents carry information about how to display the data?

No, XML documents do not carry information about how to display data.

Does XML require a DTD Schema?

No, XML does not require a DTD Schema.

Can XML files be displayed as HTML pages?

No, XML files can not be displayed as HTML pages.

What terms are used to describe the relationships between elements in XML?

Parent, child, and sibling

What does PCDATA mean?

Parsed Character Data

In the DOM, the text in the XML elements are what?

Text nodes.

True or False: In XML, it is illegal to omit the closing tag. ALL elements must have a closing tag.

That is true.

In XML, element names are decided by who?

The developer.

What is the purpose of a DTD?

The purpose is to define the structure of an XML document.

The root element is the what to all other elements?

The root element is the parent to all other elements.

What attribute do you use for a namespace?

The xmlns attribute.

What are predicates always in?

They are always embedded in square brackets.

What are predicates?

They are used to find a specific node or a node that contains a specific value.

What do XML Namespaces do?

They provide a method to avoid element name conflicts.

What do attributes do?

They provide extra information about elements.

What do you use to style an XML document?

XSLT is used to style an XML document

What can you do with the XMLHttpRequest object?

You can update a web page without reloading the page, request data from a server after the page has loaded, receive data from a server after the page has loaded, and send data to a server in the background.

What does XML mean?

eXtensible Markup Language

What does XSL stand for?

eXtensible Stylesheet Language

What are some examples of empty HTML elements?

hr, br, and img.

What is an example of a defined namespace if "f" is the qualified namespace prefix?

xmlns:f="link to website goes here"

What is the entity code in HTML for a no-breaking-space?

&nbsp;

What is the doc root directory of my personal web server?

/var/www/html

What can the XMLHttpRequest object be used for?

To request data from a web server.

True or False, XML does not carry any information about how to be displayed.

True

What is the default character encoding for XML documents?

UTF-8. This is also the default encoding for HTML5, CSS, JavaScript, PHP, and SQL.

What does URL stand for and what does it mean?

Unified Resource Locator. It identifies an Internet Domain Address.

What does URI stand for?

Uniform Resource Identifier.

An XML document validated against a DTD is both what?

Well Formed and Valid.

An XML document with correct syntax is called what?

Well Formed.

What is often used for distributing data over the internet?

XML

How is XML used?

XML is often used to separate data from presentation.


संबंधित स्टडी सेट्स

ISYS 316 Advanced Java Programming Chapter 32 Java Database Programming

View Set

Principles of Marketing Chapter 11 Quiz

View Set