Well, these relationships between "xmlns:tns" and "targetNamespace" and "import namespace" are all conventions, they are not "in the spec". So while they may be common, we cannot necessarily assume that what you want is exactly the behavior that anyone else would want.
But you can implement your own helper methods to set up the 'xmlns' declarations at the same time you are editing the other values. See XmlCursor.insertNamespace(). Radu -----Original Message----- From: sirkware [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 1:41 AM To: [email protected] Subject: Updating Target Namespace and xmlns:tns As a follow-up question, is it also possible to update the namespace related to the import? For example I have these declarations: <xml-fragment targetNamespace="urn:myTargetnamespace" elementFormDefault="qualified" attributeFormDefault="unqualified" version="01.03" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:myTargetnamespace" xmlns:ssdh="urn:myDocument"> <xs:import namespace="urn:myDocument" schemaLocation="../MyDocument.xsd"/> ....and so on.. Here, I would also like to update xmlns:ssdh namespace whenever I update my import namespace? Is it possible with xmlbeans? I can only see the imports and targetnamespace in my binding and I dont see the namespaces with the prefixes. Any help would deeply be appreciated. Thanks. Regards, Elvin --------------------------------------------------------------------- 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]

