Home
Flashcards
Preview
Xml Midterm
The flashcards below were created by user
djon
on
FreezingBlue Flashcards
.
Home
Mobile
Quiz
Well-formed vs. valid
well-formed can be read by a parser
valid can ALSO be validated by DTD or schema
Why use DTD's?
makes xml data useful to more than one application
document type
A group of XML documents that share a common XML vocabulary
document instance
Individual document that conforms to a document type
When using both character data and child elements, where does #PDDATA go?
must be first item in content model
<!Element myMixed (#PCDATA, child1, child2)>
Cardinality
operators that define how many child elements may appear in a content model
[none]
1 child element is allowed
?
0 or 1 child element
*
0 or more child elements
+
1 or more child elements
when only one of several child elements if permitted
|
ENTITY
the name of a pre-defined entity
ENTITIES
a list of entities delimited by whitespace
#IMPLIED
optional
as opposed to #REQUIRED
standalone="no"?>
the DTD contains references to external validation resources(schemas)
"yes" means nothing more is required
DOCTYPE delclaration
what is SYSTEM
any valid web URL or file mapping
Entities
used for replaceable content
two main types of entities
General entities used within XML data
Parameter entities are used only within DTDs
how to use General entities
<ENTITY name "sometext">
with & and ;
<element>&name;</element>
Parameter Entities
<!ENTITY % name "replacement_text">
What 2 parts do Schemas consist of?
data types = the atoms
structures = the compounds
atomic data type
types that have values that are defined to be divisible
list data type
a value that's comprised of a finite-length sequence of atomic values
What are the 3 parts of of the schema datatypes?
value space
lexical space
facets
facets
defining properites of a datatype which distinguishes that datype from others
ex. minLength, maxLength
Author
djon
ID
228065
Card Set
Xml Midterm
Description
midterm
Updated
2013-07-24T20:17:11Z
Show Answers
n
Home
Flashcards
Preview