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]

