It seems from the way Stax is used you are already assuming where and when the tags come in for parsing. Is the XML file checked against the schema before using Stax to parse or does Stax do it for you? I am just wondering where would XML schema come in? I kinda new at this. thanks