Re: Is std.xml seriously broken, or is it me?

2017-07-31 Thread Kagamin via Digitalmars-d-learn
On Sunday, 30 July 2017 at 03:16:35 UTC, Mike wrote: It appears `onStartTag` does not handle the root element. Looks like a bug. Until the module is replaced, bug reports are still accepted for it.

Re: Is std.xml seriously broken, or is it me?

2017-07-30 Thread Joakim via Digitalmars-d-learn
On Sunday, 30 July 2017 at 03:16:35 UTC, Mike wrote: On Sunday, 30 July 2017 at 02:58:09 UTC, Mike wrote: [...] It appears `onStartTag` does not handle the root element. For example, this code seems to work: import std.xml; import std.stdio; void main() { auto parser = new

Re: Is std.xml seriously broken, or is it me?

2017-07-29 Thread Meta via Digitalmars-d-learn
On Sunday, 30 July 2017 at 02:58:09 UTC, Mike wrote: I'm trying to use std.xml, and I can't get it to work. I tried the simplest program I could think of: import std.xml; import std.stdio; void main() { auto parser = new DocumentParser("encoding=\"utf-8\"?>"

Re: Is std.xml seriously broken, or is it me?

2017-07-29 Thread Mike via Digitalmars-d-learn
On Sunday, 30 July 2017 at 02:58:09 UTC, Mike wrote: import std.xml; import std.stdio; void main() { auto parser = new DocumentParser("encoding=\"utf-8\"?>"); parser.onStartTag["device"] = (ElementParser parser) { writeln("device"

Is std.xml seriously broken, or is it me?

2017-07-29 Thread Mike via Digitalmars-d-learn
I'm trying to use std.xml, and I can't get it to work. I tried the simplest program I could think of: import std.xml; import std.stdio; void main() { auto parser = new DocumentParser("encoding=\"utf-8\"?>"); parser.onStartTag["device"] = (

Re: Faster alternatives to std.xml

2017-07-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, July 8, 2017 8:45:57 PM MDT Nordlöw via Digitalmars-d-learn wrote: > What's the fastest XML-parser on code.dlang.org? > > Are there any benchmarks that show performance improvements > compared to std.xml? I'm not aware of any benchmarks for std.xml, but from

Faster alternatives to std.xml

2017-07-08 Thread Nordlöw via Digitalmars-d-learn
What's the fastest XML-parser on code.dlang.org? Are there any benchmarks that show performance improvements compared to std.xml?

Re: std.xml

2014-01-14 Thread Jacob Carlborg
On 2014-01-14 09:57, "Ola Fosheim Grøstad" " wrote: I want to read XML files and replace the nodes I care about (shapes and transforms) with my own version so that I more easily can manipulate it (using a more efficient internal representation). The kxml library appears have a node class, so ma

Re: std.xml

2014-01-14 Thread Ola Fosheim Grøstad
On Monday, 13 January 2014 at 19:54:22 UTC, Jacob Carlborg wrote: I'm not sure what you're trying to do but the implementation in Tango uses structs for the nodes so you cannot subclass that. I want to read XML files and replace the nodes I care about (shapes and transforms) with my own versio

Re: std.xml

2014-01-13 Thread Jacob Carlborg
On 2014-01-13 18:47, "Ola Fosheim Grøstad" " wrote: Thanks Jacob and Dejan! I guess I can just build a generic DOM using one of those and replace the nodes I am interested with subclasses after the tree building process. I was thinking more of a library that allows me to say that a specific elem

Re: std.xml

2014-01-13 Thread Ola Fosheim Grøstad
Thanks Jacob and Dejan! I guess I can just build a generic DOM using one of those and replace the nodes I am interested with subclasses after the tree building process. I was thinking more of a library that allows me to say that a specific element (like "svg") should use a specific subclass,

Re: std.xml

2014-01-10 Thread Dejan Lekic
On Friday, 10 January 2014 at 00:02:14 UTC, Ola Fosheim Grøstad wrote: The std.xml documentation states "This module is considered out-dated and not up to Phobos' current standards." Does this mean that there is some other module I should use for xml parsing? Maybe one tha

Re: std.xml

2014-01-09 Thread Jacob Carlborg
On 2014-01-10 01:02, "Ola Fosheim Grøstad" " wrote: The std.xml documentation states "This module is considered out-dated and not up to Phobos' current standards." Does this mean that there is some other module I should use for xml parsing? Maybe one that is not in

std.xml

2014-01-09 Thread Ola Fosheim Grøstad
The std.xml documentation states "This module is considered out-dated and not up to Phobos' current standards." Does this mean that there is some other module I should use for xml parsing? Maybe one that is not in the standard distribution yet because it is beta? I'd l

Re: problem parsing xml (std.xml)

2012-05-07 Thread Stanislav Blinov
Just a guess, but wouldn't be the root node of the document, thus not qualifying for the onStartTag?

problem parsing xml (std.xml)

2012-05-06 Thread Minas
I'm trying to use std.xml to parse a small snippet of xml (for now). This is my code: [code] void main(string[] args) { string xmlText = "\n" ~ "" ~

onStartTag for root node in std.xml

2011-12-22 Thread Heromyth
In the test code, the onStartTag will not be called for the root node "set". The onEndTag is OK, and the onStartTag is OK for sub nodes. Is this a bug, or just it is? Can anybody confirm it? Thanks. // test.d module main; import std.string; import std.stdio; import std.xml; int m

Re: std.xml

2011-11-29 Thread Jacob Carlborg
On 2011-11-29 23:47, bioinfornatics wrote: Dear I convert my lib tango/d1 to phobos/d2 so i need use std.xml but i have heard they are sometime ago std.xml will be updated. I do not want do twice time the works. So my question is: std.xml will be deprecated or not ? thanks I've crea

Re: std.xml

2011-11-29 Thread Jonathan M Davis
On Wednesday, November 30, 2011 03:42:33 bioinfornatics wrote: > Le mardi 29 novembre 2011 à 18:10 -0500, Jonathan M Davis a écrit : > > On Tuesday, November 29, 2011 23:47:33 bioinfornatics wrote: > > > Dear > > > I convert my lib tango/d1 to phobos/d2 so i need u

Re: std.xml

2011-11-29 Thread bioinfornatics
Le mardi 29 novembre 2011 à 18:10 -0500, Jonathan M Davis a écrit : > On Tuesday, November 29, 2011 23:47:33 bioinfornatics wrote: > > Dear > > I convert my lib tango/d1 to phobos/d2 so i need use std.xml but i have > > heard they are sometime ago std.xml will be upda

Re: std.xml

2011-11-29 Thread Jesse Phillips
bioinfornatics Wrote: > Dear > I convert my lib tango/d1 to phobos/d2 so i need use std.xml but i have > heard they are sometime ago std.xml will be updated. I do not want do > twice time the works. So my question is: std.xml will be deprecated or > not ? > > thanks I do

Re: std.xml

2011-11-29 Thread Jonathan M Davis
On Tuesday, November 29, 2011 23:47:33 bioinfornatics wrote: > Dear > I convert my lib tango/d1 to phobos/d2 so i need use std.xml but i have > heard they are sometime ago std.xml will be updated. I do not want do > twice time the works. So my question is: std.xml will be depreca

std.xml

2011-11-29 Thread bioinfornatics
Dear I convert my lib tango/d1 to phobos/d2 so i need use std.xml but i have heard they are sometime ago std.xml will be updated. I do not want do twice time the works. So my question is: std.xml will be deprecated or not ? thanks

Re: std.xml empty element

2011-02-26 Thread Jacob Carlborg
On 2011-02-26 07:20, Tom wrote: El 25/02/2011 20:07, Jacob Carlborg escribió: On 2011-02-25 21:11, Tom wrote: El 24/02/2011 19:40, Tom escribió: El 24/02/2011 09:51, Jacob Carlborg escribió: On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml

Re: std.xml empty element

2011-02-25 Thread Tom
El 25/02/2011 20:07, Jacob Carlborg escribió: On 2011-02-25 21:11, Tom wrote: El 24/02/2011 19:40, Tom escribió: El 24/02/2011 09:51, Jacob Carlborg escribió: On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln

Re: std.xml empty element

2011-02-25 Thread Jacob Carlborg
On 2011-02-25 21:11, Tom wrote: El 24/02/2011 19:40, Tom escribió: El 24/02/2011 09:51, Jacob Carlborg escribió: On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields

Re: std.xml empty element

2011-02-25 Thread Tom
El 24/02/2011 19:40, Tom escribió: El 24/02/2011 09:51, Jacob Carlborg escribió: On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields instead of Thanks in advance, T

Re: std.xml empty element

2011-02-24 Thread Tom
El 24/02/2011 09:51, Jacob Carlborg escribió: On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields instead of Thanks in advance, Tom; http://d.puremagic.com/issues/sh

Re: std.xml empty element

2011-02-24 Thread Jesse Phillips
Tom Wrote: > Hi, how can I create an empty element with current D2 std.xml Element > implementation? > > stdout.writeln(new Element("foo")); // Shields instead of > > > Thanks in advance, > Tom; One issue with this is that you can not determine what can be

Re: std.xml empty element

2011-02-24 Thread Jacob Carlborg
On 2011-02-24 06:48, Tom wrote: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields instead of Thanks in advance, Tom; http://d.puremagic.com/issues/show_bug.cgi?id=4394 -- /Jacob Carlborg

Re: std.xml empty element

2011-02-23 Thread Tom
Oops, I mean, yields :S El 24/02/2011 02:48, Tom escribió: Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields instead of Thanks in advance, Tom;

std.xml empty element

2011-02-23 Thread Tom
Hi, how can I create an empty element with current D2 std.xml Element implementation? stdout.writeln(new Element("foo")); // Shields instead of Thanks in advance, Tom;