Case 8: Use namespaces and attributes in queries.
案例8:在查询中使用名称空间和属性。
Many XML documents use namespaces, which are specified using a URI.
许多XML文档都使用名称空间,这些都是使用URI指定的。
These are just a few examples of how we can use namespaces to enhance our code.
还有许多例子可以演示如何使用名称空间增强代码。
Do use namespaces to organize types into a hierarchy of related feature areas.
使用命名空间将类型组织到相关功能区域的层次结构中。
For practical reasons based on my experience, these days I use namespaces in almost all of my XML designs.
由于实践的原因,这些天几乎在所有的XML设计中我一直使用名称空间。
Do not use namespaces as mere carriers of bits of information for related elements; use attributes instead.
不要将名称空间仅仅当作相关元素的信息位的载体使用;请将属性用于这种用途。
The Flickr XML ( Listing 1) does not use namespaces, so all you need is a simple name for the QNames in Listing 4.
FlickrXML(清单1)没有使用名称空间,因此只需要对清单 4中的 QNames 使用一个简单名称。
This is an important rule since NIEM conformant documents use namespaces and qualified data elements for all leaf-data elements.
这是一条重要的规则,因为符合NIEM的文档对于所有叶级数据元素使用名称空间和限定名。
You might use namespaces to delineate packages but the namespace mechanism does not govern how a product might be organized, managed, built, or delivered.
你可用名字空间描述软件包,但名字空间没有提供产品的组织、管理、生产和交付方式等的监管机制。
If you do use namespaces, try to keep all of your namespace declarations on the root element, and do not override your namespace prefixes because that way lies madness.
如果您使用名称空间,请尽量在根元素位置声明所有名称空间,并且不要覆盖名称空间前缀,否则情况会非常混乱。
Use user namespaces (for example, DOMAIN \ user).
使用用户名称空间(例如,DOMAIN \user)。
The use of namespaces can help identify what function or utility the code provides, or even help specify its origin.
使用名称空间可以帮助识别代码提供的函数或实用程序,甚至可以帮助指定其来源。
So this is one use for namespaces!
因此这是名称空间的一种用途!
If you want to use DTDs and namespaces together, you can do so by designating specific prefixes and treating them as fixed parts of the element and attribute names.
如果您要同时使用DTD和名称空间,通过指定特定的前缀并把它们当作元素和属性名称的固定部分就可以做到了。
It will depend on what features you use and what namespaces your instances use.
具体情况取决于使用的特性和实例使用的名称空间。
The XML Schema supports this due to the required use of namespaces.
由于需要使用名称空间,这个XML模式支持这个功能。
This tutorial lays the groundwork for Part 2, which focuses on information modeling, including the use of namespaces and the definition of Document Type definition (DTD) schemas.
本教程作为第2部分的铺垫,第2部分主要讨论信息建模,包括名称空间的使用和定义文档类型定义(DTD)模式。
Use of namespaces alters the content (but not the shape) of the logical message tree, which is why a new domain was created instead of altering the original XML domain.
命名空间的使用改变了逻辑消息树的内容(但不改变形状),这就是创建新域而不是修改原始XML 域的原因。
The use of XML namespaces in general XML documents is not a best practice — in fact, it is a very costly practice.
在一般XML文档中使用XML名称空间并不是最佳实践,事实上,这是一种代价高昂的实践。
At last, you have a good reason to use XML namespaces.
最后终于有了一个使用XML名称空间的好理由。
You also need custom namespaces to use WSDL definitions and port types in your BPEL file.
您还需要客户名称空间来使用WSDL定义以及BPEL文件中的端口类型。
The use of multiple namespaces with basically the same data creates some major problems for XML data binding.
结合本质上相同的数据使用多名称空间会给XML数据绑定造成一些重大问题。
In general, if you have the luxury of defining the XML data you'll be working with, be consistent in your use of namespaces.
通常,如果有机会定义将来要使用的XML数据,那么在名称空间的使用上应保持一致性。
Both of these extension mechanisms use XML namespaces to separate the extended content from the standard content and definitions.
两种扩展机制都使用XML名称空间把扩展内容与标准内容和定义区分开。
It is a good practice to import all of the namespaces that you use.
导入所有要使用的命名空间,这是一个好习惯。
Perhaps this still isn't a reasonable use case for XML namespaces, but you have glimpsed a certain amount of usefulness.
可能这仍然算不上是XML名称空间的一个合理的用例,但是您已经看到了一些用处。
RDDL is very easy and inexpensive to use with namespaces, and indeed some users have even used RDDL as a format for expressing general resource repositories.
将RDDL用于名称空间非常简单而且成本低廉,实际上一些用户已经把RDDL作为表达通用资源存储库的一种格式。
They use XML namespaces corresponding to the namespace in the XML data.
它们使用与XML数据中的名称空间对应的 XML 名称空间。
One notable advantage that comes with XML is the use of namespaces to indicate external schemas developed and refined by other groups.
XML一个值得注意的优点是使用名称空间指明其他团队开发和改进的外部模式。
People unfamiliar with the NIEM sometimes consider NIEM tag names to be too long and the required use of namespaces burdensome for the novice XML developer.
不熟悉NIEM的人有时候认为NIE m标记名太长了,而且对于XML开发新手来说,必须使用名称空间也很麻烦。
应用推荐