Deprecated: add_custom_background is deprecated since version 3.4.0! Use add_theme_support( 'custom-background', $args ) instead. in /home/pqmz7qzy9yt5/public_html/wp-includes/functions.php on line 5084

Deprecated: add_custom_image_header is deprecated since version 3.4.0! Use add_theme_support( 'custom-header', $args ) instead. in /home/pqmz7qzy9yt5/public_html/wp-includes/functions.php on line 5084

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/pqmz7qzy9yt5/public_html/wp-includes/functions.php on line 5536

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the smoothscroll handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/pqmz7qzy9yt5/public_html/wp-includes/functions.php on line 5536

Deprecated: The called constructor method for WP_Widget in Yoko_SocialLinks_Widget is deprecated since version 4.3.0! Use __construct() instead. in /home/pqmz7qzy9yt5/public_html/wp-includes/functions.php on line 5177
Intro to Databases, Video Lecture 5: XML Data, DTDs, IDs and IDREFs | Megan Taylor

Megan Taylor

front-end dev, volunteacher, news & data junkie, bibliophile, Flyers fan, sci-fi geek and kitteh servant

Intro to Databases, Video Lecture 5: XML Data, DTDs, IDs and IDREFs

“Valid” XML
adheres to basic structural requirements
also adheres to content-specific specifications
– document type descriptor (DTD)
– XML schema (XSD)

test XML with validating XML parser

DTDs
grammar-like language for specifying elements, attributes, nesting, ordering, #occurrences
also special attribute types ID and IDREFs

Benefits of using DTDs
programs can assume structure
CSS/XSL can assume structure
specification – data exchange
documentation

Benefits of NOT using DTDs
flexibility, ease of change
DTDS can be messy – irregular
XSDs can be REALLY messy

ID and IDREF attributes
give elements IDs and refer to them in other elements with IDREFs
must be unique

#REQUIRED vs #IMPLIED

use symbols like regular expressions

| or
* 0 or more
? optional
CDATA or #PCDATA strings
+ 1 or more

October 23, 2011 | Comments Off on Intro to Databases, Video Lecture 5: XML Data, DTDs, IDs and IDREFs | Categories: Posts | Permalink

Comments are closed.


Notice: Undefined index: host in /home/pqmz7qzy9yt5/public_html/wp-content/plugins/jetpack/modules/stats.php on line 209