webMethods

webMethods

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.  jdom beta6 vs jdom beta8

    Posted Mon December 02, 2002 10:59 AM

    I’m using jdom model for xml files loaded by Tamino. But with jdom beta6 i get
    C:\project\myjdomfile.java:95: cannot resolve symbol
    symbol : method setAttribute (java.lang.String,java.lang.String)
    location: class org.jdom.Element
    generalUserInfo.setAttribute(“userID”, userID); (also userID is a String)

    Instead with jdom beta8 i get an rmi error (that have posted in their forum)…
    Have anyone experienced this problem?
    I’m sorry for the off topics post but this error is drive my crazy…

    THANKS
    @nto


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: jdom beta6 vs jdom beta8

    Posted Tue December 03, 2002 10:07 AM

    TaminoAPI4j is distributed with JDOM Beta 6. This version of JDOM does not include a

    Element.setAttribute(String,String)

    method.

    I have attached a small example of attribute handling that works with this version of JDOM and may help solve your problem.

    As far as I know, the only version of JDOM supported for use in the TaminoAPI4J is the one distributed with it (Beta6).

    HTH
    TestAttribute.java (1.55 KB)


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: jdom beta6 vs jdom beta8

    Posted Tue December 03, 2002 11:17 AM

    Just to add one more point:


    The next version of Tamino (v4) will support JDOM Beta8.


    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: jdom beta6 vs jdom beta8

    Posted Wed December 04, 2002 09:34 AM

    Hi Bill, thanks for the file you posted. This file works with the jdom beta6 (thats the one with tamino), but i get several error with jdom beta8 also if the error i get java.lang.NoSuchMethodError is on the jdom faq
    in the section:
    “I tried to use JDOM and get an error like this”
    I tried to do the things they explain, but i don’t resolve my problem.
    So i came back to jdomb6.
    Now my situation is this i have an xml file with an unset attribute (userID=“”) and i want now to set it. So i remove the attribute and then i insert the same attribute with some value (userID=“some user”). My code is:

    myElement.removeAttribute(“userID”);
    LinkedList attList = new LinkedList(); Attribute att = new Attribute(“userID”,“some user”);
    attList.add(att);
    myElement.setAttributes(attList);

    My question is the following: is it possible to update the attribute without delete before the attribute?
    Thanks4All
    @nto


    #webMethods
    #Tamino
    #API-Management


  • 5.  RE: jdom beta6 vs jdom beta8

    Posted Wed December 04, 2002 11:35 AM

    …No I don’t think this is possible without a setAttribute method.


    #Tamino
    #webMethods
    #API-Management