Platforms to show: All Mac Windows Linux Cross-Platform

Back to XMPMetaMBS class.

XMPMetaMBS.ApplyTemplate(WorkingXMP as XMPMetaMBS, template as XMPMetaMBS, actions as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Applies an xmp template.

XMPMetaMBS.DecodeFromBase64(text as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decode from Base64 encoded string to raw data.
Example
Var x as XMPMetaMBS
x=new XMPMetaMBS
MsgBox x.DecodeFromBase64("dGVzdA==") // test

This is a global method which does not need a valid handle.

Some examples using this method:

XMPMetaMBS.DeleteNamespace(namespaceURI as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Deletes a namespace from the registry.

Not implemented?

Does nothing if the URI is not registered, or if the parameter is null or the empty string.

namespaceURI: The URI for the namespace.

Some examples using this method:

XMPMetaMBS.DumpNamespaces(output as XMPTextOutputMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
DumpNamespaces dumps the list of registered namespace URIs and prefixes.

This is a global method which does not need a valid handle.
Returns status code. (0=success and -1=error)

Some examples using this method:

XMPMetaMBS.EncodeToBase64(text as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Convert from raw data to Base64 encoded string.
Example
Var x as XMPMetaMBS
x=new XMPMetaMBS
MsgBox x.EncodeToBase64("test") // dGVzdA==

This is a global method which does not need a valid handle.

Some examples using this method:

XMPMetaMBS.GetNamespacePrefix(namespaceURI as string, byref namespacePrefix as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtain the prefix for a registered namespace URI.

It is not an error if the namespace URI is not registered. The output namespacePrefix string is "" if the namespace URI is not registered.

Parameters:
namespaceURIThe URI for the namespace. Must not be null or the empty string.
namespacePrefixReturns the prefix registered for this URI, with a terminating ':'.

Returns true if the namespace URI is registered.

This is a global method which does not need a valid handle.

Some examples using this method:

XMPMetaMBS.GetNamespaceURI(namespacePrefix as string, byref namespaceURI as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtain the URI for a registered namespace prefix.

It is not an error if the namespace prefix is not registered. The output namespaceURI string is "" if the namespace prefix is not registered.

Parameters:
namespacePrefixThe prefix for the namespace. Must not be "".
namespaceURIReturns the URI registered for this prefix.

Returns true if the namespace prefix is registered.

This is a global method which does not need a valid handle.

Some examples using this method:

XMPMetaMBS.GetVersionInfo as XMPVersionInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Retrieves runtime version information.

XMPMetaMBS.GlobalOptions as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets or retrieves the set of global option flags.

(Read and Write computed property)

Some examples using this property:

XMPMetaMBS.RegisterNamespace(namespaceURI as string, suggestedPrefix as string, byref registeredPrefix as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method XMP MBS XMP Plugin 9.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Register a namespace URI with a suggested prefix.
Example
Var x as new XMPMetaMBS
Var registeredPrefix as string

call x.RegisterNamespace ("xwnv", "xwnv", registeredPrefix)

x.SetProperty "xwnv","MZSTID","test"

MsgBox x.SerializeToBuffer

It is not an error if the URI is already registered, no matter what the prefix is. If the URI is not registered but the suggested prefix is in use, a unique prefix is created from the suggested one. The actual registeed prefix is always returned. The function result tells if the registered prefix is the suggested one.

Parameters:
namespaceURIThe URI for the namespace. Must be a valid XML URI.
suggestedPrefixThe suggested prefix to be used if the URI is not yet registered. Must be a valid XML name.
registeredPrefixReturns the prefix actually registered for this URI.

Returns true if the registered prefix matches the suggested prefix.

Note: No checking is presently done on either the URI or the prefix.

This is a global method which does not need a valid handle.

Some examples using this method:

The items on this page are in the following plugins: MBS XMP Plugin.


The biggest plugin in space...