File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Xml : setting schema and namespace details Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Xml : setting schema and namespace details" Watch "Xml : setting schema and namespace details" New topic
Author

Xml : setting schema and namespace details

Madhumitha Baskaran
Ranch Hand

Joined: Feb 27, 2010
Posts: 62
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Xml : setting schema and namespace details
 
Similar Threads
TargetNameSpace?
XML Validation using castor
NameSpace URI?
validation of XML w/ XSD... almost there...
namespace