View mode: basic / threaded / horizontal-split · Log in · Help
November 29, 2011
std.xml
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
November 29, 2011
Re: std.xml
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 deprecated or
> not ?

Yes. std.xml is definitely going to be replaced. Unfortunately, the replacement 
isn't done yet and has no ETA that I'm aware of.

- Jonathan M Davis
November 30, 2011
Re: std.xml
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 don't think there is an affirmative on what is replacing std.xml, but it is going to get replaced and has even been suggested to be removed until that time.

Personally I use xmlp, http://www.dsource.org/projects/xmlp/ which is intended to be a candidate for std.

http://www.dsource.org/projects/xmlp/browser/trunk/std
November 30, 2011
Re: std.xml
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 updated. I do not want do
> > twice time the works. So my question is: std.xml will be deprecated or
> > not ?
> 
> Yes. std.xml is definitely going to be replaced. Unfortunately, the replacement 
> isn't done yet and has no ETA that I'm aware of.
> 
> - Jonathan M Davis

no ETA erf, how i do ?

at least can i know if std.xml will be replaced by xmlp ?
November 30, 2011
Re: std.xml
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 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 ?
> > 
> > Yes. std.xml is definitely going to be replaced. Unfortunately, the
> > replacement isn't done yet and has no ETA that I'm aware of.
> > 
> > - Jonathan M Davis
> 
> no ETA erf, how i do ?
> 
> at least can i know if std.xml will be replaced by xmlp ?

You can't know. The current std.xml _will_ be replaced. It is considered to be 
of unacceptably low quality. xmlp is the likely candidate to replace it, but 
it must be completed and go through Phobos' review process before it can be 
added to Phobos. And even if it does pass that review, it's likely to undergo 
a number of changes in the process. It's not possible to use any xml module at 
this point with the idea that it will be definitively adopted as D's standard 
xml module without breaking your code. The current std.xml is going to be 
removed, but what exactly is going to replace it is not yet known.

- Jonathan M Davis
November 30, 2011
Re: std.xml
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 created a wrapper around std.xml which have basically the same API 
as the Tango XML module. If you're lucky you can use my wrapper as a 
drop-in replacement. Actually it may not be complete enough for your 
needs but you could give it a try.

You need these two files:

https://github.com/jacob-carlborg/orange/blob/master/orange/xml/PhobosXml.d

https://github.com/jacob-carlborg/orange/blob/master/orange/xml/XmlDocument.d

PhobosXml is the original std.xml with a few minor modifications. 
XmlDocument is the actual wrapper.

-- 
/Jacob Carlborg
Top | Discussion index | About this forum | D home