--- old/src/share/classes/java/util/prefs/Preferences.java 2013-06-10 10:38:01.473878854 +0100 +++ new/src/share/classes/java/util/prefs/Preferences.java 2013-06-10 10:38:01.201878860 +0100 @@ -134,52 +134,52 @@ * subsequently restore from the backup. * *
The XML document has the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *
{@code + * + * }* Note that the system URI (http://java.sun.com/dtd/preferences.dtd) is * not accessed when exporting or importing preferences; it merely * serves as a string to uniquely identify the DTD, which is: - *
- * <?xml version="1.0" encoding="UTF-8"?> + *{@code + * * - * <!-- DTD for a Preferences tree. --> + * * - * <!-- The preferences element is at the root of an XML document - * representing a Preferences tree. --> - * <!ELEMENT preferences (root)> + * + * * - * <!-- The preferences element contains an optional version attribute, - * which specifies version of DTD. --> - * <!ATTLIST preferences EXTERNAL_XML_VERSION CDATA "0.0" > + * + * * - * <!-- The root element has a map representing the root's preferences - * (if any), and one node for each child of the root (if any). --> - * <!ELEMENT root (map, node*) > + * + * * - * <!-- Additionally, the root contains a type attribute, which - * specifies whether it's the system or user root. --> - * <!ATTLIST root - * type (system|user) #REQUIRED > + * + * * - * <!-- Each node has a map representing its preferences (if any), - * and one node for each child (if any). --> - * <!ELEMENT node (map, node*) > + * + * * - * <!-- Additionally, each node has a name attribute --> - * <!ATTLIST node - * name CDATA #REQUIRED > + * + * * - * <!-- A map represents the preferences stored at a node (if any). --> - * <!ELEMENT map (entry*) > + * + * * - * <!-- An entry represents a single preference, which is simply - * a key-value pair. --> - * <!ELEMENT entry EMPTY > - * <!ATTLIST entry + * + * + * + * value CDATA #REQUIRED > + * }* * Every Preferences implementation must have an associated {@link * PreferencesFactory} implementation. Every Java(TM) SE implementation must provide @@ -1161,9 +1161,9 @@ * This XML document is, in effect, an offline backup of the node. * *The XML document will have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* The UTF-8 character encoding will be used. * *This method is an exception to the general rule that the results of @@ -1192,9 +1192,9 @@ * effect, an offline backup of the subtree rooted at the node. * *
The XML document will have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* The UTF-8 character encoding will be used. * *This method is an exception to the general rule that the results of @@ -1228,9 +1228,9 @@ * do not exist, the nodes will be created. * *
The XML document must have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* (This method is designed for use in conjunction with * {@link #exportNode(OutputStream)} and * {@link #exportSubtree(OutputStream)}.