Hi Christopher, For your first question the answer is that DOM level 3 will contain functionality to help you. But that part of DOM level 3 isn't here yet, so in the interim you're probably best to read the schema into a DOM of your own and figure out as best you can what type a given element corresponds to by looking that element up in the schema DOM tree and figuring out its type. Yes Xerces does store the information you need internally, but it's not necessarily an easy matter to use Xerces's internal representation.
As to your second question the answer is not in Xerces-1. This is one of the features we hope to have in Xerces-2. Hope that helps, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 416-448-3519, T/L 778-3519 E-mail: [EMAIL PROTECTED] Christopher Knorr <[EMAIL PROTECTED]> on 06/08/2001 09:23:31 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Getting Element Type? I have two questions. The first is how to I get access to what type an element should be when validating via schema? In the callbacks it does me little good to have the value of an element if I don't know what type the element is. Second, I would like to read a XML file via DOM and validate it via schema, adjust the values in the DOCUMENT, then revalidate the DOCUMENT against the schema, then write it out. I don't see a way that I can run the DOCUMENT through the parser, is there no way to validate on the information against a schema before you write it to a file? Thanks in advance, Christopher Knorr Software Engineer NOMOS Corporation ------------------------------------------------------------------------ Bungo's New Connected Workspace. The new way to exchange information and manage workgroups across systems, networks and locations. Learn more at http://www.bungo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]