Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
H.Brydon 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 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 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 19-Mar-13 4:41am    
Maybe you need a '#pragma once' in your xml.h

1 solution

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.
 
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