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:

  1. open xml, parse c++ objects , store in container e.g. std::vector, close xml.
  2. open new sqlite database, create table maybe more, iterate c++ container of objects inserting values table iterate;
  3. execute select query on new table , read resultset, each result storing/editing c++ objects;
  4. 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

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -