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
  • 1.  Changing XML Schema Dynamically

    Posted 09/28/04 06:09 PM

    I need to insert and delete nodes from an XML Schema dynamically. I have achvied deleting nodes but after deleting I cant insert this new XML Schema into db. In my code
    Element element = (Element) schemaXMlObject.getElement();
    schemaXMlObject is the XMLObject for schema assume I deleted a node from element…My question how can i set this new element to schemaXMlObject again. I mean after changing the DOM element how can i set it to a XML Object


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Changing XML Schema Dynamically

    Posted 09/29/04 11:55 AM

    Hi

    sounds like you are dealing with a problem regarding usage of a DOM-like API.
    Which one do you use?

    Standard DOM offers the following methods in class org.w3c.dom.Node:
    appendChild(Node)
    insertBefore(Node, Node)

    JDOM offers the following methods in class org.jdom.Element:
    addContent(Content)
    addContent(int, Content)

    Hope this helps!
    Uli


    #Tamino
    #webMethods
    #API-Management