Home > Preview
The flashcards below were created by user
on FreezingBlue Flashcards.
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
A group of XML documents that share a common XML vocabulary
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)>
operators that define how many child elements may appear in a content model
1 child element is allowed
0 or more child elements
1 or more child elements
when only one of several child elements if permitted
the name of a pre-defined entity
a list of entities delimited by whitespace
- as opposed to #REQUIRED
- the DTD contains references to external validation resources(schemas)
- "yes" means nothing more is required
what is SYSTEM
any valid web URL or file mapping
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 ;
<!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
- defining properites of a datatype which distinguishes that datype from others
- ex. minLength, maxLength
What would you like to do?
Home > Flashcards > Print Preview