Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - How to read XML data [Thread Next] Re: How to read XML dataTo: NULL Date: 5/7/2007 2:23:00 PM Ramona schrieb: > i have a XML file with nested tags like > > <category name="nature" id=12344" Starttime="12.00" date="11122007"> > <event name="water" id="12233" > > <eventtype name="seawater" amount="23%"> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > </eventtype> > </event> > > <event name="water" id="12233" > > <eventtype name="seawater" amount="23%"> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > </eventtype> > </event> > > <event name="water" id="12233" > > <eventtype name="seawater" amount="23%"> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > <type name="salt" content="3233"/> > </eventtype> > </event> > </category> > > How do i parse these contents to get them in grid format and save it > to database. > is there any way to achieve this > can anyone give idea like how to start with > am new to use XML data > so plz help me on this regard Depending on your platform and programming language there are several parsers available that can read such files. For instance, for Windows and VB/JSCript there is Microsofts MSXML, for Tcl/Tk there is TclDOM, for perl there surely are packages too, all of them (including MSXML) being free. Personally, on Windows I'd go for VB/JScript and MSXML unless there are so many events that even a simple loop in VBScript becomes an issue. Then I'd switch to visual basic or visual C++. (In that case .NET will probably be too slow too, being half as fast as native C++ according to microsoft.) Lots of Greetings! Volker -- For email replies, please substitute the obvious. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
