[xsd-users] how to parse class attributes and data types
Martin Landa
landa.martin at gmail.com
Fri Jan 8 10:12:18 EST 2016
Hi all,
I am total newbie in XSD parsing world, so sorry in advance for
beginner questions. Basically I am trying to write a program which
reads XML file and prints information about xsd class attributes and
their data types. Relevant generated part of the parser skeleton is
here [1]. The XML input can look like:
<ucastnici>
<uca id="0" jm="Ladislav" pr="Dlouhý" naz="Dlouhý Ladislav"
rc="7005051111" op_id="1089921611" email="dlouhan123 at seznam.cz"
tel="777777777" ul="Novákova" cd="123" ob="Hradec Králové" psc="50002"
/>
<uca id="0" jm="Jiří" pr="Dlouhý" naz="Dlouhý Jiří"
rc="7005061111" op_id="1089925611" email="dlohir at email.cz"
tel="666666666" ul="Novákova" ob="Hradec Králové" psc="50002" />
</ucastnici>
My program should print:
1) number of items - in this case 2
2) and item attributes and their types (based on xsd definition).
id -> participantIdAttrType
jm -> stringType
pr -> stringType
...
psc -> postCodeType
Is it possible? Thanks in advance for any kind of pointers! Martin
[1] http://geo102.fsv.cvut.cz/~landa/tmp/vfp_3.1-pskel.h
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the xsd-users
mailing list