IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: greg.soulsby
About
User Name: greg.soulsby
Forum Rank: Newbie
Real Name:
Location London
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, August 20, 2009
Last Visit: Thursday, August 20, 2009 9:14:28 AM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: How to process a schema in Java?
Posted: Thursday, August 20, 2009 9:14:12 AM
I have generated the Java code for my XML Schema. I would now like to
a) Loop through each node in the schema
b) process each of the nodes depending on what type it is - e.g. Group or Element

What is the Java code to

a) loop through all nodes?
b) determin if a node is an Element or a Group
c) If it is a group, what type it is? e.g. sequence or choice
d) If it is an Element, what is the primative type - date, int etc

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.