Re: [go-nuts] Re: Go based xml manipulation library

2021-02-14 Thread Santhosh T
the dom model, currently only provides Append method. but the all members of model are exported. so it should be possible to write delete by removing node from slice and setting its parent to null. - santhosh On Mon, Feb 15, 2021 at 5:00 AM Tong Sun wrote: > Thank you Santhosh! > > Can the http

Re: [go-nuts] Re: Go based xml manipulation library

2021-02-14 Thread Tong Sun
Thank you Santhosh! Can the https://github.com/santhosh-tekuri/xpath model edit or delete elements, apart from locating them? If so, are there any ready-made examples/blogs etc that I can refer to? Thx! On Sun, Feb 14, 2021 at 4:28 PM Santhosh Kumar T wrote: > > You can try https://github.com/s

[go-nuts] Re: Go based xml manipulation library

2021-02-14 Thread Santhosh Kumar T
You can try https://github.com/santhosh-tekuri/xpath. it uses https://github.com/santhosh-tekuri/xpath as model. BTW, I am author of the above projects - santhosh On Friday, February 12, 2021 at 10:30:57 PM UTC+5:30 sunto...@gmail.com wrote: > Thanks Steve, > > That's what I thought, but on

[go-nuts] Re: Go based xml manipulation library

2021-02-12 Thread Tong Sun
Thanks Steve, That's what I thought, but on taking a closer look, especially the getting to the `following-sibling` part, I didn't find any API that I can make use of out of the box. Hence -- https://github.com/beevik/etree/issues/99 Could you elaborate on how to get to the `following-sibling

[go-nuts] Re: Go based xml manipulation library

2021-02-11 Thread Steve Roth
github.com/beevik/etree does much of what you're looking for. Steve On Thursday, February 11, 2021 at 1:10:51 PM UTC-8 sunto...@gmail.com wrote: > Is there any Go library that allow certain following-sibling > manipulation? > > Specifically, I want