Wildcard vs. Import

  • Thread starter Grant Robertson
  • Start date
G

Grant Robertson

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?
 
G

Grant Robertson

keshlam- said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,000
Messages
2,570,252
Members
46,848
Latest member
CristineKo

Latest Threads

Top