XML Flashcards
What is XML?
Extensible Markup Language is a simple text-based format for representing structural information such as documents, data, configurations, oils, invoices, etc. It is derived from an older format called, SGML to be more suitable for web use. It is used mainly to describe data, a flexible way to create information formats and electronically share stricter data via the public internet
What is “well formed” V’s “valid xml”?
Valid xml has a Document Type Definition (DTD) associated with it and has been verified against all the rules contained in the DTD in addition to being well formed
Well formed is xml that has tags closed in proper order and has declarations (if any) first thing in the file with proper attributes.
Validity refers to semantics, and well-formedness refers to the syntax (rules that determine how an xml app can be written)
What is the difference between DTD and XSD?
DTDs (Document Type Definition) are the declarations that define a document type for SGML (Standard Generalized Markup Languages). Xml Schema Definition (XSD) defined the structure of an XML document. It is used to describe the attributes of a XML language precisely.
XSD is extensible, you can define new elements from existing ones. DTD cannot.
XSD supports data types, DTD does not.
XSD uses XML, DTD uses SGML
XSD gives dev more control on the structure of the XML doc, DTD does not
XSD supports namespace, DTD does not.
What is XML namespace?
A collection of names that can be used as attribute or element names in an xml document. Namespace qualifies element names uniquely on the web in order to avoid conflicts between elements with the same name
What is the syntax of XML?
Refers to the rules that determine how an xml document can be written. XML uses a tree structure format using a root element in which all other elements are contained. All elements must have a closing tag, all tags are case sensitive, elements must be properly nested, attribute values must always be quoted.
What is an XPath?
Stands for XML Path language is used a “path like” syntax to navigate and identify nodes in an XML document. It is used to search through and extract information from any part of an XML doc.