HtmlAndXML
- Hypertext Markup Language (HTML) is mainly used for information layout and display.
- XML is a scalable markup language developed based on html. Its core function is data exchange and integration. XML has the following advantages over HTML:
- Custom tag
- The purpose of the design is to include and transmit
- Main applications include:
- As the system configuration file
- Data transmission in Web Services
- Data exchange and integration on Heterogeneous Platforms
- XML structure
- Declaration: version number, character encoding method
- Tag
- Root element
- Element: the element is the start tag, end tag, and all content between the two. The element is case sensitive and the speed must be correctly nested.
- To avoid confusion between character data and some special symbols commonly used in tags, XML provides entity references, such as replacing characters with & amp :&;
- XML is displayed in the browser
DTD: Document Type Definition
- Define the structure of the XML file
- Provides syntax and rules for XML
Why:
- XML must have a correct structure for correct data exchange
- The DTD specifies the layout and order of the content in XML, so that the XML that does not meet the requirements cannot be displayed.
Schema
- Schema describes the structure of XML documents. schema is an XML-based DTD substitution (XML schema definition), also known as XSD. It is more powerful than DTD and can be expanded to meet future needs and written based on XML, supported Data Types
- By standardizing various data types in XML, schema makes transmission faster and easier.
Simple inbound and simple outbound-XML