Problem solve Get help with specific problems with your technologies, process and projects.

Tying type information to XML tags after validation

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 was last published in November 2003

Dig Deeper on Development implications of microservices architecture



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.