www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - std.xml

reply bioinfornatics <bioinfornatics fedoraproject.rog> writes:
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
Nov 29 2011
next sibling parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
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
Nov 29 2011
prev sibling next sibling parent Jesse Phillips <Jesse.K.Phillips gmail.com> writes:
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
Nov 29 2011
prev sibling next sibling parent bioinfornatics <bioinfornatics fedoraproject.rog> writes:
Le mardi 29 novembre 2011 =C3=A0 18:10 -0500, Jonathan M Davis a =C3=A9crit=
 :
 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 repla=

 isn't done yet and has no ETA that I'm aware of.
=20
 - Jonathan M Davis

no ETA erf, how i do ? at least can i know if std.xml will be replaced by xmlp ?
Nov 29 2011
prev sibling next sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Wednesday, November 30, 2011 03:42:33 bioinfornatics wrote:
 Le mardi 29 novembre 2011 =C3=A0 18:10 -0500, Jonathan M Davis a =C3=A9=

 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 =



 have
 heard they are sometime ago std.xml will be updated. I do not wan=



 do
 twice time the works. So my question is: std.xml will be deprecat=



 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.
=20
 - Jonathan M Davis

no ETA erf, how i do ? =20 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 considere= d to be=20 of unacceptably low quality. xmlp is the likely candidate to replace it= , but=20 it must be completed and go through Phobos' review process before it ca= n be=20 added to Phobos. And even if it does pass that review, it's likely to u= ndergo=20 a number of changes in the process. It's not possible to use any xml mo= dule at=20 this point with the idea that it will be definitively adopted as D's st= andard=20 xml module without breaking your code. The current std.xml is going to = be=20 removed, but what exactly is going to replace it is not yet known. - Jonathan M Davis
Nov 29 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
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
Nov 29 2011