UblSharp / UblSharp

C# / .NET / XML library for working with OASIS UBL 2.0/2.1 documents
https://github.com/UblSharp/UblSharp
Other
95 stars 58 forks source link

Some documentation / usage examples #2

Open remcoros opened 7 years ago

remcoros commented 7 years ago

'Getting started' (a few read/write/validate examples) can be in the README. More examples in the wiki or as code samples (samples project).

fvandillen commented 7 years ago

Would be awesome to have some documentation. Currently, I'm loading some UBL invoices which are sent to us on behalf of our clients. Is it true that I have to call the static UblDocument.Load method?

Thanks for this libary!

remcoros commented 7 years ago

Yes, you can use UblDocument.Load. Or create your own XmlSerializer like this:

var s = new XmlSerializer(typeof(InvoiceType));

The types in UblSharp are meant to be used with the default XmlSerializer from .NET.

The UblDocument type and methods contain some helper functions for loading/saving and internally use a cached XmlSerializer per UBL document type.

FParadox commented 6 years ago

Hello Friends

Someone who may have wanted Deserialize/Deserializate to XML UBL 2.0, to read the fields and load it into the dataset.

Please support her with a reading code example, in only two fields. I provide a recent XML with the XML version UBl 2.0

Thanks for your support and Library!

B001-00000035.zip

OlaecheaEstibaliz commented 6 years ago

Hi, I need to read an XML UBL and load it into the dataset. Is in this library any function to do it? Thanks!

remcoros commented 6 years ago

Hi @OlaecheaEstibaliz

This library is for XML <-> c# object serialization/deserialization using the XmlSerializer from .NET

There is nothing for DataSet.

Also, since XML is about hierarchical data (types and properties) and Datasets about relational data (tables and columns), there is not a simple 1:1 conversion between the two.

Abousamah commented 3 years ago

how can i generate or Create xml ubl invoice and sign it by this library from my invoice class object

Amit-Vienna commented 4 months ago

Hi, Can anyone tell me the step and how to digitally signed the XML Document using UBL