Ask the Expert

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?

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: