@@ -130,10 +130,12 @@ * file */ + (instancetype)elementWithFile: (OFString *)path; #endif +- init OF_UNAVAILABLE; + /*! * @brief Initializes an already allocated OFXMLElement with the specified name. * * @param name The name for the element * @return An initialized OFXMLElement with the specified element name @@ -205,10 +207,12 @@ * @param path The path to the file * @return An initialized OFXMLElement with the contents of the specified file */ - initWithFile: (OFString *)path; #endif + +- initWithSerialization: (OFXMLElement *)element; /*! * @brief Sets a prefix for a namespace. * * @param prefix The prefix for the namespace