正确使用“默认” XML Schema中的属性 [英] correct use of "default" attribute in XML Schema
问题描述
大家好,
正确使用默认是什么? XML Schema中的属性?
例如:
< xs:element name =" myProperty"类型= QUOT; XS:串QUOT; default =" myDefaultValue" />
我该怎么办? <
.... default =" myDefaultValue"的含义是什么? /> ?
非常感谢你。
再见
-
Stefano Giannone
MCP .NET
http://www.giasoft。它
Hi all,
what is the correct use of the "default" attribute in XML Schema?
For example:
<xs:element name="myProperty" type="xs:string" default="myDefaultValue"/>
What can I do with it? What is the meaning of <
....default="myDefaultValue" /> ?
Thank you so much.
Bye
--
Stefano Giannone
MCP .NET
http://www.giasoft.it
推荐答案
默认意味着有一个应用程序
抢占xml中可能出现的单词。
预计会与BIG MONEY标准对齐方式和方法
并且不会给出缺口。
对于xml" USER"设置,常规xml开发者,
和通过xml实现互操作性的求助者 - 死刑判决。
********
它起源于美国新德克萨斯州的愿景,即死亡或活着
==========
你先在这里阅读。
============================ ==
==============================
现在去吧离开并浪费别人的时间。
你10行的页面只有一个flash对象嵌入
在我的电脑上不起作用,因为我已经设置了Kill对于这样的垃圾来说,这是多少美元。
" Stefano" < ST **************** @ giasoft.it>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
Default means there is an application that
preempts possible words in xml.
It will expect alignment to BIG MONEY "standard" way and methods
and will not give a "notch".
For xml "USER" settings, regular xml DEVELOPERS,
and seekers of interoperability via xml -- the death sentence .
********
It stems from US neo-texan vision aka death or alive
==========
You read it here first.
==============================
==============================
Now go away and waste other people''s time.
You 10 line page only has a flash object embedded
that does not work on my PC, because I have set the Kill Bit
for such crap.
"Stefano" <st****************@giasoft.it> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
大家好,
正确使用默认是什么? XML Schema中的属性?
例如:
< xs:element name =" myProperty"类型= QUOT; XS:串QUOT; default =" myDefaultValue" />
我该怎么办? <
... default =" myDefaultValue"是什么意思? />很感谢你。
再见
-
Stefano Giannone
MCP .NET
http://www.giasoft.it
Hi all,
what is the correct use of the "default" attribute in XML Schema?
For example:
<xs:element name="myProperty" type="xs:string" default="myDefaultValue"/>
What can I do with it? What is the meaning of <
...default="myDefaultValue" /> ?
Thank you so much.
Bye
--
Stefano Giannone
MCP .NET
http://www.giasoft.it
>
什么?
打扰一下,但我不明白你写的是什么......
谢谢
再见
" name" <使用者@ NOSPAM> ha scritto nel messaggio
news:ua ************** @ TK2MSFTNGP14.phx.gbl ...
What?
Excuse me, but I didn''t understand what you wrote...
Thanks
Bye
"name" <user@nospam> ha scritto nel messaggio
news:ua**************@TK2MSFTNGP14.phx.gbl...
默认意味着有
在xml中抢占可能的单词的应用程序。
它将期望与BIG MONEY标准对齐。方式和方法
并且不会给出缺口。
对于xml" USER"设置,常规xml开发者,
以及通过xml实现互操作性的寻求者 - 死刑判决。
********
它来自美国新德克萨斯的愿景,也就是死亡或活着
==========
你先在这里阅读。
== ============================
================== ============
现在离开并浪费别人的时间。
你10行的页面只有一个flash对象嵌入
不起作用在我的电脑上,因为我为这样的垃圾设置了杀戮位。
Stefano < ST **************** @ giasoft.it>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
Default means there is an application that
preempts possible words in xml.
It will expect alignment to BIG MONEY "standard" way and methods
and will not give a "notch".
For xml "USER" settings, regular xml DEVELOPERS,
and seekers of interoperability via xml -- the death sentence .
********
It stems from US neo-texan vision aka death or alive
==========
You read it here first.
==============================
==============================
Now go away and waste other people''s time.
You 10 line page only has a flash object embedded
that does not work on my PC, because I have set the Kill Bit
for such crap.
"Stefano" <st****************@giasoft.it> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
大家好,
正确使用默认是什么? XML Schema中的属性?
例如:
< xs:element name =" myProperty"类型= QUOT; XS:串QUOT;
default =" myDefaultValue" />
我该怎么办? <
... default =" myDefaultValue"是什么意思? />很感谢你。
再见
-
Stefano Giannone
MCP .NET
http://www.giasoft.it
Hi all,
what is the correct use of the "default" attribute in XML Schema?
For example:
<xs:element name="myProperty" type="xs:string" default="myDefaultValue"/>
What can I do with it? What is the meaning of <
...default="myDefaultValue" /> ?
Thank you so much.
Bye
--
Stefano Giannone
MCP .NET
http://www.giasoft.it
>
Stefano写道:
Stefano wrote:
正确使用的是什么"默认" XML Schema中的属性?
例如:
< xs:element name =" myProperty"类型= QUOT; XS:串QUOT; default =" myDefaultValue" />
我该怎么办? <
... default =" myDefaultValue"是什么意思? /> ?
what is the correct use of the "default" attribute in XML Schema?
For example:
<xs:element name="myProperty" type="xs:string" default="myDefaultValue"/>
What can I do with it? What is the meaning of <
...default="myDefaultValue" /> ?
文档在这里:
< http://www.w3.org/TR/xmlschema-1/#cElement_Declarations> ;
这说明您可以对元素设置值约束。例如,如果XML文件中的
元素为空,那么如果在元素声明中提供了
默认值,则该值变为
模式标准化值在所谓的后架构验证
信息集中。
例如,如果你构建一个DOM,那么这样一个元素的DOM可以
包含默认值,即使XML输入标记不包含
该值。
但是我不确定MSXML 4或.NET是否实际添加一个元素的默认
值,在这里快速测试中没有添加值。
我也尝试过使用Java 1.5的Java解析器和DOM
元素的默认值已添加并显示在DOM中。
然而,MSXML 4和.NET都会为属性添加默认值。
-
Martin Honnen
http://JavaScript.FAQTs.com/
这篇关于正确使用“默认” XML Schema中的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!