Skip to content

Lines mode issue #19

@schrepfler

Description

@schrepfler

I'm trying to process xml documents in line mode (one line each). When trying this kind of input

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fixture start_time="1738166400000" event_id="9999" timestamp="1737369994942"/>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fixture start_time="1738065600000" event_id="9999" timestamp="1737369994951"/>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fixture start_time="1738164600000" event_id="9999" timestamp="1737369994960"/>
cat example.xmllines | xmq --lines
-:2: parser error : XML declaration allowed only at the start of the document
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fixture start_time="1738
     ^
-:2: parser error : Extra content at the end of the document
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fixture start_time="1738

Tried also cat example.xmllines | xmq, xmq --lines example.xmllines, xmq example.xmllines but it's all the same. Ideally I'd like to be able to pipe the output of kafka-console-consumer into 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