[xsd-users] Same simple files

Boris Kolpackov boris at codesynthesis.com
Thu Dec 20 08:30:36 EST 2007


Hi Mirek,

Miroslaw Madej <dabee21 at gmail.com> writes:

> But still I don't understand why with parsing enabled program throws that
> my sample xml file don't  have any of declarated in schema elements and
> atributes.

See Q 2.1 in the C++/Tree Mapping FAQ:

http://wiki.codesynthesis.com/Tree/FAQ


> So now I'm looking for simple program where I can give it xml and xsd
> files and check If my xml file is good. (I'm running Gentoo Linux )

You can use the DOMCount example that comes with Xerces-C++. I tried
to run it on your sample XML and got an error saying that the windows-
1250 encoding (used in your XML) is not supported by my build. I suggest
that you convert your XML to something more portable (e.g., UTF-8)
or build Xerces-C++ with ICU to get support for this encoding.


Boris




More information about the xsd-users mailing list