IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Enumerations

    Posted Thu April 04, 2002 08:17 AM

    Folks,

    I have a question related enumerations within a schema. In W3C schemas it is possible to define enumerations for a certain tag. is it possible to get this data via Tamino4J API and use this information within a program? If yes, how does it work?

    Thanks,
    Harald


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Enumerations

    Posted Thu April 04, 2002 12:32 PM

    TSD3 Schemas are stored in doctype “xs:schema” in collection “ino:collection”. Thus, they can be accessed via arbitrary queries, e.g.

    _xql=/xs:schema[//tsd:schemaInfo/@name=“yourSchema”]…

    However, you have to have a certain knowledge about the structure of your schema in order to be sure that you query the correct xs:enumeration elements.


    #API-Management
    #webMethods
    #Tamino