Appreciate the response. I looked at that as well. XML data binding
unfortunately does not work with the architecture we have. I need a a
very generic way to identify the type of element/attribute
S. Gross wrote:
Eswar Bala schrieb:
I was wondering is there a way (in Xerces API), given an xml and the
xsd, get the type of an attribute (integer,string,...)
thanks
Eswar
I had the same problem, so i decided to use xsd (XML data-binding from
CodeSynthesis)
It is much easier to handle than the Xerces API. types defined in your
XML-scheme are translated to native C++ (or STL) types.
Just take a look:
http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.5
About Xerces API i don't know very much, unfortunately.