Back to Devexpress

XmpDocument.FromString(String) Method

officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-fromstring-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

XmpDocument.FromString(String) Method

Creates an XmpDocument object from the specified string.

Namespace : DevExpress.Pdf.Xmp

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public static XmpDocument FromString(
    string xmlString
)
vb
Public Shared Function FromString(
    xmlString As String
) As XmpDocument

Parameters

NameTypeDescription
xmlStringString

A string to convert to an XmpDocument object.

|

Returns

TypeDescription
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

csharp
// Retrieve metadata:
XmpDocument editedMetadata = XmpDocument.FromString(document.Metadata.Data);

pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L21

vb
' Retrieve metadata:
Dim editedMetadata As XmpDocument = XmpDocument.FromString(document.Metadata.Data)
' Add items to the Creator array:

See Also

XmpDocument Class

XmpDocument Members

DevExpress.Pdf.Xmp Namespace