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

Better support for modifying XmlNodes #3797

Closed
dom96 opened this issue Jan 30, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@dom96
Copy link
Member

commented Jan 30, 2016

At least the following procedures would be useful for my use case:

  • clear - to clear all children of an xmlnode

Ability to set/get all the children of an xmlnode would be nice too

@dom96 dom96 added the Stdlib label Jan 30, 2016

@narimiran

This comment has been minimized.

Copy link
Member

commented Feb 19, 2019

clear - to clear all children of an xmlnode

proc clear(n: var XmlNode) =
  for i in 0 ..< n.len:
    n.delete(i)

Is this enough? :)

@Araq

This comment has been minimized.

Copy link
Member

commented Feb 19, 2019

No, that's not recursive.

narimiran added a commit to narimiran/Nim that referenced this issue Feb 19, 2019

@narimiran

This comment has been minimized.

Copy link
Member

commented Feb 19, 2019

No, that's not recursive.

Alright, #10711 is recursive.

@Araq Araq closed this in 6a5c747 Feb 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.