{"repo":"michelin/avro-xml-mapper","free":true,"listed":false,"github":"https://github.com/michelin/avro-xml-mapper","clone":"git clone https://github.com/michelin/avro-xml-mapper.git","description":"Turn XML into Avro and vice versa.","language":"Java","stars":21,"topics":["avro","java","kafka","kafka-streams","xml"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"Avro XML Mapper %3D'project'%5D%2F %5Blocal-name()%3D'properties'%5D%2F %5Blocal-name()%3D'avro.version'%5D%2Ftext()&style=for-the-badge&logo=apacheavro&label=version) Getting Started • Usage Turn XML into Avro and vice versa. Table of Contents Getting Started Usage XPath Structure Single Element List Map Logical Type Date Big Decimal XML Namespace Keywords keepEmptyTag Custom Implementations Contribution Getting Started To get started, add the following dependency: Usage XPath The XPath attribute is used to specify the path of the element in the XML file. Structure Single Element A single element is represented as follows: AVSC XML List Lists can be applied to any repeating element in the XML file. The XPath attribute should point to the repeating element. AVSC XML Complex types can also be defined as follows: AVSC XML Map Maps have two accepted formats: - A list of elements with a key attribute AVSC XML - A list of nodes with a key element and a value element AVSC XML In both cases, the rootXpath attribute always points to the repeating element of the list. Logical Type Date Only the timestamp-millis Long logical type is handled and has multiple accepted formats: - ISO8601 date-time - ISO8601 date - Flat date (yyyyMMddz) which gets the UTC 12:00:00.000 time to avoid timezone issues - Flat date-time (yyyyMMddHHmmssz) which gets the UTC timezone assigned - ISO8601 date-time without offset - ISO8601 date without offset - Flat date without offset (yyyyMMdd) which gets the UTC 1","default_branch":null,"files":null,"tree":[],"storefront":"/r/michelin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/michelin/avro-xml-mapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}