XML Parsing

2012-03-19 Thread Chris Pons
Hey Guys, I am trying to parse an XML document with std.xml. I've looked over the reference of std.xml as well as the example but i'm still stuck. I've also looked over some example code, but it's a bit confusing and doesn't entirely help explain what i'm doing wrong. As far as I understand

Re: XML Parsing

2012-03-19 Thread Adam D. Ruppe
I know very little about std.xml (I looked at it and said 'meh' and wrote my own lib), but my lib makes this pretty simple. https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff grab dom.d and characterencodings.d This has a bit of an html bias, but it works for xm

Re: XML Parsing

2012-03-20 Thread Chris Pons
On Tuesday, 20 March 2012 at 04:32:13 UTC, Adam D. Ruppe wrote: I know very little about std.xml (I looked at it and said 'meh' and wrote my own lib), but my lib makes this pretty simple. https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff grab dom.d and characte

Re: XML Parsing

2012-05-18 Thread Iain
On Tuesday, 20 March 2012 at 04:32:13 UTC, Adam D. Ruppe wrote: I know very little about std.xml (I looked at it and said 'meh' and wrote my own lib), but my lib makes this pretty simple. https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff grab dom.d and characte

Re: XML Parsing

2012-05-18 Thread Adam D. Ruppe
On Friday, 18 May 2012 at 23:08:59 UTC, Iain wrote: If I try to compile the code you gave above, I get a pile of linking errors using D 2.059: You have to link in the modules too on the command line dmd.exe parseSpain arsd/dom.d arsd/characterencoding.d (or whatever the full path to the modul

Re: XML Parsing

2012-05-18 Thread Iain
On Friday, 18 May 2012 at 23:16:26 UTC, Adam D. Ruppe wrote: On Friday, 18 May 2012 at 23:08:59 UTC, Iain wrote: If I try to compile the code you gave above, I get a pile of linking errors using D 2.059: You have to link in the modules too on the command line dmd.exe parseSpain arsd/dom.d ars

Re: XML Parsing

2012-05-18 Thread Iain
On Friday, 18 May 2012 at 23:31:05 UTC, Iain wrote: Aah thank you! Finally, an XML parser that works in D!!! Adam, thanks for this! I guess you don't need much documentation for your code, as you can just look up the wealth of tutorials that have been written for Javascript's XML parser.

Re: XML Parsing

2012-05-18 Thread Adam D. Ruppe
On Saturday, 19 May 2012 at 00:00:50 UTC, Iain wrote: I guess you don't need much documentation for your code, as you can just look up the wealth of tutorials that have been written for Javascript's XML parser. Yeah, that's basically how I feel about it. I started writing some documentation bu