Re: Learning to XML with D

2015-02-09 Thread Derix via Digitalmars-d-learn
my dom.d works in a familiar way OK, will check it useful for scraping html sites. Not exactly what I'm doing, but close. I'm in the midst of a self-training spree, and what I use as test-tubes fodder is the following : a collection of 300+ html files constituting an electronic version of a

Re: Learning to XML with D

2015-02-09 Thread Derix via Digitalmars-d-learn
What I don't quite grab is the construct (in Element e) , especially the *in* part. Function parameters in D can be qualified as in or out, optionally: But of course. Actually I kinda found out just a little while after posting the question. Asking questions is a great way to figure out th

Re: Learning to XML with D

2015-02-07 Thread Arjan via Digitalmars-d-learn
On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: So, I set sails to transform a bunch of HTML files with D. This, of course, will happen with the std.xml library. There is this nice example : http://dlang.org/phobos/std_xml.html#.DocumentParser that I put to some use already, however so

Re: Learning to XML with D

2015-02-06 Thread CraigDillabaugh via Digitalmars-d-learn
On Friday, 6 February 2015 at 14:15:44 UTC, Chris wrote: On Friday, 6 February 2015 at 14:11:19 UTC, CraigDillabaugh wrote: On Friday, 6 February 2015 at 14:09:51 UTC, CraigDillabaugh wrote: On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: On Friday, 6 February 2015 at 09:15:54 UTC, De

Re: Learning to XML with D

2015-02-06 Thread Chris via Digitalmars-d-learn
On Friday, 6 February 2015 at 14:11:19 UTC, CraigDillabaugh wrote: On Friday, 6 February 2015 at 14:09:51 UTC, CraigDillabaugh wrote: On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: clip Thxxx The documentation says: "Warn

Re: Learning to XML with D

2015-02-06 Thread CraigDillabaugh via Digitalmars-d-learn
On Friday, 6 February 2015 at 14:09:51 UTC, CraigDillabaugh wrote: On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: clip Thxxx The documentation says: "Warning: This module is considered out-dated and not up to Phobos' curr

Re: Learning to XML with D

2015-02-06 Thread CraigDillabaugh via Digitalmars-d-learn
On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: So, I set sails to transform a bunch of HTML files with D. This, of course, will happen with the std.xml library. There is this nice example : http://dlang.org/phobos/std_xml.html#

Re: Learning to XML with D

2015-02-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: If you wanna use D for XML parsing, see if you can find a solid 3rd party library in D (have a look at Adam's github page: https://github.com/adamdruppe/, he has some DOM and HTML stuff up there). Yeah, if you're used to DOM work in Jav

Re: Learning to XML with D

2015-02-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: OK, we're doing some event-base parsing, reacting with a lambda function on encountering so-and-do tag, à la SAX. (are we ?) yeah What I don't quite grab is the construct (in Element e) , especially the *in* part. Function parameters

Re: Learning to XML with D

2015-02-06 Thread via Digitalmars-d-learn
On Friday, 6 February 2015 at 11:39:32 UTC, Chris wrote: If you wanna use D for XML parsing, see if you can find a solid 3rd party library in D (have a look at Adam's github page: https://github.com/adamdruppe/, he has some DOM and HTML stuff up there). Another place to look is http://code.dl

Re: Learning to XML with D

2015-02-06 Thread Chris via Digitalmars-d-learn
On Friday, 6 February 2015 at 09:15:54 UTC, Derix wrote: So, I set sails to transform a bunch of HTML files with D. This, of course, will happen with the std.xml library. There is this nice example : http://dlang.org/phobos/std_xml.html#.DocumentParser that I put to some use already, however so

Learning to XML with D

2015-02-06 Thread Derix via Digitalmars-d-learn
So, I set sails to transform a bunch of HTML files with D. This, of course, will happen with the std.xml library. There is this nice example : http://dlang.org/phobos/std_xml.html#.DocumentParser that I put to some use already, however some of the basics seem to escape me, specially in lines li