Questions tagged [ubl]
17 questions
2
votes
2 answers
how can i hash a specific tag from XML file in a correct way?
we are working on e-invoicing and to send the invoice to the government.
and they gave us what they want from us to do like signing some tags and hashing another.
my problem now is in hashing, when i hash the specific tag after doing every thing…

Pythoner-sh
- 134
- 6
2
votes
1 answer
EHF peppol 3.0 invoice for norway government
I am trying to generate xml file for the invoice which has to submitted in the form xml file EHF peppol 3.O, I unable to find the exact xml schema for this anybody can help me on this

S Mugunthan kumar
- 177
- 1
- 2
- 11
1
vote
2 answers
How can I check for null using few ifs while running UBL XML Reading
As you can see an example in the code below, I need to use a lot of if. Otherwise it throws null pointer exception.
if (despt.getDespatchSupplierParty().getParty().getContact() != null) {
if…

neylersin
- 11
- 3
0
votes
1 answer
how to assign "id" property a type other than string
I implement objects for their further serialization in xml code.
sample code i should get:
63
this is how i implemented it in c#:
public class TaxScheme
{
…

Сереженька
- 3
- 1
0
votes
0 answers
zatca ubl 2.1 e-invoicing standard tax category with differents rates return errors with sub totals
I'm working on generating ZATCA invoice but something went wrong when I entered three items (invoice lines) with multiple standard rates:
item A : 15%
item B : 5%
in addition to zero rates
item C : 0%
The error appears when there's two rates for…

lady
- 356
- 1
- 2
- 14
0
votes
1 answer
What to put in customizationID in UBL document and where to get this information
I am trying to generate Invoice UBL XML file according to this XSD file and this schematron. Once it is generated I am validating it here.
So, according to the schematron, I must have a CustomizationID in my XML file :

aprotiere
- 35
- 4
0
votes
1 answer
How to know what element is mandatory if it has miniOccurs="0" in UBL
Here is my XML test code :

aprotiere
- 35
- 4
0
votes
0 answers
Validate XML with Schematron ISO version using C#
Hi I have requirement where I have to validate a xml file against Schematron ISO version using C#. I have tried Saxon-HE , NMatrix.Schematron but its not working.
Can anyone help me on this.

Manu
- 13
- 3
0
votes
0 answers
Xsl adding elements to output that are not in input
As an example, consider the following xsl:

randomvoice
- 1
- 2
0
votes
1 answer
How to access UBL 2.1 xml tag using python
I need to access the tags in UBL 2.1 and modify them depend on the on the user input on python.
So, I used the ElementTree library to access the tags and modify them.
Here is a sample of the xml code:

Starlight
- 15
- 3
0
votes
0 answers
I have error Name of field or property being initialized in an object initializer must start with '.'
I am building an XML file and when add this part of AllowanceCharge it gives me this error Name of field or property being initialized in an object initializer must start with '.'. and all the names start with period! what could be the issue…

MK Said
- 165
- 8
0
votes
2 answers
UBL 2.1 XML deserialization C# list/array
I have trouble to deserialize part of invoice XML.
Tag cac:InvoiceLine is repeating.
I need help to make list/array for element InvoiceLine and do foreach loop and extract values from child elements.
This is example of XML file

Mladen
- 3
- 2
0
votes
0 answers
How can I convert json data to UBL 2.1 standard xml or normal xml to UBL 2.1 standard xml format using python
I have a project where I am using JSON data to convert XML, and for that, I am using the json2xml package. This is working fine. But I need the UBL 2.1 version standard format XML. I searched but don't find any resource online about that how can I…

Hosen MD Altaf
- 33
- 1
- 4
0
votes
0 answers
c# validation against .sch file (schematron) for xml files (UBL)
I searched for some packages but with no luck. Is there such a package that validates the xml file against a .sch file? For .Net Framework or .Net Core?

danicode
- 807
- 9
- 17
0
votes
1 answer
Hashed value for xadesSignedProperties not accurate
I have an UBL XML file and need to hash sha256 for xadesSignedProperties and the part need to be hash is :
…

MK Said
- 165
- 8