Hi Boris,

I really appreciate your help.  I am now back on this effort :)

Well, I have built xerces 3.0.1 on XP (3.0.1 because I use MSVC++ 6).

I have the supplied existing DOMPrint project that compiles and runs as a test 
that I really built xerces 3.0.1.

I thought just to get going I would add this new file (load-grammar-dom.cpp) to 
this project (since I know the project settings are correct).  I should 
probably rename main to something else so I don't have 2 :)

Unfortunately when I do this, the file will not compile.

Here are the first few errors:

--------------------Configuration: DOMCount - Win32 Release--------------------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
cl /G6 /MD /W3 /GX /O2 /Ob2 /I "..\..\..\..\..\src" /D "NDEBUG" /D "_CONSOLE" 
/D "WIN32" /D "_WINDOWS" /FR"..\..\..\..\..\Build\Win32\VC6\Release\obj/" 
/Fo"..\..\..\..\..\Build\Win32\VC6\Release\obj/" 
/Fd"..\..\..\..\..\Build\Win32\VC6\Release\obj/" /FD /c
   "C:\Documents and 
Settings\Admin\Desktop\xerces-c-3.0.1\samples\src\DOMCount\load-grammar-dom.cpp"

load-grammar-dom.cpp
C:\Documents and 
Settings\Admin\Desktop\xerces-c-3.0.1\samples\src\DOMCount\load-grammar-dom.cpp(50)
 : error C2321: syntax error : unexpected 
'DOMImplementationRegistry::getDOMImplementation'
C:\Documents and 
Settings\Admin\Desktop\xerces-c-3.0.1\samples\src\DOMCount\load-grammar-dom.cpp(53)
 : error C2061: syntax error : identifier 'impl'
C:\Documents and 
Settings\Admin\Desktop\xerces-c-3.0.1\samples\src\DOMCount\load-grammar-dom.cpp(59)
 : error C2061: syntax error : identifier 'parser'
(etc etc)

I know it must be something simple, but I'm a beginner.  Can someone tell me 
what I've done wrong?

thanks
tim



On 3/15/10 10:14 AM, "Boris Kolpackov" <[email protected]> wrote:

> Hi Timothy,
>
> Stone, Timothy M <[email protected]> writes:
>
>> Hm, I've given it some offort, but cannot seem to get it going.  I have a
>> .xsd and a .xml file, and I just want to test if the XML is compliant with
>> the XSD.
>
> Seeing that this is becoming sort of a FAQ (though without a good answer),
> I have written a little post plus included a couple of examples that you
> may find useful:
>
> http://www.codesynthesis.com/~boris/blog/2010/03/15/validating-external-schema
> s-xerces-cxx/
>
> Boris
>
> --
> Boris Kolpackov, Code Synthesis        http://codesynthesis.com/~boris/blog
> Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
> XML data binding for embedded systems  http://codesynthesis.com/products/xsde
> Command line interface to C++ compiler http://codesynthesis.com/projects/cli
>

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Tim Stone                                    _/
Research Programmer/Analyst                 _/
Institute for Defense Analyses             _/
4850 Mark Center Dr.                      _/
Alexandria, VA 22311                     _/
(703) 845-6822                          _/
    "There's no place like 127.0.0.1"  _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


Reply via email to