Re: arsd dom

2019-06-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 12 June 2019 at 10:06:39 UTC, Amex wrote: When parsing an xml file I get #text for tagName on basically every other element. Those are the text nodes representing the whitespace between elements. `bar ` has: element Foo, text " ", element text.

arsd dom

2019-06-12 Thread Amex via Digitalmars-d-learn
When parsing an xml file I get #text for tagName on basically every other element. I'm trying to recurse through all the elements using void recurse(T)(T parent, int depth = 0) { foreach(c; parent.children) { recurse(c,