Skip to content
This repository was archived by the owner on Jun 13, 2018. It is now read-only.
This repository was archived by the owner on Jun 13, 2018. It is now read-only.

Iterating over attributes #105

@saleyn

Description

@saleyn

It's unclear from documentation how to iterate over attributes of a given XML node.
I tried the following, without success:

.global.xxx = xml.load_string ("<a value = \"2\" x=\"1\">Hello</a>")
.for xxx. as i
    echo i
.endfor

This prints:

2015/11/13 13:32:55: gsl/4 M: Hello

What I need is an iterator that would iterate through all attributes of "a" node: "value", "x".
Any help?

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