Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Namespace and Schema  RSS feed

 
sonu arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i make it sure that my certain elements in xml document must declare the namespace for the element types. for eg:
<aa:Name>----root element
<bb:add/>
</aa:Name>
what should i write in Schema so that Name element must be in "aa" and add element should be in "bb" namespace.
plz give some code examples.
urgent help requires
thx
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!