This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The following code should write information to a preferences file, that is expected to include left, top, width, height, and, title nodes, however, it does not seem to happen. Any idea how to update the code so that preferences are included within the preferences file exported from the File > Export Preferences option?
Source: Core Java Volume I (8th Edition) Listing 10-8 P. 546 to 549
preferences.xml - does not include nodes for left, top, width, height, and, title:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd">
"The actual storage of the data is dependent on the platform, e.g. under Windows the Windows Registry is used while under Linux a hidden file in the home directory of the user is used." Quoted from this article.
Does this code snippet save any entries in the Windows registry in my case? Can I look them up?
I am using Win XP SP3.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Preferences.exportSubTree() does not export all xml nodes