Index: src/OFXMLAttribute.h ================================================================== --- src/OFXMLAttribute.h +++ src/OFXMLAttribute.h @@ -37,11 +37,16 @@ @property (readonly, copy) OFString *name; /*! * The namespace of the attribute. */ +#ifndef __cplusplus @property OF_NULLABLE_PROPERTY (readonly, copy) OFString *namespace; +#else +@property OF_NULLABLE_PROPERTY (readonly, copy, getter=namespace) + OFString *namespace_; +#endif /*! * @brief Creates a new XML attribute. * * @param name The name of the attribute Index: src/OFXMLElement.h ================================================================== --- src/OFXMLElement.h +++ src/OFXMLElement.h @@ -46,11 +46,16 @@ @property (copy) OFString *name; /*! * The namespace of the element. */ +#ifndef __cplusplus @property OF_NULLABLE_PROPERTY (copy) OFString *namespace; +#else +@property OF_NULLABLE_PROPERTY (copy, getter=namespace, setter=setNamespace:) + OFString *namespace_; +#endif /*! * The default namespace for the element to be used if there is no parent. */ @property OF_NULLABLE_PROPERTY (copy) OFString *defaultNamespace; Index: src/exceptions/OFUnboundNamespaceException.h ================================================================== --- src/exceptions/OFUnboundNamespaceException.h +++ src/exceptions/OFUnboundNamespaceException.h @@ -31,11 +31,15 @@ } /*! * The unbound namespace. */ +#ifndef __cplusplus @property (readonly, copy) OFString *namespace; +#else +@property (readonly, copy, getter=namespace) OFString *namespace_; +#endif /*! * The element in which the namespace was not bound. */ @property (readonly, retain) OFXMLElement *element;