Click here to Skip to main content
15,886,519 members

xml parsing using c++

chinnu S asked:

Open original thread
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?
Tags: C++, C

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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