XMLSQLite Data Conversion C++ Linux -
i have convert xml data sqlite run query on sqlite data , convert query results xml. have c++ library this. using linux operating system.
regards, dinesh.
i'm not aware of 1 library doing that, , if horribly complicated. i'm pretty sure you'll need use 2 different libraries: 1 xml parsing/writing , sql transactions. you'd have better design way - separation of concerns.
libxml , libsqlite 2 examples installable in current distribution. e.g. sudo apt-get install libsqlite3-dev libxml2-dev
then you'll want to:
- open xml, parse c++ objects , store in container e.g. std::vector, close xml.
- open new sqlite database, create table maybe more, iterate c++ container of objects inserting values table iterate;
- execute select query on new table , read resultset, each result storing/editing c++ objects;
- create new xml root object, iterate new/modified c++ objects , each object add new xml node root, write xml tree new file.
hope helps.
Comments
Post a Comment