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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Uploading XML-data into a higher level node ???

  • 1.  Uploading XML-data into a higher level node ???

    Posted 11/14/01 11:05 AM

    Hi,

    is it possible to upload new documents into a collection and place the information somewere else than as a child of the collection-root ?

    I want to upload chapters of a documentation into the db and I want the XML for chapter 4.1.3 to be placed within chapter 4.1 and not as a root node. Can anybody help me ?

    Thanx in advance,
    Christofer Dutz


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Uploading XML-data into a higher level node ???

    Posted 11/15/01 05:10 PM

    Hi Christofer,

    I think that you would need nested collections, which isn’t possible at the moment (at least, as far as I know).

    It is possible to update an existing “book” document to insert the “chapter” document, but I think this is slightly different to your intended modelling. (I guess that you want the “chapter” to be a separate doctype.)

    Although inserting chapters into the book documents appears to “bury” them, it is still possible to retrieve chapters as distinct objects, with an XPath query like:
    /book[@title=‘Huckleberry Finn’]/chapters

    (Assuming that the book doctype has a sub-element called “chapters”, this would return the chapters for Huck Finn.)

    You could also make the relationship some other way, such as: store “book” documents in the collection, then add XLink references from book to the “chapter” documents.

    Hope that helps some.
    Trevor.


    #API-Management
    #Tamino
    #webMethods