Declarative Languages EXAM Flashcards
What does XML stand for?
Extensible Markup Language
What are HTML and XML based on?
Standard Generalized Markup Language (SGML)
What is the difference between HTML and XML?
HTML is about how to present the data, XML is about the data itself
What version of XML does this course focus on?
Version 1.0
How do you specify a comment in XML?
< !– The comment – >
How do you specify unparsed character data?
< ![CDATA[ ]] >
Are XML elements case sensitive?
Yes
What part of an XML doc is like metadata?
Attribute
Elements are thought of as ______ and attributes as ______
Nouns, Adjectives
Is the XML Declaration required?
No, but recommended
If the version isn’t specified in the declaration, what version is assumed?
Latest version (1.1)
What is an entity?
A way to specify a special character and not have it parsed.
&
What does the DOM do?
Provides a way to query and manipulate XML documents
How does the DOM structure an XML document?
a Tree
What does the DOM standard define a set of?
Interfaces
What is the fundamental interface in the DOM?
Node
What is a NamedNodeMap typically used for?
Attributes
What type of Node supports Attributes in the DOM?
Element
How many children does an Attr Node have?
Exactly 1
What does the Document class inherit from in the DOM?
Node
What type of XML schema has become the standard?
XSD
What is the XML document that a schema applies to?
Instance Document
What are the 2 basic parts of an XML schema?
- Data types
- Structures
What do schema definitions do?
Create new types