Linux C++ Application Setting Configured by XML file [closed] - c++

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am working with a C++ project whose application setting is a simple text file. Now i want to replace the file with XML based configuration. So which xml parser should i use?

Look at TinyXML or TinyXML++, it's small and easy.

You can also use the boost::property_tree, as someone already mentioned.
Here is a nice tutorial for using it to read/write xml.

Plenty of choice. Selecting a parser with XPATH support is often very handy in this circumstance. libxml+ with libXml2 does the job nicely - and libxml2 is included in just about any Linux distro.

Look at libconfig, it may be good replace for xml.

Related

way to get data without metadata(ID3) from mp3 [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is there any way to get data removed metadata(for example, ID3) from mp3 file with Objective-C, C++, or C?
there are similar function in PHP.
Unfortunately not. Use a library (For ID3, there are library implementations listed on ID3.org).
If for some reason you cannot use a library, removing a single ID3 tag from a file is quite a trivial process (search for the characters 'ID3' and then look at the header to get the tag size in bytes (details of the header found here). The tag will be contiguous so you can just remove it using a file descriptor.

OS portable C/C++ XML parser [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is the fastest C/C++ open source, OS portable XML parser that has both Unicode support and XML Schema support?
There's no such thing as "the best ...", but Xerces-C++ is a powerful one, which has XML Schema support, and pugixml is a very neat one, however, which doesn't validate
A commonly used xml library is libxml2 available here.

Is there any Linux alternative for Windows Path API? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
In Windows API there are a big set of methods for manipulating of paths and URLs at Shell Path Handling Functions. The functions include helpers like PathAddBackslash, PathCanonicalize, PathCombine, and PathIsDirectory.
The question is: are there any Posix provided functionality or Linux-based library that gives analogous functionality? That is, simplifies paths combination, canonicalization, parsing, as well as URLs parsing?
I know that it is possible to write such functions with C++ (not small but not complex job), but my question is: are there any ready "official" libraries on Linux that already have similar functionality?
I am quite happy with boost_filesystem. Best part of it is that it is cross-platform, so it also works on Windows.
Another possibility is leveraging the capabilities of Qt or GLIB (GTK+).
Finally, most path-mangling operations are already in the POSIX standard and available out-of-the-box. For an example see the manpage of basename(3), dirname(3):
http://www.kernel.org/doc/man-pages/online/pages/man3/dirname.3.html
You could also use POCO C++ libraries, take a look here:
http://pocoproject.org/features.html
And here you could find more on filesystem api:
http://pocoproject.org/slides/080-Files.pdf

Is there an enhanced interpreter toploop for OCaml? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Python has IPython.. does OCaml have anything similar?
I'd very much like to have command history, although other features would be nice too. I've read that I could get command history by running it in Emacs, but I don't use Emacs..
rlwrap gives you readline features (history, editing commands, etc). Also, Findlib adds some functionality, see the quickstart for examples.
There's utop! It has autocompletion, is emacs compatible and so on.
Use ledit ocaml with ledit.
You can also use the online toplevel.

C++ XML Schema Code Generator [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
We have XML files and we want to have C++ classes generated out of XML schema like we have it in .NET xsd.
Also the generated classes instance needs to provide appropriate XML by calling some methods.
I use Liquid XML Studio, it does all of that as well as documenting everything
If you are working with Web Services here, then I would really suggest going with gSOAP.
If you are only interested in data bindings in C++, then XSD: XML Data Binding for C++ by code synthesis is also a very good tool, they are pretty good about documentation too.
Gslgen is known to be a good code generator. It uses a simplified version of XML though.