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

Dig deeper on XML and XML schema

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close