Mindmap
XML & XML Schema

Inhalt der Mindmap
XML & XML Schema
What is XML?
- Extensible Markup Language
- Similar to HTML, but XML describes data - focus on what the data is
- XML documents must have a root element
- Child elements
- Elements nested in elements
- Child elements
- Attributes
- Text strings in double quotes e.g. <input type = "hidden">
- Well formed
- XML documents must have a root element
- Similar to HTML, but XML describes data - focus on what the data is
- Extensible Markup Language
Document Object Model (DOM)
- The standard for accessing documents
- Defines objects and properties of all XML elements
- Defines methods (interface) to access them
- get, change, add and delete XML elements
- Defines objects and properties of all XML elements
- Simple XML
- PHP built-in XML parser
- One class: SimpleXMLElement
- addAttribute(name, value)
- addChild(name, [,value])
- asXML([filename])
- attributes()
- children()
- getName()
- One class: SimpleXMLElement
- PHP built-in XML parser
- The standard for accessing documents
XML Namespaces
- Uniquely identify collection of element type and attribute names
- Prevent name conflict
- Use prefixes
- Need xmlns attribute to give prefix a qualified name
- Use prefixes
- Prevent name conflict
- Uniquely identify collection of element type and attribute names
XML Schema
- Describes structure of XML structure
- Support data types, namespaces, regular expressions
- <xs:schema>...</xs:schema>
- Order indicators: define order of elements
- <xs:all>
- Any order
- <xs:choice>
- specifies either one child element or another
- <xs:sequence>
- Must appear in specific order
- <xs:all>
- Support data types, namespaces, regular expressions
- Describes structure of XML structure
Bilder und Dateien der Mindmap
Informationen
- Beschreibung
- Computer Science Mindmap am XML & XML Schema, erstellt von Alex Bernini am 14/05/2019.
- Erstellt von
- Alex Bernini
- Aufrufe
- 1
- Bewertung

