aeric Expert Licensed User Longtime User Aug 21, 2024 #1 Hi, Does anyone work with OASIS UBL for invoice in XML / JSON ? Any library you are using if you are developing with B4X or other programming language? I hope I don't need to reinvent the wheel. I am looking for library supporting UBL 2.1 for e-invoice. A quick search found https://github.com/phax/ph-ubl
Hi, Does anyone work with OASIS UBL for invoice in XML / JSON ? Any library you are using if you are developing with B4X or other programming language? I hope I don't need to reinvent the wheel. I am looking for library supporting UBL 2.1 for e-invoice. A quick search found https://github.com/phax/ph-ubl
aeric Expert Licensed User Longtime User Aug 21, 2024 #2 aeric said: https://github.com/phax/ph-ubl Click to expand... Unfortunately, this project doesn't support JSON format. https://github.com/phax/ph-ubl/issues/19 phax commented on Oct 7, 2023 I still don't think JSON really adds value here - it just adds complexity and requires transformations etc. XML is mature, well understood and has good tooling support - I will not add JSON support. Click to expand... Upvote 0
aeric said: https://github.com/phax/ph-ubl Click to expand... Unfortunately, this project doesn't support JSON format. https://github.com/phax/ph-ubl/issues/19 phax commented on Oct 7, 2023 I still don't think JSON really adds value here - it just adds complexity and requires transformations etc. XML is mature, well understood and has good tooling support - I will not add JSON support. Click to expand...
aeric Expert Licensed User Longtime User Aug 21, 2024 #3 I think the safest route is to reinvent the wheel using XML2Map and JSON libraries for creating cross platform solutions. Map2Xml converts the map created with Xml2Map to a Xml string. It uses XmlBuilder library and it is compatible with B4A, B4i and B4J Click to expand... The advantage is I understand my own code. Learning a new project with great complexity will take a lot of time and no flexibility to maintain in the future. Upvote 0
I think the safest route is to reinvent the wheel using XML2Map and JSON libraries for creating cross platform solutions. Map2Xml converts the map created with Xml2Map to a Xml string. It uses XmlBuilder library and it is compatible with B4A, B4i and B4J Click to expand... The advantage is I understand my own code. Learning a new project with great complexity will take a lot of time and no flexibility to maintain in the future.