Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all !

In part of my project i have to parse an XML document or built one, after that i have to use the result from parsing this file and I had to access to these results by grafic interface so i did try with tinyXml but i had some errors that i dont know how to resolve it , here some( while using a win32 project or windows forms
C++
 Début de la génération : Projet : applicationconsoleWin32, Configuration : Debug Win32 ------
1>  applicationconsoleWin32.cpp
1>  tinystr.cpp
1>c:\users\abdelhalim\desktop\manel pfe\tinyxml1\tinyxml\tinystr.cpp(27): warning C4627: '#include "tinystr.h"' : ignoré lors de la recherche d'une utilisation d'un en-tête précompilé
1>          Ajoutez la directive à 'StdAfx.h' ou régénérez l'en-tête précompilé
1>c:\users\abdelhalim\desktop\manel pfe\tinyxml1\tinyxml\tinystr.cpp(112): fatal error C1010: fin de fichier inattendue lors de la recherche d'un en-tête précompilé. N'auriez-vous pas oublié d'ajouter '#include "StdAfx.h"' à votre source ?
1>  Génération de code en cours...


it sais that i have to add StdAfx.h to Tinyxml ???????? which i found it strange

so i change the type of the project to "empty project" the parsing work but the problème now is when i add a "window form" i got this error :
C++
1>------ Début de la génération : Projet : projetvide, Configuration : Debug Win32 ------
1>  main.cpp
1>  .NETFramework,Version=v4.0.AssemblyAttributes.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: symbole externe non résolu _main référencé dans la fonction ___tmainCRTStartup
1>C:\Visual Studio 2010\Projects\projetvide\Debug\projetvide.exe : fatal error LNK1120: 1 externes non résolus
========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré


i also used XMLinspector which i found in this site but the problem is that i dont know how to use it to write an xml file ???????????? can any one help me pleaseeeee

thank you very much for any help
Posted

I would say, Microsoft XML or Apache Xerces:
http://en.wikipedia.org/wiki/Xerces[^],
http://xerces.apache.org/[^].

—SA
 
Share this answer
 
does any one knows how to use xerces in a project in vs2010 , what i found in internet is how to run it from ( invite de commande ) not in vs2010 ?????

thaks for any help :)
 
Share this answer
 
Comments
H.Brydon 31-Jul-13 22:10pm    
Don't post updates to your question as solutions. This is not viewed as good behavior and the question won't get answered properly. The preferred way to do it is to update the question...
I won't say which parser is best except to say that the Microsoft MSXML family is a mess.
Quote:
it sais that i have to add StdAfx.h to Tinyxml ???????? which i found it strange

You can fix this problem in solution explorer by right clicking the tinxml file(s)/project and turning off the "precompiled header" option.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900