• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Getting error while extracting xml elements from SMO in java code

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using WID 7.0. I have a Business Object(BO) which contains complextype array. I am trying to get this array into my java code. I am getting this array using NodeList. But in my java code when i use 'org.w3c.dom.Node' Node, it gives null in the output while getting xml elements. On printing the getClass on the Node, i get com.ibm.xslt4j.org.apache.rnm1.xml.dtm.ref.DTMAxisIterNodeList as the class name. The jar file related to this is inside WID7_WTE\runtimes\bi_v7\plugins folder. When i copy this jar to WID7_WTE\runtimes\bi_v7\lib folder, it gives me this error

com.ibm.xslt4j.org.apache.rnm1.xml.dtm.ref.DTMManagerDefault incompatible with com.ibm.xslt4j.org.apache.rnm1.xml.dtm.DTMManager.

The Business Object which i am using is below. I have to get termValues (marked in italic) values (like tableData, actualEarned and systemProposed) in java code (using Custom Java) and concate them with character(like 13#0#500)
<getDataForOnlineSchemeWorking>
<dealer>0000240415:RAKESH & CO</dealer>
<schemeId>AP.SO1502.HO.May 11.May 11 Apex Ultima Sch</schemeId>
<territory>00D1502002</territory>
<termValues>
<termValues>
<tableData>13</tableData>
</termValues>
<actualEarned>0</actualEarned>
<systemProposed>500</systemProposed>
</termValues>

<termValues>
<termValues>
<tableData>147.2</tableData>
</termValues>
<actualEarned>0</actualEarned>
<systemProposed>500</systemProposed>
</termValues>
<termValues>
<termValues>
<tableData>91.11</tableData>
</termValues>
<actualEarned>0</actualEarned>
<systemProposed>500</systemProposed>
</termValues>
<depotCode>1502</depotCode>
<schemeType>CN</schemeType>
<schemeTerm>All</schemeTerm>
</getDataForOnlineSchemeWorking>

Kindly help me out as i am running out of time. If possible, please write me a java code for doing it.
Thanks in advance.

Regards
Harish
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic