473,513 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wildcard vs. Import

I am having a little trouble sorting out the exact differences between
using wildcards and using import in XML schema.

I know that a wildcard allows any global elements from the referenced
schema/namespace to be used in an XML instance document based on the
current schema but only within the element where the wildcard is
specified. When I import a schema, does that allow ANY elements from the
imported schema to be used ANYWHERE in the XML instance document? Or does
that just allow you to then borrow only specific components from the
imported schema for use within your current schema and only those
components are allowed to appear in the XML instance document?

If the latter, is the only difference - between wildcards and import -
that wildcards allow any element from the referenced schema while import
only allows the specified elements? Are there any subtle differences that
I should know about?

Jun 6 '07 #1
2 1581
Grant Robertson wrote:
When I import a schema, does that allow ANY elements from the
imported schema to be used ANYWHERE in the XML instance document?
No.

The importing schema still defines the structure of its own elements.
The imported elements may only be used in places where the importing
schema explicitly references them, or uses a wildcard/ANY to allow them.

Suggested reading:
http://www.w3.org/TR/xmlschema-1/#co...n-schemaImport


--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 6 '07 #2
In article <Ef******************************@comcast.com>, keshlam-
no****@comcast.net says...
The importing schema still defines the structure of its own elements.
The imported elements may only be used in places where the importing
schema explicitly references them, or uses a wildcard/ANY to allow them.
Thanks, again, for your help.
Jun 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3475
by: Jon Perez | last post by:
For a given list: fruits= Is it possible to do wildcard matches like shown below? 1. "man*" in fruits
5
1812
by: Thomas Rademacher | last post by:
Hello, I want to collect with the wildcard '*' all existing directories. For example: /dir/dir/*/dir/*/dir/* or C:\dir\dir\*\dir\*\dir\* How can I resolve this problem? Thanks for your...
1
3207
by: Generic Usenet Account | last post by:
Here's the requirement that I am trying to satisfy: Handle wildcards in STL such that the wildcard entry is encountered before non-wildcard entries while traversing containers like sets and...
1
7235
by: deko | last post by:
I have a form where users can enter a string with asterisks to perform a wildcard search. Currently, the string entered by the user looks like this: *somestring* The purpose is to match any...
78
4548
by: wkehowski | last post by:
The python code below generates a cartesian product subject to any logical combination of wildcard exclusions. For example, suppose I want to generate a cartesian product S^n, n>=3, of that...
13
4307
by: hawkesed | last post by:
If I have a list, say of names. And I want to count all the people named, say, Susie, but I don't care exactly how they spell it (ie, Susy, Susi, Susie all work.) how would I do this? Set up a...
4
1578
by: madeleine.macphail | last post by:
I'm currently tearing my hair out on this one. I'm trying to run through a bunch of worksheets in a bunch of workbooks and only run an import on the ones that match the type of name I'm looking...
11
6477
by: ABC | last post by:
How to rename files with support wildcard ?
0
1768
by: Tim Golden | last post by:
Robert Dailey wrote: I haven't checked but I doubt this has changed from Python 2.x. Just use os.walk and filter on what you want. Vaguest and most untested code sample: <code> import os...
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7543
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.