officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-fromstring-x28-system-dot-string-x29.md
Creates an XmpDocument object from the specified string.
Namespace : DevExpress.Pdf.Xmp
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public static XmpDocument FromString(
string xmlString
)
Public Shared Function FromString(
xmlString As String
) As XmpDocument
| Name | Type | Description |
|---|---|---|
| xmlString | String |
A string to convert to an XmpDocument object.
|
| Type | Description |
|---|---|
| XmpDocument |
An XmpDocument object that corresponds to the string.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FromString(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-xmp-example/CS/XmpMetadataExamples/Program.cs#L26
// Retrieve metadata:
XmpDocument editedMetadata = XmpDocument.FromString(document.Metadata.Data);
pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L21
' Retrieve metadata:
Dim editedMetadata As XmpDocument = XmpDocument.FromString(document.Metadata.Data)
' Add items to the Creator array:
See Also