This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Diff b/w include and import

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am a bit confused,can anybody tell me the diff between include and import in xml schemas.
what role does it play,does it play any role with the performance.
which to use,where and when?
i read that once we include we can use the definitions and declarations from the included schema in our new schema.
i think that import also does the same thing.
then y two different tags.
plz reply asap.
thanx in advance.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The include element allows you to access components in other schemas
All the schemas you include must have the same namespace as your schema (i.e., the schema that is doing the include)The net effect of include is as though you had typed all the definitions directly into the containing schema.
The import element allows you to access elements and types in a different namespace.
To know more abt this please refer the a schema tutorial in powerpoint format,i downloaded it from internet,forgot the link,please search in javaranch to get the link,
to be honest i pasted the above line from that tutorial only for you.
 
mahadevan raja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u balaji,
i have understood a bit,i think the link u mean is the xfront.com which provides three schema presentations.
i have it,now me having a look at it.
thanks again.
bye
 
I was born with webbed fish toes. This tiny ad is my only friend:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!