XmpRdfRoot Class

Summary: Represents rdf:RDF element.
A single XMP packet shall be serialized using a single rdf:RDF XML element. The rdf:RDF element content shall consist of only zero or more rdf:Description elements.

Module: aspose.imaging.xmp

Full Name: aspose.imaging.xmp.XmpRdfRoot

Inheritance: IXmlValue, XmpElementBase

Constructors

NameDescription
XmpRdfRoot()Initializes a new instance of the XmpRdfRoot class.

Methods

NameDescription
add_attribute(attribute, value)Adds the attribute.
clear_attributes()Removes all attributes.
get_attribute(attribute)Gets the attribute.
get_namespace_uri(prefix)Gets namespace URI by specific prefix. Prefix may start without xmlns.
get_xml_value()Converts xmp value to the xml representation.
register_namespace_uri(prefix, namespace_uri)Adds namespace uri by prefix. Prefix may start without xmlns.

Constructor: XmpRdfRoot()

 XmpRdfRoot() 

Initializes a new instance of the XmpRdfRoot class.

Method: add_attribute(attribute, value)

 add_attribute(attribute, value) 

Adds the attribute.

Parameters:

ParameterTypeDescription
attributestringThe attribute.
valuestringThe value.

Method: get_attribute(attribute)

 get_attribute(attribute) 

Gets the attribute.

Parameters:

ParameterTypeDescription
attributestringThe attribute.

Returns

TypeDescription
stringReturns the attribute for specified attribute name.

Method: get_namespace_uri(prefix)

 get_namespace_uri(prefix) 

Gets namespace URI by specific prefix. Prefix may start without xmlns.

Parameters:

ParameterTypeDescription
prefixstringThe prefix.

Returns

TypeDescription
stringReturns a package schema URI.

Method: get_xml_value()

 get_xml_value() 

Converts xmp value to the xml representation.

Returns

TypeDescription
stringReturns XMP value converted to XML string.

Method: register_namespace_uri(prefix, namespace_uri)

 register_namespace_uri(prefix, namespace_uri) 

Adds namespace uri by prefix. Prefix may start without xmlns.

Parameters:

ParameterTypeDescription
prefixstringThe prefix.
namespace_uristringPackage schema uri.