Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hkutluay committed Apr 19, 2020
1 parent 33a5d07 commit 92c0fc4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ PM> Install-Package UblTr

## Serialize
```csharp
var invoice = new InvoiceType();
invoice.UUID = new Common.UUIDType() { Value = Guid.NewGuid().ToString() };
invoice.UBLVersionID = new Common.UBLVersionIDType() { Value = "2.1" };
invoice.CustomizationID = new Common.CustomizationIDType() { Value = "TR1.2" };
invoice.ProfileID = new Common.ProfileIDType() { Value = "TEMELFATURA" };
invoice.ID = new Common.IDType() { Value = "INV20200000000001" };
invoice.CopyIndicator = new Common.CopyIndicatorType() { Value = false };
var invoice = new InvoiceType
{
UUID = new Common.UUIDType() { Value = Guid.NewGuid().ToString() },
UBLVersionID = new Common.UBLVersionIDType() { Value = "2.1" },
CustomizationID = new Common.CustomizationIDType() { Value = "TR1.2" },
ProfileID = new Common.ProfileIDType() { Value = "TEMELFATURA" },
ID = new Common.IDType() { Value = "INV20200000000001" },
CopyIndicator = new Common.CopyIndicatorType() { Value = false }
};

XmlSerializer xmlSerializer = new XmlSerializer(typeof(InvoiceType));
TextWriter writer = new StreamWriter(@"C:\Temp\TestInvoice.xml"); //path to document
Expand Down

0 comments on commit 92c0fc4

Please sign in to comment.