Skip to content

Wrong Avro file when XML has attributes #11

@shek007

Description

@shek007

I was trying to generate Avro file with your jars, but I get wrong output when XML has attributes & value. Following is the XML content,
<?xml version="1.0" encoding="UTF-8"?> <MyReport Major="1" Minor="0" Revision="1"> <IDs> <ID Type="No">Test</ID> <ID Type="Name">Test company</ID> </IDs> </MyReport>

I used http://www.freeformatter.com/xsd-generator.html to generate xsd and then I used your jar to generate avsc & avro. But in avro file I don't see Test, Test company. My avro file looks as follows,
��1��0��1�� NoName

It had some random special symbols in middle. Basically, I don't see all data! Can you please look into it and fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions