Q

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:
http://lists.w3.org/Archives/Public/www-tag/2002Jun/0085.html.
This was last published in November 2003

Dig Deeper on XML and XML schema

PRO+

Content

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.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close