q-1 - nK315 XML Documents, CDATA, and Namespaces Spring...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style n K315 – Spring 2010 XML Documents, CDATA, and Namespaces n January19, 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n Overview n A Quick Review of Process Modeling n A review of XML document structure n Alternative to using elements ¡ Attributes n Inserting character data n Brief introduction to namespaces n Class Exercise. ..
Background image of page 2
n XML Document Structure n XML declaration n Element data n Attribute data n XML content ¡ Character data
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n XML Declaration n The XML declaration is not required, but it identifies the document as an XML document and the version of XML used. Component Description <?xml Beginning of the processing instruction version=“xxx” Specific version of XML used in the document standalone=“xxx” Defines if document can contain external markup declarations. Can be set to “yes” or “no” encoding=“xxx” Default is “US-ASCII”, but can be set to any value that XML processors can recognize. Most common is “UTF-8”
Background image of page 4
n Valid XML declarations <?xml version=“1.0”?> <?xml version=“1.0” standalone=“yes”?> <?xml version=“1.0” encoding=“UTF-8” standalone=“no”?>
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n Rules for writing XML n A root element is required ¡ Every XML document must have one element that contains all the other elements. n Closing tags ¡ Every element must have a closing tag n Nesting ¡ Elements must be properly nested n Case ¡ XML is case sensitive n Empty Elements ¡ All empty elements terminate properly n *Entities ¡ Entities are used in place of special characters such as > n *Attributes ¡ Attribute values are in quotation marks
Background image of page 6
n Find the Errors <?xml version="1.0"> <father>Frank E. Akaiwa</ FATHER > <mother>Carolyn L. Cooke</mother> <offspring> <child>Jonathon Ralph Cooke-Akaiwa</ chlid > <child>Benjamin Ernest Cooke- Akaiwa< child> <child>Abigail Rae Cooke-Akaiwa</child> < Offspring >
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n Writing special symbols n Thompson & Thompson Genetics in Medicine <INVENTORY> <BOOK> <TITLE> Thompson & Thompson Genetics in Medicine </TITLE> <AUTHOR>Robert Nussbaum</AUTHOR> <BINDING>paperback</BINDING> <PAGES>444 </PAGES> <PRICE>46.95 </PRICE> </BOOK> </INVENTORY>
Background image of page 8
n Writing special symbols n Thompson & Thompson Genetics in Medicine <INVENTORY> <BOOK> <TITLE> Thompson &amp; Thompson Genetics in Medicine </TITLE> <AUTHOR>Robert Nussbaum</AUTHOR> <BINDING>paperback</BINDING> <PAGES>444 </PAGES> <PRICE>46.95 </PRICE> </BOOK> </INVENTORY>
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n Writing 5 special symbols n Special symbols can be inserted into XML and HTML documents by using name entities. There are five entities allowed in XML.
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/19/2011 for the course BUS 256 taught by Professor Several during the Fall '09 term at Indiana.

Page1 / 33

q-1 - nK315 XML Documents, CDATA, and Namespaces Spring...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online