Skip to content

Gyoku.xml produces wrong results with arrays of hashes #48

Open
@dredozubov

Description

@dredozubov

It produces:

h = {attrs: [{attr: 1}, {attr: 2}, {attr: 3}]}
=> {:attrs=>[{:attr=>1}, {:attr=>2}, {:attr=>3}]}
Gyoku.xml(h)
=> "<foo><bar>1</bar></foo><foo><bar>2</bar></foo><foo><bar>3</bar></foo>"

I think this behaviour is completely incorrect. I believe it should return: <foo><bar>1</bar><bar>2</bar><bar>3</bar></foo>.
I haven't got time to look it yet, but It may be related to #40

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