Syntax of XML (3) XML 2

Source: Internet
Author: User
2. pay attention to the case sensitivity in HTML, the case sensitivity is not very sensitive, but XML is very strict with the case sensitivity request. if the start ID is in uppercase, the end ID must be in uppercase. 3. all identifiers with "beginning and end" must have corresponding knots. 2. be careful with case sensitivity.

The case sensitivity in HTML is not very sensitive, but XML is very strict with the case request. if the start mark is in uppercase, the end mark must be in uppercase.

3. all "start and end" identifiers must have corresponding end identifiers

People familiar with HTML know that there are many similar HTML

, And so on. The End ID is dispensable, but XML does not agree to this situation.

4. the empty identifier (empty element) must be closed.


, Etc. what should we do?

Added/in XML to end empty identifiers.

<Id/>

<Id property name = "property value"/>

5. quote the property value

You can add ''or'' to the attribute values in HTML ''. However, in XML, the attribute value must be ''.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.