• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Diff b/w include and import

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic