初学schema---schema命名空间理解

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" <!-- schema的命名空间 -->
         targetNamespace="http://www.example.org/01"  <!-- 在其他文件中要引用该schema文件就要在schemaLocation中引入它 -->
         xmlns:tns="http://www.example.org/01" <!-- 在自己中引用自己定义的元素时使用的 命名空间 -->
         elementFormDefault="qualified">
         
         <complexType name="mytype"></complexType>
         
         <element name="tt" type="tns:mytype"></element> <!-- 在自己中引用自己定义的元素时使用的 命名空间 -->
</schema>

初学schema---schema命名空间理解
初学schema---schema命名空间理解
初学schema---schema命名空间理解

相关文章:

  • 2022-12-23
  • 2021-10-04
  • 2022-01-10
  • 2021-10-03
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-08-06
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案