Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier access to attributes with #attributes #5

Open
josephernest opened this issue Feb 18, 2014 · 0 comments
Open

Easier access to attributes with #attributes #5

josephernest opened this issue Feb 18, 2014 · 0 comments

Comments

@josephernest
Copy link

With...

<root>
  <blah myattr="foo">Bonjour</blah>
</root>

..., would it be possible to have :

print d['root']['blah']['#myattr']      # foo

instead of (now it is like this) :

print d['root']['blah']['#blah']['myattr']   # foo

Moreover, when I slighly change the original XML, there is sometimes @myattr and sometimes #myattr : would it be possible to simplify this and have only @ or only # ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant