Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to read XML data

From: Volker Hetzer <firstname.lastname@----.--->
To: 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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent