# SalXML

Namespace: **PPJ.Runtime.Xml**

Assembly: **PPJ.Runtime.49** (4.9.0.0)

Serializer for any object with PPJ native types.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalXML
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalXML
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalXML(stream)

Construct from a stream

| Name       | Type                                                                   | Description |
| ---------- | ---------------------------------------------------------------------- | ----------- |
| **stream** | [Stream](https://docs.microsoft.com/en-us/dotnet/api/system.io.stream) |             |

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalXML(filePath)

Construct from a filePath

| Name         | Type                                                                | Description |
| ------------ | ------------------------------------------------------------------- | ----------- |
| **filePath** | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) |             |

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Deserialize\<T>()

Deserializes the object of the specified type from XML.

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| **T**     |      |             |

**Returns:** [T](https://desktop-api.iceteagroup.com/ppj.runtime.49/general/ppj.runtime.xml.salxml).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Deserialize()

Deserializes any object from XML. The type name is resolved from the first node.

**Returns:** [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Serialize\<T>(o)

Serializes the object of the specified type to XML.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **T**     |                                                                     |             |
| **o**     | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |
