aspose file tools*
The moose likes BPM and Workflow and the fly likes Getting error while extracting xml elements from SMO in java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BPM and Workflow
Bookmark "Getting error while extracting xml elements from SMO in java code" Watch "Getting error while extracting xml elements from SMO in java code" New topic
Author

Getting error while extracting xml elements from SMO in java code

H. Singh
Greenhorn

Joined: Mar 18, 2013
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error while extracting xml elements from SMO in java code