This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml : setting schema and namespace details

 
Madhumitha Baskaran
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
I generated my xml using Marshaller class of castor. But my xml is missing namespace and schemaloctaion details.
How do i set them while generating the xml in castor?
i used
marshaller.setSchemLocation("http://......");
marshaller.setNamespaceMapping("","http:/.....");

But schema and namespace details are not found in the xml. Do i need to set any property as true?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic