---
title: "XmpData..::.Load Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_XmpData_Load_1_bb3a7a4f.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# XmpData.Load Method 
 
Creates an XMP tree based on the provided XML code.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Load ( _xmp As String _
)
```
 
```csharp
public void Load(string xmp
)
```
 
### Parameters
 
 - xmp
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
 [String](http://msdn2.microsoft.com/en-us/s1wwdcbf) that contains XML code with the XMP data.
 
## Remarks
  
Typically you get the string with XMP data from a JPEG or TIFF reader class. After that you pass this string to this method. As soon as XMP data is loaded to the [XmpData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_XmpData.htm.md) class, you can easily get specific fields value.
 
If you edit XMP data (add, remove, or modify nodes) and want to save it back, use the [Save()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_XmpData_Save.htm.md) method. It will return the XML string which you will be able to pass to the **Xmp** property of an appropriate writer.
   
## See Also

### Reference

- [XmpData Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_XmpData.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
