Skip to content

Add hierarchy of xml elements from yaml structure #95

@sradi

Description

@sradi

Hi,

I am currently trying out ansible-xml. There's one thing, I couldn't get working:
I am referencing a variable from a yml file, which contains a list of items, that are added as xml elements to my target file. That's easy... Now I would like to reference a variable, which contains a list, where each item again contains a list. I expected, that I could add two levels of nested xml elements at once, this way. Unfortunately I am receiving this error:
TypeError: Argument must be bytes or unicode, got 'list'

Is there any way to add a full xml structure at once, with add_children?

Thanks a lot in advance!!
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions