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
Expand all | Collapse all

Schemaless documents

  • 1.  Schemaless documents

    Posted Fri August 29, 2003 12:37 AM

    Hi!

    I’m new to Tamino, and using the latest XML Starter Kit (4.1.4.1). I’m trying to batch insert a bunch of documents using my own java program and the Java API (or possibly the xml:db API).

    I’m faced with the following error:

    INOXDE7697

    Could not create schemaless doctype in collection ino:etc.

    Why does this limitation exist? Is there any work-around? For example, can I declare a “catch-all” schema using xs:any?

    Also, I need to set my own ID to documents, so I
    can retrieve them easily. How can I do that?

    Thanks!
    Julien


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Schemaless documents

    Posted Fri September 12, 2003 07:39 PM

    Hello Julien,
    the error message is very misleading.
    It is not possible to insert these two documents:

    <p1:r1 xmlns:r1=“URL1”/>
    <p1:r1 xmlns:r1=“URL2”/>



    The explanation is somehow better:
    INOXDE7697

    Could not create schemaless doctype in collection ino:etc.

    Explanation
    It is not possible to have two schemaless doctypes in collection ‘ino:etc’ with the same lexical QName but different namespace of the root element.

    Action
    A workaround is to change the namespace prefix of the root element of the first instance to be inserted in a new implicit doctype.


    Best regards
    Walter


    #Tamino
    #API-Management
    #webMethods