Is there any way to get the type of a particular tag after schema validation from the schema validator? I mean, without going through the schema definition again, can we access this information from the validator? If we map this schema-instance relationship to the oop scenario, a schema is almost equivalent to class and the XML instance is equivalent to object. What about a system which will tie type information to the XML tags (after validation)? I mean, a 'reflection' sort of thing?
W3C XML Schema includes the notion of a PSVI - Post Schema Validation Infoset. It allows type information from the schema to be annotated onto the structure passed to the application. Note that the PSVI is controversial see:
This Content Component encountered an error
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.