Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C
I am trying to execute a program to parse an xml file in CPP.
I used DOM parser and I found the following errors:
 
Error ..\INCLUDE\XML.H 151: Multiple declaration for 'xml_element'
Error SAMPLE.CPP 11 :'Node' cannot start a parameter declaration
Error SAMPLE.CPP 12 :'Node' cannot start a parameter declaration
Error SAMPLE.CPP 16 :Declaration syntax error
Error SAMPLE.CPP 20 :Undefined symbol 'XMLParser'
Error SAMPLE.CPP 20: Statement missing;
Error SAMPLE.CPP 21:Undefined symbol 'ub4'
Error SAMPLE.CPP 21:Statement missing ;
Error SAMPLE.CPP 22:Statement missing ;
Error SAMPLE.CPP 23:Undefined symbol 'flags'
Error SAMPLE.CPP 23:Undefined symbol 'XML_FLAG_VALIDATE'
Error SAMPLE.CPP 23:Undefined symbol 'XML_FLAG_DISCARD_WHITESPACE'
Error SAMPLE.CPP 31:Undefined symbol 'ecode'
Error SAMPLE.CPP 31:Undefined symbol 'parser'
Error SAMPLE.CPP 39:Undefined symbol 'oratext'
Error SAMPLE.CPP 39:Expression syntax
Error SAMPLE.CPP 40:If statement missing )
Error SAMPLE.CPP 46: Undefined symbol 'n-speech'
Error SAMPLE.CPP 54: 'Node' cannot start a parameter declaration
Error SAMPLE.CPP 56: Undefined symbol 'Node'
Error SAMPLE.CPP 56: Undefined symbol 'title'
Error SAMPLE.CPP 56: Undefined symbol 'speak'
Error SAMPLE.CPP 58:Statement missing ;
Error SAMPLE.CPP 60: Pointer to structure required on left side of -> or ->*
Error SAMPLE.CPP 63: Pointer to structure required on left side of -> or ->*
Error SAMPLE.CPP 63: Too many error or warning messages
 
Would you kindly help me to correct the errors and solve the problem?
Posted 6-Mar-13 17:47pm
Comments
H.Brydon at 7-Mar-13 0:52am
   
These are all really basic errors. You should really get some programming help from somebody geographically close to you.
Matthew Faithfull at 7-Mar-13 4:47am
   
These look like the kind of errors you might get by recycling some working code but getting the order or locations of one or two #include statements wrong. You'll need to post at least an outline of the code, especially the parts where the errors are being reported and the top sections of the same files for anyone to be able to solve this.
Michael Haephrati at 7-Mar-13 14:51pm
   
To make it possible to help you, you must submit the source code (or part of it) and not only the error messages
Hawkfuture at 19-Mar-13 4:41am
   
Maybe you need a '#pragma once' in your xml.h

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
It is not clear - from the question you posted - what XML library you use for parsing. But is seems to me that it certainly is NOT a MSXML. Thus, my first advice is to use MSXML library.
 
Best Regrads,
J. K.
  Permalink  

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

  Print Answers RSS
0 Richard MacCutchan 269
1 Aajmot Sk 252
2 Marcin Kozub 235
3 Sergey Alexandrovich Kryukov 185
4 Praneet Nadkar 167
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100