@@ -21,47 +21,47 @@ * @class OFXMLProcessingInstruction \ * OFXMLProcessingInstruction.h ObjFW/OFXMLProcessingInstruction.h * * @brief A class for representing an XML processing instruction. */ +OF_SUBCLASSING_RESTRICTED @interface OFXMLProcessingInstruction: OFXMLNode { - OFString *_target, *_data; - OF_RESERVE_IVARS(OFXMLProcessingInstruction, 4) + OFString *_target, *_Nullable _text; } /** * @brief The target of the processing instruction. */ @property (readonly, nonatomic) OFString *target; /** - * @brief The data of the processing instruction. + * @brief The text of the processing instruction. */ -@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *data; +@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *text; /** * @brief Creates a new OFXMLProcessingInstruction with the specified target - * and data. + * and text. * * @param target The target for the processing instruction - * @param data The data for the processing instruction + * @param text The text for the processing instruction * @return A new OFXMLProcessingInstruction */ + (instancetype)processingInstructionWithTarget: (OFString *)target - data: (OFString *)data; + text: (OFString *)text; /** * @brief Initializes an already allocated OFXMLProcessingInstruction with the - * specified target and data. + * specified target and text. * * @param target The target for the processing instruction - * @param data The data for the processing instruction + * @param text The text for the processing instruction * @return An initialized OFXMLProcessingInstruction */ - (instancetype)initWithTarget: (OFString *)target - data: (OFString *)data OF_DESIGNATED_INITIALIZER; + text: (OFString *)text OF_DESIGNATED_INITIALIZER; - (instancetype)initWithSerialization: (OFXMLElement *)element; @end OF_ASSUME_NONNULL_END