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

Convenient syntax for adding nodes with attributes #110

Open
alhirzel opened this issue Jul 2, 2020 · 0 comments
Open

Convenient syntax for adding nodes with attributes #110

alhirzel opened this issue Jul 2, 2020 · 0 comments

Comments

@alhirzel
Copy link

alhirzel commented Jul 2, 2020

Would utility functions like the following be acceptable in this package?

function new_child2(xparent::XMLElement, name::AbstractString, attributes::LightXML.PairTypes...)
	element = new_child(xparent, name)
	set_attributes(element, Dict(attributes))
	return element
end

I foresee this coming in handy for new_child and create_root.

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