当前位置:网站首页>On the meaning of XML file format in the framework
On the meaning of XML file format in the framework
2022-07-16 07:31:00 【Vision-wang】
1. XML The label must be customized , But when writing a signature, it must have meaning
Labels cannot be cross coded
Special characters require entity escape
2. XML There must be a root node , That is, other labels are coveredSpring For the <Beans> pom For the <project>
3. XML There should also be a header statement It is not a hard requirement , But it covers the coding format , It is necessary to define , It is also generally defined
<?xml version="1.0" encoding="UTF-8"?>
4. XML Should also be constrained , There are two kinds of constraint files DTD and XSD They can all be introduced from the network and locally
When we use the framework , Frames have specific tags to be recognized by the frame , So write it yourself xml To identify the needs of the framework, we need to introduce constraints
XSD The introduction of :
< Root tag xmls:xsi="w3c Constraint address "
xsi:schemaLocation=" The address of the frame constraint "
<!-- After the above two are completed, the introduction is actually completed , But when we use labels, we also need to add the address of frame constraint in front of each label, which is very troublesome -->
<!-- Therefore, by introducing a unified label prefix, you can write directly without paying attention to the prefix -->
xmlns=" Frame constraint address "
>
We usually use Spring etc. xml The writing method is carried out through such constraints
边栏推荐
- I have added 101.132.179.94 to the white list of Oracle and still failed to Ping. What should I do
- Observer mode
- Du test de fonction au test automatique pour doubler le salaire, mon guide d'apprentissage Super complet [joindre les notes d'apprentissage]
- SAP ABAP selection screen selection screen is enough to read this article (continuous update)
- 【LeetCode】1217. 玩筹码
- Go seckill system 3 -- work mode, publish mode
- JVM directory
- 为什么都说测试岗位是巨坑?10年测试人告诉你千万别上当~
- 【LeetCode】2024. The most perplexing degree of examination
- 【MySQL】分页查询踩坑
猜你喜欢
随机推荐
Go seckill system 3 -- project structure construction and commodity model development.
【LeetCode】1217. Play chips
Determining whether there are rings in a directed graph by topological sorting
SAP tables transparent tables and views (continuously updated)
求职3个月,简历大多都石沉大海,一说是手工测试都连连摇头~太难了
JVM directory
MySQL 操作
Advanced technology management - what is influence
mysql学习记录
2021-11-7bugku做题记录25——POST
Five principles of aiops landing (3): Architecture route
[leetcode] interview question 01.05 Edit once
【LeetCode】933. 最近的请求次数
Problems encountered in SAP ABAP SMOD & CMOD second generation enhancement
SAP Logon 无法正常启动
JVM principle and Practice
初入测试如何编写测试用例?从3个方面带你写一个合格的测试用例
Generally speaking, cookies, sessions, and tokens are different
Mid year summary - rotten
【LeetCode】933. Recent requests









