targetNamespace
生活随笔
收集整理的這篇文章主要介紹了
targetNamespace
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
targetNamespace是一個xml的schema中的概念
比如我們定義了這么個schema:
<xs:schema xmlns:xs="url/2001/XMLSchema"
targetNamespace="http://a.name/space">
<xs:element name="address" type="xs:string" />
</xs:schema>
那么它表示的意思是address這個元素是屬于"http://a.name/space"命名空間的。你想想看,如果你不指定targetNamespace,那么address是屬于什么命名空間是不知道的,它肯定不是屬于“url/2001/XMLSchema”命名空間。指定了這個以后,就能讓我們定義的schema中的元素都有自己的命名空間。這個命名空間都是自己定義的。
轉載于:https://www.cnblogs.com/mengen/p/8529060.html
總結
以上是生活随笔為你收集整理的targetNamespace的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: javascript对象的几种创建方式
- 下一篇: 架构实战项目心得(三):JAVA和MAV