File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting error while extracting xml elements from SMO in java code

 
H. Singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic