1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Trying to create a dynamic temp table (dataset) from a DTD Schema? [OE10.1C]

Discussão em 'StackOverflow' iniciado por fdantas, Janeiro 30, 2015.

  1. fdantas

    fdantas Administrator Moderador

    I am trying to create a dynamic temp table and dataset from an external DTD file. I trying to simplify some xml code POST/GET and take advantage of the READ/WRITE XML functions with datasets.

    I referenced the documentation for READ-XMLSCHEMA and it seems to do what I need however, I keep getting errors and can't figure out what I am doing wrong.

    Here is a snippet

    DEFINE VARIABLE hTable AS HANDLE NO-UNDO.
    DEFINE VARIABLE retOK AS LOGICAL NO-UNDO.
    DEFINE VARIABLE cSourceType AS CHARACTER NO-UNDO.
    DEFINE VARIABLE cFile AS CHARACTER NO-UNDO.
    DEFINE VARIABLE lOverrideDefaultMapping AS LOGICAL NO-UNDO.
    DEFINE VARIABLE cFieldTypeMapping AS CHARACTER NO-UNDO.
    DEFINE VARIABLE cVerifySchemaMode AS CHARACTER NO-UNDO.

    CREATE TEMP-TABLE hTable.

    ASSIGN
    cSourceType = "file"
    cFile = "http://xml.cxml.org/schemas/cXML/1.2.025/InvoiceDetail.dtd"
    lOverrideDefaultMapping = NO
    cFieldTypeMapping = ?
    cVerifySchemaMode = ?.

    retOK = hTable:READ-XMLSCHEMA (cSourceType,
    cFile,
    lOverrideDefaultMapping,
    cFieldTypeMapping,
    cVerifySchemaMode).


    Does anyone know how I can achieve this using Openedge 10.1C.

    Thanks

    Continue reading...

Compartilhe esta Página