npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

xmljson-jsonxml-cg-lib

v1.2.3

Published

Library to transform xml to json and json to xml

Downloads

23

Readme

N|Solid

xmljson-jsonxml-cg-lib

1. Introduction

This code is intended to handle transformation of XML content to a JSON format and vice versa.

The code was designed under the OIH framwork to make it compatible with other components based on this, allowing to create OIH components to be used in the N3xtGen Portal.

As components are used in the NXGP flows regardless that the library should be added on component code, there are mandatory input parameters that have to be defined for the library to work properly.

Within "xmljson-jsonxml-cg-lib" three additional libraries are used: xml-js: This library allows to transform from xml to json and from json to xml using two of its main methods and sending some configuration parameters, this library is open source. fs: This library is used because the xml result is saved when the JSON to XML transformation is performed because it is required to save the XML file to be encoded as a base64 encode. utils-nxg-cg: is used to print the necessary logs.

The next is a following example of a transformation using the "processXmlJson" option:

{
    "_declaration": {
        "_attributes": {
            "version": "1.0",
            "encoding": "UTF-8"
        }
    },
    "movies": {
        "movie": [
            {
                "id": {
                    "_text": "tt0209144"
                },
                "title": {
                    "_text": "Memento"
                },
                "actor": {
                    "_text": "Guy Pearce"
                },
                "year": {
                    "_text": "2000"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "tt0133093"
                },
                "title": {
                    "_text": "The Matrix"
                },
                "actor": {
                    "_text": "Keanu Reeves"
                },
                "year": {
                    "_text": "1999"
                },
                "genre": {
                    "_text": "fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "tt0238091"
                },
                "title": {
                    "_text": "The Silence of the Lambs"
                },
                "actor": {
                    "_text": "Jodie Foster"
                },
                "year": {
                    "_text": "1991"
                },
                "genre": {
                    "_text": "suspence"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "tt0246006"
                },
                "title": {
                    "_text": "The Prestige"
                },
                "actor": {
                    "_text": "Christian Bale"
                },
                "year": {
                    "_text": "2006"
                },
                "genre": {
                    "_text": "Suspense"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "mb0162096"
                },
                "title": {
                    "_text": "interestellar"
                },
                "actor": {
                    "_text": "Matthew McConaughey"
                },
                "year": {
                    "_text": "2014"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "mb0972000"
                },
                "title": {
                    "_text": "Revenant"
                },
                "actor": {
                    "_text": "Leonardo Dicaprio"
                },
                "year": {
                    "_text": "2015"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "sf0972075"
                },
                "title": {
                    "_text": "The Shawshank Redemption"
                },
                "actor": {
                    "_text": "Morgan Freeman"
                },
                "year": {
                    "_text": "1994"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "av0979375"
                },
                "title": {
                    "_text": "Avengers: Endgame"
                },
                "actor": {
                    "_text": "Robert Downey Jr."
                },
                "year": {
                    "_text": "2019"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "bh0978855"
                },
                "title": {
                    "_text": "Black Hawk Down"
                },
                "actor": {
                    "_text": "Josh Hartnett"
                },
                "year": {
                    "_text": "2001"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "tw0970164"
                },
                "title": {
                    "_text": "The wolf of wall street"
                },
                "actor": {
                    "_text": "Leonardo Dicaprio"
                },
                "year": {
                    "_text": "2013"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            }
        ]
    }
}

In the case of the "processJsonXml" option, the next is the result of the transformation:

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk6Q29tcHJvYmFudGUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vd3d3LnNhdC5nb2IubXgvY2ZkLzQgaHR0cDovL3d3dy5zYXQuZ29iLm14L3NpdGlvX2ludGVybmV0L2NmZC80L2NmZHY0MC54c2QiIHhtbG5zOmNmZGk9Imh0dHA6Ly93d3cuc2F0LmdvYi5teC9jZmQvNCIgVmVyc2lvbj0iNC4wIiBTZXJpZT0iR0IiIEZvbGlvPSIxNzkz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SGxEbmVad2ZsaFIvMWtTLzRWV1U0aU5JQjhtSWQ4TFBaYkU4a0MzU25mNW45WlJPdGdiQUFWYmNLUlBPM0R4S2xOcGZSRnNoRElsL0k5ZkFRV25BcnRIdlR0Zz09Ii8+CiAgICA8L2NmZGk6Q29tcGxlbWVudG8+CjwvY2ZkaTpDb21wcm9iYW50ZT4=

2. Methods explanation

The library can be installed from npm page with the next:

npm install xmljson-jsonxml-cg-lib, npm i xmljson-jsonxml-cg-lib or yarn install xmljson-jsonxml-cg-lib

_2.1. processXmlJson

This method is used to convert a file with a xml extension but encoding in base64 to a JSON file for data handling preferences. Currently the xml file has to be a valid xml file.

_2.2. json_xml

This method is used to transform a json file cnoding in base64 to a xml file for data handling preference. Currently the json format has to be a valid format to avoid problems.

3. Argument and result explanation

  • Arguments: In the processXmlJson method there is only one parameter that is required in the transformation and it is described below:

    • content(required): This parameter is the content that will be transformed and has to be sent encoded in base64.

    In the processJsonXml method there is only one parameter that is required in the transformation and it is described below:

    • content(required): This parameter is the content that will be transformed and has to be sent encoded in base64.
  • Result: The final result varies depending on the method used, if it is "processJsonXml" it will bring a JSON as a result , if it is "processJsonXml", it will bring a XML file encoding in base64: This result is for the "processJsonXml" process.

{
    "_declaration": {
        "_attributes": {
            "version": "1.0",
            "encoding": "UTF-8"
        }
    },
    "movies": {
        "movie": [
            {
                "id": {
                    "_text": "tt0209144"
                },
                "title": {
                    "_text": "Memento"
                },
                "actor": {
                    "_text": "Guy Pearce"
                },
                "year": {
                    "_text": "2000"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "tt0133093"
                },
                "title": {
                    "_text": "The Matrix"
                },
                "actor": {
                    "_text": "Keanu Reeves"
                },
                "year": {
                    "_text": "1999"
                },
                "genre": {
                    "_text": "fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "tt0238091"
                },
                "title": {
                    "_text": "The Silence of the Lambs"
                },
                "actor": {
                    "_text": "Jodie Foster"
                },
                "year": {
                    "_text": "1991"
                },
                "genre": {
                    "_text": "suspence"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "tt0246006"
                },
                "title": {
                    "_text": "The Prestige"
                },
                "actor": {
                    "_text": "Christian Bale"
                },
                "year": {
                    "_text": "2006"
                },
                "genre": {
                    "_text": "Suspense"
                },
                "stars": {
                    "_text": "4"
                },
                "flag": {
                    "_text": "1"
                }
            },
            {
                "id": {
                    "_text": "mb0162096"
                },
                "title": {
                    "_text": "interestellar"
                },
                "actor": {
                    "_text": "Matthew McConaughey"
                },
                "year": {
                    "_text": "2014"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "mb0972000"
                },
                "title": {
                    "_text": "Revenant"
                },
                "actor": {
                    "_text": "Leonardo Dicaprio"
                },
                "year": {
                    "_text": "2015"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "sf0972075"
                },
                "title": {
                    "_text": "The Shawshank Redemption"
                },
                "actor": {
                    "_text": "Morgan Freeman"
                },
                "year": {
                    "_text": "1994"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "av0979375"
                },
                "title": {
                    "_text": "Avengers: Endgame"
                },
                "actor": {
                    "_text": "Robert Downey Jr."
                },
                "year": {
                    "_text": "2019"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "bh0978855"
                },
                "title": {
                    "_text": "Black Hawk Down"
                },
                "actor": {
                    "_text": "Josh Hartnett"
                },
                "year": {
                    "_text": "2001"
                },
                "genre": {
                    "_text": "fscience fiction"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            },
            {
                "id": {
                    "_text": "tw0970164"
                },
                "title": {
                    "_text": "The wolf of wall street"
                },
                "actor": {
                    "_text": "Leonardo Dicaprio"
                },
                "year": {
                    "_text": "2013"
                },
                "genre": {
                    "_text": "drama"
                },
                "stars": {
                    "_text": "5"
                },
                "flag": {
                    "_text": "0"
                }
            }
        ]
    }
}

And in the case of "processJsonXml", the result will be a xml file encoding in base64:

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk6Q29tcHJvYmFudGUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vd3d3LnNhdC5nb2IubXgvY2ZkLzQgaHR0cDovL3d3dy5zYXQuZ29iLm14L3NpdGlvX2ludGVybmV0L2NmZC80L2NmZHY0MC54c2QiIHhtbG5zOmNmZGk9Imh0dHA6Ly93d3cuc2F0LmdvYi5teC9jZmQvNCIgVmVyc2lvbj0iNC4wIiBTZXJpZT0iR0IiIEZvbGlvPSIxNzkzNCIgRmVjaGE9IjIwMjItMDYtMTVUMDk6NDM6MjYiIFNlbGxvPSJnYjlTaUNwUHVZNXREVSs4N3hnSnB1ci9ZdTAvaWROd0t1eTIvY3RyU2NGUFFNeGxFRzVJZXFad2k5L2hncFlWRmozcmV5UHgwSlRMTzB6WEdJMEVUcVRxTFNsTys1aEdOKzhZUTlqbXc5bDhXQUl6bkJDVGlwNWNVamFKU05hMHoyamY4VEUyQkdEaWFZall3WmpsS0dnNGprcGM3TDdsdzVUSG1udVlteDErWDJJeVJWbFNSeVZZZERreUo5ZWc3RnlHL3IyZWxpbEFURmx3MktXZ1g1WkNtUktwbn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WptdzlsOFdBSXpuQkNUaXA1Y1VqYUpTTmEwejJqZjhURTJCR0RpYVlqWXdaamxLR2c0amtwYzdMN2x3NVRIbW51WW14MStYMkl5UlZsU1J5VllkRGt5SjllZzdGeUcvcjJlbGlsQVRGbHcyS1dnWDVaQ21SS3BucWRjZ25jVXdtTFQ1ckFvMWlhSkwwTmV0TW5BazZjM2pmOXNxTTJSVDNiMU9ldCtpVzBzTklFTWpRK0pndDlzWWFPb1VkMVJzTDZ0VGlJYTROSzZvMDdNT29Ta1BYQzEwSmdaTUhlVmErcElzOXh0Ukc0cEd3cnUrZz09IiBOb0NlcnRpZmljYWRvU0FUPSIwMDAwMTAwMDAwMDUwMjAwMDQzNiIgU2VsbG9TQVQ9IlRjOHdjNVkwSGJSM213RndSaWVOcEkvbjRRbzhSWUFsNlBqMzhVd2lQT05lTTFDbC9HN0tvc3lqWWZNdDh2a1FlbHBPMXhNZGZJcFJhZWZUMlVkYXRRMjN5UVJieDg0RzF5dGlLT1JWWkZYai91Tjh6V2VlcE5OM0pWeGYyMXYvdlRxS2hTcXhVN3FZRmZGclZMTHdjSEhGU2lGWElVNVhKOUUrTk0zOXl6bStIZWVMem53VUp0ZFNuTDVROVN2TTNPQllTY2tDRXZmWVRuemVsNktBMjByYlpYemRuSlRnTDlVd21PZUMzSElvRjJGY0Vrb3I5UTdvQjRvSGxEbmVad2ZsaFIvMWtTLzRWV1U0aU5JQjhtSWQ4TFBaYkU4a0MzU25mNW45WlJPdGdiQUFWYmNLUlBPM0R4S2xOcGZSRnNoRElsL0k5ZkFRV25BcnRIdlR0Zz09Ii8+CiAgICA8L2NmZGk6Q29tcGxlbWVudG8+CjwvY2ZkaTpDb21wcm9iYW50ZT4=

3. Examples

The next decribes some examples on how to use the library to transform content (XML or JSON) as required. In the next example it is a valid object with full parameters that can be sent to te library to make a transformation from XML to JSON:

[
{
    "content":"77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk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NVhKOUUrTk0zOXl6bStIZWVMem53VUp0ZFNuTDVROVN2TTNPQllTY2tDRXZmWVRuemVsNktBMjByYlpYemRuSlRnTDlVd21PZUMzSElvRjJGY0Vrb3I5UTdvQjRvSGxEbmVad2ZsaFIvMWtTLzRWV1U0aU5JQjhtSWQ4TFBaYkU4a0MzU25mNW45WlJPdGdiQUFWYmNLUlBPM0R4S2xOcGZSRnNoRElsL0k5ZkFRV25BcnRIdlR0Zz09IiAvPgo8L2NmZGk6Q29tcGxlbWVudG8+PC9jZmRpOkNvbXByb2JhbnRlPgo="
}
]

In this example this XML file is encoded in base64 and is being transformed to a json format, the result is as follows:

{
    "_declaration": {
        "_attributes": {
            "version": "1.0",
            "encoding": "UTF-8"
        }
    },
    "cfdi:Comprobante": {
        "_attributes": {
            "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
            "xsi:schemaLocation": "http://www.sat.gob.mx/cfd/4 http://www.sat.gob.mx/sitio_internet/cfd/4/cfdv40.xsd",
            "xmlns:cfdi": "http://www.sat.gob.mx/cfd/4",
            "Version": "4.0",
            "Serie": "GB",
            "Folio": "17934",
            "Fecha": "2022-06-15T09:43:26",
            "Sello": "gb9SiCpPuY5tDU+87xgJpur/Yu0/idNwKuy2/ctrScFPQMxlEG5IeqZwi9/hgpYVFj3reyPx0JTLO0zXGI0ETqTqLSlO+5hGN+8YQ9jmw9l8WAIznBCTip5cUjaJSNa0z2jf8TE2BGDiaYjYwZjlKGg4jkpc7L7lw5THmnuYmx1+X2IyRVlSRyVYdDkyJ9eg7FyG/r2elilATFlw2KWgX5ZCmRKpnqdcgncUwmLT5rAo1iaJL0NetMnAk6c3jf9sqM2RT3b1Oet+iW0sNIEMjQ+Jgt9sYaOoUd1RsL6tTiIa4NK6o07MOoSkPXC10JgZMHeVa+pIs9xtRG4pGwru+g==",
            "FormaPago": "99",
            "NoCertificado": "00001000000502966106",
            "Certificado": "MIIF6TCCA9GgAwIBAgIUMDAwMDEwMDAwMDA1MDI5Nj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FYpnvj0ojDpxYXOjBPPTSzDk60Q2sMGs8NdYLM7bJ2peIhwD5EmywC+NzpatPOTg7Tlbm/cCBemv6SVpTKKm3ln1s8FDWqG8xKnIiEiqFHy9jAx6jFShhvA332UJau/S9e97JCedKxFvcvwIDAQABox0wGzAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIGwDANBgkqhkiG9w0BAQsFAAOCAgEAJzd8IJ5VIW/XELEGbg0m98ZZij4nd03CBjjM1Tx+dL1hXr9kJEX9hVubUMavcsKORhFmsTbA1Ti1/I5147mzTUO0N2iYup4yiI24l8gLLzMM2QPE30STsqIJ+69C+jdsrMztziI6OWfjnJiobB0yErnlyaxCmty574ypzPSGvomJo4YaoshS4a0JxVIljZa/ozOp3ORyh6VrJxT2bN1NOHg0w+ObzCJaGV/101KD+1McHEeDiADPrSmEMShUWVA3oWKXPIF1LAyof2kTQo2jugMmZoNgz4AdS4rsDpMnfMgYrmIj34z5BfMe5ogUfqVJS0KssV7iGoeeaSjNUv7XfeCL0k/gCQ6Y2PYIo3ewwJbAoHSJqcfbE2wzedCTnfAbW5bi5CqHATzNs2+y9dmukbT3V4St/ZsIlonSkJMI209T4RnMDkDI3dCzEnOGQx6XIkE/y3avtqxkf550DN/sNTAn32BaBT3HJbqgzPULUxJ1iVdDlFcAjxiPYTUNXfX9J09h31PPi/rqoq045UbMI+xCXFk4wLWUBaxIoFduf05597vjPvnrZ6QbFfeuXN7ts5b4CZpaH+G0Y2ed357o7hoGEqX484lWOj9uVoPS/jvFfq+EyjMUN0/I/qeH9iNeD9x8CqFjr/EDXjY/pLJCX8Fc5l+ZvGwSUA/jl72MHcg=",
            "CondicionesDePago": "CREDITO",
            "SubTotal": "4102.40",
            "Moneda": "MXN",
            "Total": "4462.78",
            "TipoDeComprobante": "I",
            "Exportacion": "01",
            "MetodoPago": "PPD",
            "LugarExpedicion": "27110"
        },
        "cfdi:Emisor": {
            "_attributes": {
                "Rfc": "BIAG551120Q66",
                "Nombre": "GUADALUPE BRIONES ANDRADE",
                "RegimenFiscal": "612"
            }
        },
        "cfdi:Receptor": {
            "_attributes": {
                "Rfc": "GEU050214965",
                "Nombre": "GRANJA EUCALIPTOS",
                "DomicilioFiscalReceptor": "35130",
                "RegimenFiscalReceptor": "622",
                "UsoCFDI": "G01"
            }
        },
        "cfdi:Conceptos": {
            "cfdi:Concepto": [
                {
                    "_attributes": {
                        "ClaveProdServ": "42311500",
                        "NoIdentificacion": "0362",
                        "Cantidad": "30",
                        "ClaveUnidad": "H87",
                        "Unidad": "PIEZA",
                        "Descripcion": "VENDA CATTLE WRAP COFLEX BY ANDOVER CD JUAREZ CHIH 13678\n19  07  0823  9000110/2019-01-29/070",
                        "ValorUnitario": "23.00",
                        "Importe": "690.00",
                        "ObjetoImp": "02"
                    },
                    "cfdi:Impuestos": {
                        "cfdi:Traslados": {
                            "cfdi:Traslado": {
                                "_attributes": {
                                    "Base": "690.00",
                                    "Impuesto": "002",
                                    "TipoFactor": "Tasa",
                                    "TasaOCuota": "0.160000",
                                    "Importe": "110.40"
                                }
                            }
                        }
                    },
                    "cfdi:InformacionAduanera": {
                        "_attributes": {
                            "NumeroPedimento": "19  07  0823  9000110"
                        }
                    }
                },
                {
                    "_attributes": {
                        "ClaveProdServ": "42121500",
                        "Cantidad": "40",
                        "ClaveUnidad": "H87",
                        "Unidad": "PIEZA",
                        "Descripcion": "JERINGA DE PLASTICO GB INSTRUMENTAL 5 ML CON AGUJA ",
                        "ValorUnitario": "2.06",
                        "Importe": "82.40",
                        "ObjetoImp": "02"
                    },
                    "cfdi:Impuestos": {
                        "cfdi:Traslados": {
                            "cfdi:Traslado": {
                                "_attributes": {
                                    "Base": "82.40",
                                    "Impuesto": "002",
                                    "TipoFactor": "Tasa",
                                    "TasaOCuota": "0.160000",
                                    "Importe": "13.184"
                                }
                            }
                        }
                    }
                },
                {
                    "_attributes": {
                        "ClaveProdServ": "31201600",
                        "Cantidad": "1",
                        "ClaveUnidad": "H87",
                        "Unidad": "PIEZA",
                        "Descripcion": "KIT PEGAMENTO TECHNOVIT (CON TACON MADERA) CD. JUAREZ ",
                        "ValorUnitario": "1850.00",
                        "Importe": "1850.00",
                        "ObjetoImp": "02"
                    },
                    "cfdi:Impuestos": {
                        "cfdi:Traslados": {
                            "cfdi:Traslado": {
                                "_attributes": {
                                    "Base": "1850.00",
                                    "Impuesto": "002",
                                    "TipoFactor": "Exento"
                                }
                            }
                        }
                    }
                },
                {
                    "_attributes": {
                        "ClaveProdServ": "53102704",
                        "Cantidad": "8",
                        "ClaveUnidad": "H87",
                        "Unidad": "PIEZA",
                        "Descripcion": "MANDIL PREMIUM GB GRANDE PARA ORDEÑA GAL",
                        "ValorUnitario": "185.00",
                        "Importe": "1480.00",
                        "ObjetoImp": "02"
                    },
                    "cfdi:Impuestos": {
                        "cfdi:Traslados": {
                            "cfdi:Traslado": {
                                "_attributes": {
                                    "Base": "1480.00",
                                    "Impuesto": "002",
                                    "TipoFactor": "Tasa",
                                    "TasaOCuota": "0.160000",
                                    "Importe": "236.80"
                                }
                            }
                        }
                    }
                }
            ]
        },
        "cfdi:Impuestos": {
            "_attributes": {
                "TotalImpuestosTrasladados": "360.38"
            },
            "cfdi:Traslados": {
                "cfdi:Traslado": [
                    {
                        "_attributes": {
                            "Base": "1850.00",
                            "Impuesto": "002",
                            "TipoFactor": "Exento"
                        }
                    },
                    {
                        "_attributes": {
                            "Base": "2252.40",
                            "Impuesto": "002",
                            "TipoFactor": "Tasa",
                            "TasaOCuota": "0.160000",
                            "Importe": "360.38"
                        }
                    }
                ]
            }
        },
        "cfdi:Complemento": {
            "tfd:TimbreFiscalDigital": {
                "_attributes": {
                    "xmlns:tfd": "http://www.sat.gob.mx/TimbreFiscalDigital",
                    "xsi:schemaLocation": "http://www.sat.gob.mx/TimbreFiscalDigital http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigitalv11.xsd",
                    "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
                    "Version": "1.1",
                    "UUID": "9B812CD5-A039-E94E-B9FC-5073CF6C476F",
                    "FechaTimbrado": "2022-06-15T09:43:50",
                    "RfcProvCertif": "SCD110105654",
                    "SelloCFD": "gb9SiCpPuY5tDU+87xgJpur/Yu0/idNwKuy2/ctrScFPQMxlEG5IeqZwi9/hgpYVFj3reyPx0JTLO0zXGI0ETqTqLSlO+5hGN+8YQ9jmw9l8WAIznBCTip5cUjaJSNa0z2jf8TE2BGDiaYjYwZjlKGg4jkpc7L7lw5THmnuYmx1+X2IyRVlSRyVYdDkyJ9eg7FyG/r2elilATFlw2KWgX5ZCmRKpnqdcgncUwmLT5rAo1iaJL0NetMnAk6c3jf9sqM2RT3b1Oet+iW0sNIEMjQ+Jgt9sYaOoUd1RsL6tTiIa4NK6o07MOoSkPXC10JgZMHeVa+pIs9xtRG4pGwru+g==",
                    "NoCertificadoSAT": "00001000000502000436",
                    "SelloSAT": "Tc8wc5Y0HbR3mwFwRieNpI/n4Qo8RYAl6Pj38UwiPONeM1Cl/G7KosyjYfMt8vkQelpO1xMdfIpRaefT2UdatQ23yQRbx84G1ytiKORVZFXj/uN8zWeepNN3JVxf21v/vTqKhSqxU7qYFfFrVLLwcHHFSiFXIU5XJ9E+NM39yzm+HeeLznwUJtdSnL5Q9SvM3OBYSckCEvfYTnzel6KA20rbZXzdnJTgL9UwmOeC3HIoF2FcEkor9Q7oB4oHlDneZwflhR/1kS/4VWU4iNIB8mId8LPZbE8kC3Snf5n9ZROtgbAAVbcKRPO3DxKlNpfRFshDIl/I9fAQWnArtHvTtg=="
                }
            }
        }
    }
}

Another example is to make a transformation from a JSON to XML that is the opposite of the last process, it is required that the json data is in base64 encoding:

[
    {
        "content": "ew0KICAgICJfZGVjbGFyYXRpb24iOiB7DQogICAgICAgICJfYXR0cmlidXRlcyI6IHsNCiAgICAgICAgICAgICJ2ZXJzaW9uIjogIjEuMCIsDQogICAgICAgICAgICAiZW5jb2RpbmciOiAiVVRGLTgiDQogICAgICAgIH0NCiAgIC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nYXJFeHBlZGljaW9uIjogIjI3MTEwIg0KICAgICAgICB9LA0KICAgICAgICAiY2ZkaTpFbWlzb3IiOiB7DQogICAgICAgICAgICAiX2F0dHJpYnV0ZXMiOiB7DQogICAgICAgICAgICAgICAgIlJmYyI6ICJCSUFHNTUxMTIwUTY2IiwNCiAgICAgICAgICAgICAgICAiTm9tYnJlIjogIkdVQURBTFVQRSBCUklPTkVTIEFORFJBREUiLA0KICAgICAgICAgICAgICAgICJSZWdpbWVuRmlzY2FsIjogIjYxMiINCiAgICAgICAgICAgIH0NCiAgICAgICAgfSwNCiAgICAgICAgImNmZGk6UmVjZXB0b3IiOiB7DQogICAgICAgICAgICAiX2F0dHJpYnV0ZXMiOiB7DQogICAgICAgICAgICAgICAgIlJmYyI6ICJHRVUwNTAyMTQ5NjUiLA0KICAgICAgICAgICAgICAgICJOb21icmUiOiAiR1JBTkpBIEVVQ0FMSVBUT1MiLA0KICAgICAgICAgICAgICAgICJEb21pY2lsaW9GaXNjYWxSZWNlcHRvciI6ICIzNTEzMCIsDQogICAgICAgICAgICAgICAgIlJlZ2ltZW5GaXNjYWxSZWNlcHRvciI6ICI2MjIiLA0KICAgICAgICAgICAgICAgICJVc29DRkRJIjogIkcwMSINCiAgICAgICAgICAgIH0NCiAgICAgICAgfSwNCiAgICAgICAgImNmZGk6Q29uY2VwdG9zIjogew0KICAgICAgICAgICAgImNmZGk6Q29uY2VwdG8iOiBbDQogICAgICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICAgICAiX2F0dHJpYnV0ZXMiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAiQ2xhdmVQcm9kU2VydiI6ICI0MjMxMTUwMCIsDQogICAgICAgICAgICAgICAgICAgICAgICAiTm9JZGVudGlmaWNhY2lvbiI6ICIwMzYyIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJDYW50aWRhZCI6ICIzMCIsDQogICAgICAgICAgICAgICAgICAgICAgICAiQ2xhdmVVbmlkYWQiOiAiSDg3IiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJVbmlkYWQiOiAiUElFWkEiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkRlc2NyaXBjaW9uIjogIlZFTkRBIENBVFRMRSBXUkFQIENPRkxFWCBCWSBBTkRPVkVSIENEIEpVQVJFWiBDSElIIDEzNjc4XG4xOSAgMDcgIDA4MjMgIDkwMDAxMTAvMjAxOS0wMS0yOS8wNzAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIlZhbG9yVW5pdGFyaW8iOiAiMjMuMDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkltcG9ydGUiOiAiNjkwLjAwIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJPYmpldG9JbXAiOiAiMDIiDQogICAgICAgICAgICAgICAgICAgIH0sDQogICAgICAgICAgICAgICAgICAgICJjZmRpOkltcHVlc3RvcyI6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICJjZmRpOlRyYXNsYWRvcyI6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAiY2ZkaTpUcmFzbGFkbyI6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIl9hdHRyaWJ1dGVzIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkJhc2UiOiAiNjkwLjAwIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJJbXB1ZXN0byI6ICIwMDIiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRpcG9GYWN0b3IiOiAiVGFzYSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGFzYU9DdW90YSI6ICIwLjE2MDAwMCIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSW1wb3J0ZSI6ICIxMTAuNDAiDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIH0sDQogICAgICAgICAgICAgICAgICAgICJjZmRpOkluZm9ybWFjaW9uQWR1YW5lcmEiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAiX2F0dHJpYnV0ZXMiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgIk51bWVyb1BlZGltZW50byI6ICIxOSAgMDcgIDA4MjMgIDkwMDAxMTAiDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9LA0KICAgICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgICAgIl9hdHRyaWJ1dGVzIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgIkNsYXZlUHJvZFNlcnYiOiAiNDIxMjE1MDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkNhbnRpZGFkIjogIjQwIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJDbGF2ZVVuaWRhZCI6ICJIODciLA0KICAgICAgICAgICAgICAgICAgICAgICAgIlVuaWRhZCI6ICJQSUVaQSIsDQogICAgICAgICAgICAgICAgICAgICAgICAiRGVzY3JpcGNpb24iOiAiSkVSSU5HQSBERSBQTEFTVElDTyBHQiBJTlNUUlVNRU5UQUwgNSBNTCBDT04gQUdVSkEgIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJWYWxvclVuaXRhcmlvIjogIjIuMDYiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkltcG9ydGUiOiAiODIuNDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIk9iamV0b0ltcCI6ICIwMiINCiAgICAgICAgICAgICAgICAgICAgfSwNCiAgICAgICAgICAgICAgICAgICAgImNmZGk6SW1wdWVzdG9zIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgImNmZGk6VHJhc2xhZG9zIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICJjZmRpOlRyYXNsYWRvIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiX2F0dHJpYnV0ZXMiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQmFzZSI6ICI4Mi40MCIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSW1wdWVzdG8iOiAiMDAyIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUaXBvRmFjdG9yIjogIlRhc2EiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRhc2FPQ3VvdGEiOiAiMC4xNjAwMDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkltcG9ydGUiOiAiMTMuMTg0Ig0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfSwNCiAgICAgICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgICAgICJfYXR0cmlidXRlcyI6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICJDbGF2ZVByb2RTZXJ2IjogIjMxMjAxNjAwIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJDYW50aWRhZCI6ICIxIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJDbGF2ZVVuaWRhZCI6ICJIODciLA0KICAgICAgICAgICAgICAgICAgICAgICAgIlVuaWRhZCI6ICJQSUVaQSIsDQogICAgICAgICAgICAgICAgICAgICAgICAiRGVzY3JpcGNpb24iOiAiS0lUIFBFR0FNRU5UTyBURUNITk9WSVQgKENPTiBUQUNPTiBNQURFUkEpIENELiBKVUFSRVogIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJWYWxvclVuaXRhcmlvIjogIjE4NTAuMDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkltcG9ydGUiOiAiMTg1MC4wMCIsDQogICAgICAgICAgICAgICAgICAgICAgICAiT2JqZXRvSW1wIjogIjAyIg0KICAgICAgICAgICAgICAgICAgICB9LA0KICAgICAgICAgICAgICAgICAgICAiY2ZkaTpJbXB1ZXN0b3MiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAiY2ZkaTpUcmFzbGFkb3MiOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgImNmZGk6VHJhc2xhZG8iOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJfYXR0cmlidXRlcyI6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJCYXNlIjogIjE4NTAuMDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkltcHVlc3RvIjogIjAwMiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGlwb0ZhY3RvciI6ICJFeGVudG8iDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9LA0KICAgICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgICAgIl9hdHRyaWJ1dGVzIjogew0KICAgICAgICAgICAgICAgICAgICAgICAgIkNsYXZlUHJvZFNlcnYiOiAiNTMxMDI3MDQiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkNhbnRpZGFkIjogIjgiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkNsYXZlVW5pZGFkIjogIkg4NyIsDQogICAgICAgICAgICAgICAgICAgICAgICAiVW5pZGFkIjogIlBJRVpBIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICJEZXNjcmlwY2lvbiI6ICJNQU5ESUwgUFJFTUlVTSBHQiBHUkFOREUgUEFSQSBPUkRFw5FBIEdBTCIsDQogICAgICAgICAgICAgICAgICAgICAgICAiVmFsb3JVbml0YXJpbyI6ICIxODUuMDAiLA0KICAgICAgICAgICAgICAgICAgICAgICAgIkltcG9ydGUiOiAiMTQ4MC4wM