www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Xml Parser - Released (alpha)

reply =?iso-8859-1?Q?Miguel_Ferreira_Sim=F5es?= <kobold netcabo.pt> writes:
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_000D_01C49265.94171770"


------=_NextPart_001_000D_01C49265.94171770
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This is a small xml parser that works in a dom-like style.
It is neither the fastest nor the most complete xml parser in the world.
It is just an alternative!! (I just knew one xml parser for D, andy's =
one)

Please send me some feedback!

Thanks,=20
Miguel Ferreira Sim=F5es

------=_NextPart_001_000D_01C49265.94171770
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2723.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>This is a small xml parser that works in a dom-like style.</DIV>
<DIV>It is&nbsp;neither the fastest nor the most complete xml parser in =
the=20
world.</DIV>
<DIV>It is just an alternative!! (I just knew one xml parser for D, =
andy's=20
one)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please send me some feedback!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks, </DIV>
<DIV>Miguel Ferreira Sim=F5es</DIV></BODY></HTML></FONT></FONT>

------=_NextPart_001_000D_01C49265.94171770--
Sep 04 2004
next sibling parent reply David L. Davis <SpottedTiger yahoo.com> writes:
Miguel Ferreira Simoes: I downloaded, compiled and ran your code...Nice! With
the small xml example, it ran very fast, zero seconds on my machine. 

<sample>
# C:\dmd>bin\dmd xml.d
# C:\dmd\bin\..\..\dm\bin\link.exe xml,,,user32+kernel32/noi;
#
# C:\dmd>xml
# unittest self creation: start
# <root a="value1" b="value2">
#     <Son1>
#         <Son1-Son1/>
#     </Son1>
#     <Son3 a="value1">
#         <Son3-Son1/>
#         data
#     </Son3>
#     <Son2/>
#     data
# </root>
# unittest self creation(0 secs): end
#
# unittest methods: start
# unittest methods(0 secs): end
# 
# unittest load file: start
# unittest load file(0 secs): end
#
# Press any key to continue . . .
#
# C:\dmd>
</sample>

Thanks for sharing the code, maybe you should add this project to DSource.org
(http://www.dsource.org/) and give it a nice home where everyone can find it.

David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
Sep 04 2004
parent "Miguel Ferreira Simões" <kobold netcabo.pt> writes:
  It took 0 seconds to complete the "load file test" because there is no
xmltest.xml file in your directory.
  Please move one xml file to that directory and rename it with
"xmltest.xml", then uncomment the line.

  Thanks.
Sep 05 2004
prev sibling parent Bertrand de Chauffesque <Bertrand_member pathlink.com> writes:
plausible comments [ D ]
well split functionality [ B+ ]
naming convention, notation [ C ]
indentations & logical compounds [ B ]
vertical spacing [ E ]
horizontal spacing [ B+ ]
---
overall code readability [ C ]


This is a small xml parser that works in a dom-like style.
It is neither the fastest nor the most complete xml parser in the world.
It is just an alternative!! (I just knew one xml parser for D, andy's =
one)

Please send me some feedback!

Thanks,=20
Miguel Ferreira Sim=F5es

Sep 04 2004