Try dumping the doc using pli81doc.toString(); that will tell you if the data really got into the document or not: I have never heard of a case where the data was in the right document, yet .toString() failed to print it.
Radu -----Original Message----- From: Quynh-Anh Nguyen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 1:30 PM To: [email protected] Subject: how to save the whole document (create instance in memory)info to a file in xml format? I am working on a case where I create my document in memory, set all of the data (java form) that it needs and I want to write the whole content of the whole document in to a file. I know for sure that my document does have all of the data structure that is nested underneath of it. However, my file only contains the top line of the base namespace info: <?xml version="1.0" encoding="UTF-8"?> <PLI80 xmlns="http://www.rrc.state.tx.us/pipeline"/> Does anyone have a hint for me? Thank you in advance: File testFile = new File("C:\\tmp\\testWriteFile.xml"); try { XmlOptions options = new XmlOptions(); options.setSaveNamespacesFirst(); options.setUseDefaultNamespace(); pli81doc..save(testFile, options); } --------------------------------------------------------------------- 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]

