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

make AbstractTrees.print_tree(node) work #158

Open
anandijain opened this issue Mar 16, 2021 · 1 comment
Open

make AbstractTrees.print_tree(node) work #158

anandijain opened this issue Mar 16, 2021 · 1 comment

Comments

@anandijain
Copy link

I feel like this shouldn't be too hard and I'd like to make a PR to be able to print_tree(node), opening issue in the meantime

this would be incredibly useful

@anandijain
Copy link
Author

anandijain commented Mar 16, 2021

AbstractTrees.children(n::EzXML.Node) = elements(n)
AbstractTrees.printnode(io::IO, node::EzXML.Node) = print(io, getproperty(node, :name))
AbstractTrees.nodetype(::EzXML.Node) = EzXML.Node
print_tree(xml)

thats basically it

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