Actually, XmlBeans doesn't have specific APIs to deal with xsi:[noNamespace]schemaLocation attributes (maybe it should....) You would have to set it as an ordinary non-Schema declared attribute, like that:
XmlCursor c = root.newCursor(); c.insertAttributeWithValue("noNamespaceSchemaLocation", "http://www.w3.org/2001/XMLSchema-instance", "yourValue"); Radu -----Original Message----- From: Grant Lewis [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 6:46 AM To: XMLBeans List Subject: Can I set noNamespaceSchemaLocation attribute (xmlbeans 1.0.4) I'm actually stuck using version 1.0.3 bundled with weblogic 8.1. I'm calling a cold fusion web service that requires the noNamespaceSchemaLocation attibute be set on the root element of the request xml. Is there a way I can add the attribute to the root element before I call xmlText on the bean. Grant --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]