Unable to retrieve data from XML Type

Hi All,
I have table which has Column of type XMLType
XML Data is loaded in the table.
But when iam trying to extract not able to retrieve the data
Following is the select query i am using
SELECT CL.XMLDATA.EXTRACT('/ServiceType/entityName/text()').getStringVal() "entityname" FROM CL_DATA_SERVICE_TEMPLATE CL;
Any help / pointer will help me a lot... Thanks in advance
Sample XML File:
<?xml version="1.0" encoding="WINDOWS-1252"?>
<ServiceType xmlns="http://www.bmiasia.com/tBos/service_1_0">
<entityName>bmiasia.app.irb.servicetemplate12</entityName>
<systemVersion>4</systemVersion>
<displayName>
<bundle />
<key>AG-EVC</key>
</displayName>
<description>AG-EVC GROUP: AG-EVC</description>
<category entityName="bmiasia.app.service.category.ServiceRootCategory.AG_-_EVC_Services">
<operation>ADD</operation>
</category>
<entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_PRODUCT_ID">
<type entityName="1"></type>
</entityMetaInfo>
<entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_GL_PRODUCT_CODE">
<type entityName="2"></type>
</entityMetaInfo>
<entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_GL_PROFIT_CENTRE">
<type entityName="3"></type>
</entityMetaInfo>
<entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_SERVICE_CODE">
<type entityName="4"></type>
</entityMetaInfo>
<entityMetaInfo name="bmiasia.app.irb.servicetemplate12.RSP_EU_CUST_REF">
<type entityName="5"></type>
</entityMetaInfo>
<entityMetaInfo name="irbPkClass">
<type entityName="com.convergys.geneva.j2ee.product.ProductPK"></type>
</entityMetaInfo>
<entityMetaInfo name="irbId">
<type entityName="12"></type>
</entityMetaInfo>
<extensionProperty name="hasAddress" value="true"></extensionProperty>
<parent>
<itemkey>AllServiceTemplate</itemkey>
<name>AllServiceTemplate</name>
<targetEntity entityName="bmiasia.app.service.template.AllServiceTemplate"></targetEntity>
<number>0</number>
</parent>
<group>NORMAL</group>
<siu>
<itemkey>L2_OPTION</itemkey>
<operation>ADD</operation>
<name>L2_OPTION</name>
<required>true</required>
<source>INTERNAL</source>
<displayName>
<key>L2 Option</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>L3_OPTION</itemkey>
<operation>ADD</operation>
<name>L3_OPTION</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>L3 Option</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>QPEVPL_SERVICE_ID</itemkey>
<operation>ADD</operation>
<name>QPEVPL_SERVICE_ID</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>QP EVLP Service ID</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>QPEVPL_LAG_ID</itemkey>
<operation>ADD</operation>
<name>QPEVPL_LAG_ID</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>QP EVLP LAG ID</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>CO_NAME</itemkey>
<operation>ADD</operation>
<name>CO_NAME</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Aggregation Layer / Co Layer</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_SALUTAION</itemkey>
<operation>ADD</operation>
<name>INSTALL_SALUTAION</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installation Salutation</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_LASTNAME</itemkey>
<operation>ADD</operation>
<name>INSTALL_LASTNAME</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installlation Last Name</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_FIRSTNAME</itemkey>
<operation>ADD</operation>
<name>INSTALL_FIRSTNAME</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installation First Name</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_TELEPHONE</itemkey>
<operation>ADD</operation>
<name>INSTALL_TELEPHONE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installation Telephone</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_MOBILE</itemkey>
<operation>ADD</operation>
<name>INSTALL_MOBILE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installation Mobile</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_EMAIL</itemkey>
<operation>ADD</operation>
<name>INSTALL_EMAIL</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installlation Email</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>INSTALL_NOTIFICATION</itemkey>
<operation>ADD</operation>
<name>INSTALL_NOTIFICATION</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Installation Notification</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_SALUTAION</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_SALUTAION</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Salutation</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_LASTNAME</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_LASTNAME</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Last Name</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_FIRSTNAME</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_FIRSTNAME</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical First Name</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_TELEPHONE</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_TELEPHONE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Telephone</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_MOBILE</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_MOBILE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Mobile</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_EMAIL</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_EMAIL</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Email</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>TECHNICAL_NOTIFICATION</itemkey>
<operation>ADD</operation>
<name>TECHNICAL_NOTIFICATION</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Operational / Technical Notification</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>SERVICE_ACTIVATION_PERIOD</itemkey>
<operation>ADD</operation>
<name>SERVICE_ACTIVATION_PERIOD</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Service Activation Period</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>REJECT_CODE</itemkey>
<operation>ADD</operation>
<name>REJECT_CODE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Rejection Reason</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>APPLICATION_ACCEPTED</itemkey>
<operation>ADD</operation>
<name>APPLICATION_ACCEPTED</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Application Accepted</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.BooleanCheckSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>APPLICATION_REJECTED</itemkey>
<operation>ADD</operation>
<name>APPLICATION_REJECTED</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Application Rejected</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.BooleanCheckSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>APPROVAL_CODE</itemkey>
<operation>ADD</operation>
<name>APPROVAL_CODE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Approval Code</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>PROCESSED_BY</itemkey>
<operation>ADD</operation>
<name>PROCESSED_BY</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Processed By</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>ACTUAL_RFS_DATE</itemkey>
<operation>ADD</operation>
<name>ACTUAL_RFS_DATE</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Actual RFS Date</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.DateSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>DISCLAIMER</itemkey>
<operation>ADD</operation>
<name>DISCLAIMER</name>
<required>false</required>
<source>INTERNAL</source>
<displayName>
<key>Disclaimer</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>NC_PRODUCT_ID</itemkey>
<operation>ADD</operation>
<name>NC_PRODUCT_ID</name>
<required>false</required>
<source>EXTERNAL</source>
<displayName>
<key>NC Product ID</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>NC_GL_PRODUCT_CODE</itemkey>
<operation>ADD</operation>
<name>NC_GL_PRODUCT_CODE</name>
<required>false</required>
<source>EXTERNAL</source>
<displayName>
<key>NC GL Product Code</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>NC_GL_PROFIT_CENTRE</itemkey>
<operation>ADD</operation>
<name>NC_GL_PROFIT_CENTRE</name>
<required>false</required>
<source>EXTERNAL</source>
<displayName>
<key>NC GL Profit Centre</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>NC_SERVICE_CODE</itemkey>
<operation>ADD</operation>
<name>NC_SERVICE_CODE</name>
<required>false</required>
<source>EXTERNAL</source>
<displayName>
<key>EUC ID</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
<scope>PRODUCT</scope>
</siu>
<siu>
<itemkey>bmiasia.app.irb.servicetemplate54</itemkey>
<operation>ADD</operation>
<name>bmiasia.app.irb.servicetemplate54</name>
<required>false</required>
<source>INTERNAL</source>
<equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
<displayName>
<key>CIR Per 250Mbps CoS A</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
<scope>SERVICE</scope>
<outSvcAttr>true</outSvcAttr>
</siu>
<siu>
<itemkey>bmiasia.app.irb.servicetemplate55</itemkey>
<operation>ADD</operation>
<name>bmiasia.app.irb.servicetemplate55</name>
<required>false</required>
<source>INTERNAL</source>
<equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
<displayName>
<key>CIR Per 250Mbps CoS B</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
<scope>SERVICE</scope>
<outSvcAttr>true</outSvcAttr>
</siu>
<siu>
<itemkey>bmiasia.app.irb.servicetemplate56</itemkey>
<operation>ADD</operation>
<name>bmiasia.app.irb.servicetemplate56</name>
<required>false</required>
<source>INTERNAL</source>
<equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
<displayName>
<key>CIR Per 250Mbps CoS C</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
<scope>SERVICE</scope>
<outSvcAttr>true</outSvcAttr>
</siu>
<siu>
<itemkey>bmiasia.app.irb.servicetemplate57</itemkey>
<operation>ADD</operation>
<name>bmiasia.app.irb.servicetemplate57</name>
<required>false</required>
<source>INTERNAL</source>
<equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
<displayName>
<key>CIR Per 250Mbps CoS D</key>
</displayName>
<type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
<mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
<scope>SERVICE</scope>
<outSvcAttr>true</outSvcAttr>
</siu>
<defaultWorkflowInfo>
<workflow entityName="bmiasia.app.irb.servicetemplate12_Workflow"></workflow>
<cancelFlow entityName="bmiasia.app.irb.servicetemplate12_CancelFlow"></cancelFlow>
</defaultWorkflowInfo>
<source>EXTERNAL</source>
<additionalServices entityName="bmiasia.app.irb.servicetemplate54">
<operation>ADD</operation>
<name>CIR Per 250Mbps CoS A</name>
</additionalServices>
<additionalServices entityName="bmiasia.app.irb.servicetemplate55">
<operation>ADD</operation>
<name>CIR Per 250Mbps CoS B</name>
</additionalServices>
<additionalServices entityName="bmiasia.app.irb.servicetemplate56">
<operation>ADD</operation>
<name>CIR Per 250Mbps CoS C</name>
</additionalServices>
<additionalServices entityName="bmiasia.app.irb.servicetemplate57">
<operation>ADD</operation>
<name>CIR Per 250Mbps CoS D</name>
</additionalServices>
<defaultWorkflowDefinition>
<installSoEntityName>bmiasia.app.template.serviceorder.Installservicetemplate12SO</installSoEntityName>
<changeSoEntityName>bmiasia.app.template.serviceorder.Modifyservicetemplate12SO</changeSoEntityName>
<removeSoEntityName>bmiasia.app.template.serviceorder.Removeservicetemplate12SO</removeSoEntityName>
<workflow>
<entityName>bmiasia.app.irb.servicetemplate12_Workflow</entityName>
</workflow>
<cancelFlow>
<entityName>bmiasia.app.irb.servicetemplate12_CancelFlow</entityName>
</cancelFlow>
</defaultWorkflowDefinition>
</ServiceType>

Hi !!
Now when iam extracting the data for the above xml, using the below query
SELECT extractvalue(VALUE(p),'/itemkey/*') Name, extractvalue(VALUE(p),'/required/*') Required FROM CL_DATA_SERVICE_TEMPLATE w, TABLE(XMLSEQUENCE(EXTRACT(xmldata,'/ServiceType/siu','xmlns="http://www.bmiasia.com/tBos/service_1_0"'))) p
I am expecting the output to be something like below
Name | Required
L2_OPTION | true
L3_OPTION | false
but iam getting the required number of rows but all blank
Lets take it as O/P should be 20 Rows, then iam getting 20 Rows.... But all are blank
What is wrong in the query ?
Can some one point it out

Similar Messages

  • Error :Unable to retrieve data from iHTML servlet for Request2 request

    I open bqyfile to use HTML in workspace.
    When I export report to excel in IR report.
    Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
    And I can not open any bqyfiles in workspace.
    Anybody gat the same question? Thanks~

    Hi,
    This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
    http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
    Hope this helps..

  • Retrieving data from XML containing namespaces?

    Hi,
    I am using Yahoo Local Search Service which returns the XML
    response. I want to retrieve data from the XML that I received. I
    stuck at this point and unable to retrieve the response in to
    datagrid. Does the namespaces in XML matter while retrieving data?
    The response XML is as follows
    <ResultSet xsi:schemaLocation="urn:yahoo:lcl
    http://api.local.yahoo.com/LocalSearchService/V3/LocalSearchResponse.xsd"
    totalResultsAvailable="224" totalResultsReturned="1"
    firstResultPosition="1" xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns="urn:yahoo:lcl">
    <ResultSetMapUrl>
    http://maps.yahoo.com/broadband/?q1=San+Jose%2C+CA+95112&amp;tt=starbucks&amp;tp=1</Result SetMapUrl>
    <Result id="21590724">
    <Title>Starbucks</Title>
    <Address>145 W Santa Clara St</Address>
    <City>San Jose</City>
    <State>CA</State>
    <Phone>(408) 288-8803</Phone>
    <Latitude>37.335236</Latitude>
    <Longitude>-121.892765</Longitude>
    <Rating>
    <AverageRating>4</AverageRating>
    <TotalRatings>3</TotalRatings>
    <TotalReviews>2</TotalReviews>
    <LastReviewDate>1198029377</LastReviewDate>
    <LastReviewIntro>My previous review had incorrect
    data. That was not true, I am sorry, I didn't know. As far as food
    and drink goes, Starbucks is pretty good.</LastReviewIntro>
    </Rating>
    <Distance>0.96</Distance>
    <Url>
    http://local.yahoo.com/info-21590724-starbucks-san-jose</Url>
    <ClickUrl>
    http://local.yahoo.com/info-21590724-starbucks-san-jose</ClickUrl>
    <MapUrl>
    http://maps.yahoo.com/maps_result?q1=145+W+Santa+Clara+St+San+Jose+CA&amp;gid1=21590724</M apUrl>
    <BusinessUrl>
    http://www.starbucks.com/</BusinessUrl>
    <BusinessClickUrl>
    http://www.starbucks.com/</BusinessClickUrl>
    <Categories>
    <Category id="96926219">Cafes</Category>
    <Category id="96926236">Restaurants</Category>
    <Category id="96926169">Coffee Houses</Category>
    </Categories>
    </Result>
    </ResultSet>
    The code that I am writing to get Title and Address is as
    follows.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    backgroundAlpha="0" backgroundColor="#FFFFFF">
    <mx:HTTPService
    id="weatherService"
    url="
    http://local.yahooapis.com/LocalSearchService/V3/localSearch"
    resultFormat="e4x"
    result="resultHandler(event);"/>
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var myResult:XML ;
    private var temp:XMLNode;
    private var list:ArrayCollection;
    public function requestWeather():void {
    weatherService.cancel();
    var params:Object = new Object();
    params.appid = "YahooDemo";
    params.query = "starbucks";
    params.zip = "95112";
    params.results = "1"
    weatherService.send(params);
    public function resultHandler(event:ResultEvent):void {
    myResult = XML( event.result);
    temp = myResult.Result;
    list = ArrayCollection(event.result);
    ]]>
    </mx:Script>
    <mx:Form width="400">
    <mx:FormItem label="Get Local Data">
    <mx:Button label="Get Data"
    click="requestWeather();"/>
    </mx:FormItem>
    <mx:FormItem label="Address">
    <mx:Text text="{myResult.Result.Address}"/>
    </mx:FormItem>
    <mx:FormItem label="Title">
    <mx:Text text="{myResult.Result.Title}"/>
    </mx:FormItem>
    </mx:Form>
    <mx:DataGrid
    dataProvider="{myResult.Result}"
    x="80" y="141" width="262" height="92"
    id="shippingOptionsList" editable="false" enabled="true">
    <mx:columns>
    <mx:DataGridColumn headerText="Title" dataField="Title"
    />
    <mx:DataGridColumn headerText="Address"
    dataField="Address" />
    </mx:columns>
    </mx:DataGrid>
    <mx:Label text="Response as it is"/>
    <mx:TextArea id="resultFld" text="{myResult}" width="400"
    height="152"/>
    </mx:Application>
    Can somebody help me to find where I am going wrong?
    Thank you
    -Pranay

    Hi Pranay,
    It looks like your problem is indeed to do with the XML
    namespace being used.
    Try adding this line after the import statements:
    namespace yahoo = "urn:yahoo:lcl";
    (This is the namespace URI defined in the returned XML)
    The result handler should then look like this:
    public function resultHandler(event:ResultEvent):void {
    use namespace yahoo;
    myResult = XML( event.result);
    temp = myResult.Result;
    list = ArrayCollection(event.result);

  • Unable to retrieve data from a Associative Array (?)

    Hi!!!! :)))
    i've a problem!!!
    this is the oracle's code:
    Package GEST_REPORT
    IS
    type rec_url is record(
    TIBCDCON TBISD_30.TIBCDCON%TYPE,
    etc...
    SETDEL VARCHAR2(10)
    type tab2 is table of rec_url index by binary_integer;
    FUNCTION MAIN_SELECT
    ( CPLAS IN VARCHAR2)
    RETURN tab2;
    END;
    ...and a java code:
    String storedProcedure = "{? = call GEST_REPORT.MAIN_SELECT(?)}";
    String result = "";
    try{
    if (connection != null) {
    CallableStatement callableStatement = null;
    callableStatement = preprepareCall(storedProcedure);
    // preparo parametri di input.
    callableStatement.setString(2, "OM");
    callableStatement.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.ARRAY, "tab2");
    and so on...
    In the last line of code throws an 'invalid name pattern'
    or
    "ORA-21700: object does not exist or is marked for delete"
    if registerOutParameter(1, oracle.jdbc.driver.OracleTypes.ARRAY, "ISDSV.GEST_REPORT").
    Where TAB2: IS THE MY ARRAY (OR NESTED TABLE?);
    GEST_REPORT: THE NAME OF PACKAGE;
    ISDSV: THE USER.
    do u have suggestion for retrieve data from TAB2 in JAVA??
    THKS!!!!!!

    Hi
    Use fully qualified type name: schema_name.type_name. For your case that would be "ISDSV.tab2"
    Cherrs :))

  • Unable to retrieve data from a nested table in Oracle 8i from JSP

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

  • How to retrieve data from XML

    I have a scenario where I need to read data from database of xmltype (data type)
    Table Structure :
    Create table Ex_Tb (id number(30),emp_data XMLType );
    I can save xml content in database,
    Sample
    insert into Ex_Tb values( 1, xmltype ('<?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata>'));
    Data inserted .
    When retrieved from DB I see the data in the generated BO as given below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ExteOutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/pcbpel/adapter/db/Exte file:/C:/JDeveloper/mywork/Application1/Project1/xsd/Exte.xsd" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/Exte">
    <ExteOutput>
    <SDD_XML_REQ_DATA_GETCLOBVAL__><?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata></SDD_XML_REQ_DATA_GETCLOBVAL__>
    </ExteOutput>
    </ExteOutputCollection>
    My Question :
    1. How to retrive values of individual tags contained within the embedded XML so that it can be mapped to a BO?
    Basically I would like to map uniqueId, name,age,city from xml to a BO.
    Rgds,
    Krishna

    Hi Krishna,
    I'm not sure but are you selecting the data from the XMLType column as given in the section Using XMLType in an SQL Statement in the below doc?
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96620/xdb04cre.htm#1030582
    Regards,
    Neeraj Sehgal

  • Unable to retrieve data from repository

    Hi All
    I am new to ATG. I want to create small application where I need to retrieve all the user's first name and last name and display that in index.jsp. I am using MySQL database server. Till date I have created one userRepository.xml file which contains table name and all the column name. One UserRepository.properties file which contains following code.
    $class=atg.adapter.gsa.GSARepository
    definitionFiles=/repositories/userRepository.xml
    repositoryName=UserRepository
    Now in index.jsp page I am using following code to display user details.
    <dsp:droplet name="/atg/dynamo/droplet/RQLQueryForEach">
         <dsp:param name="repository" value="/test/services/userRepository"/>
         <dsp:param name="itemDescriptor" value="users"/>
         <dsp:param name="queryRQL" value="ALL"/>
              <dsp:oparam name="outputStart">
                   <table width=100% cellpadding=0 cellspacing=0 border=0>
              </dsp:oparam>
              <dsp:oparam name="output">
                   <tr><td>
                             <dsp:valueof param="element.firstName"/> 
                             <dsp:valueof param="element.lastName"/>
                   </td></tr>
              </dsp:oparam>
              <dsp:oparam name="outputEnd">
                   </table>
              </dsp:oparam>
              <dsp:oparam name="error">
                   *** Error occurred *** <p><p>
                   <dsp:valueof param="rqlException"/>
              </dsp:oparam>
    </dsp:droplet>
    I am getting error like "das_id_generator does not exist". Similiarly I am getting error for other table which is not there in my schema.
    So Please tell me how to resolve this issue and exact procedure to retrieve the data from repository.
    Thanks in Advance
    Prasanna

    Hi Shaik,
    when i run the following command:
    startSQLRepository -m Store.Storefront -export user user.xml -repository/atg/dynamo/service/SampleRepositoryTest/SampleRepositoryTest
    error log:
    **** Error Thu Mar 02 13:51:15 PDT 2012 1325519475432 / atg / dynamo / service / IdGenerator --- CONTAINER: atg.service.idgen.IdGeneratorException; SOURCE: CONTAINER: atg.service.idgen.IdGeneratorException: atg . service.idgen.IdGenResources-> ERR_QUERY_TABLE: Unable to query table "das_id_generator." Please make sure That table exists and is accessible before starting this service.; SOURCE: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.das_id_generator' does not exist
    which means this error?
    Why adds "test." on table name?
    how to proceed??
    tanks.

  • How to retrieve data from xml file into obiee reports

    Hi all,
    I've got a situation here. A xml file is stored as blob in oracle database table. Now i need to retrieve data/info from that xml file into obiee reports. How am i supposed to proceed with this ?

    I will go for a table function:
    http://gerardnico.com/wiki/database/oracle/table_function
    In two words, you can create a function that behave as a table. Then you create a function to pick up your xml, you parse it and you send back the rows.
    I know that Oracle has also a library for XML files but I never use it until now.
    Success
    Nico

  • Retrieve data from XML

    Hello,
       I am new to this forum.  I have an XMl document as below:
    <gallery>
                <image>
                <title>pic1</title>
                <text> txt1 <text>
               </image>
              <image>
                <title>pic2</title>
                 <text> txt2 <text>
               </image>
    </gallery>
    I want to fetch the value of "text" node and print it.Can anyone help?
    -Akshay

    Hello,
        Thanks for your reply.
         I need to retireve the image soruce and image text dynamically from xml. For that I am trying to read the XML using Http Request and then in result handler I am getting it in Array Collection: but afterwards I am strugelling to get individual element from array collection: here's my code:
    <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.rpc.events.FaultEvent;
                 import mx.rpc.events.ResultEvent;
                 [Bindable]
                 public var galleryData:ArrayCollection;
                 protected function  resultHandler(event:ResultEvent):void
                     //getting XML in array collection
                       galleryData = event.result.gallery.images;
                   //tried getItemAt (index) but it's not working not sure how to progress further
                 // fault event handler for employeeService HTTPService call
                 private function faultHandler(event:FaultEvent):void {
                     // Add code here for what to do when there is an error  retrieving data
             ]]>
        </fx:Script>
    <fx:Declarations>   
         <mx:HTTPService id="galleryService"
                         url="data/gallery.xml"
                         result="resultHandler(event)"
                         fault="faultHandler(event)"/>
    </fx:Declarations>  
    and I am  struggeling to get individual values from that array collection. tried getItemAt (index) but it's not working not sure how to progress  further
    -Akshay

  • Retrieve data from XML file

    How can I import a XML file into pdf doc and how can I retrieve its data as string, in order to populate a drop down List, without using XML Schema Data Connection.
    Thank you for your time!

    First of all you cannot load an XML file in Designer without Reader Extensions, either using xfa.host.importData or any or the import methods in AcroForm javascript. Also, since the XML objects where not available in 6, you cannot parse an XML file in anything other than version 7 of Reader/Acrobat.
    So, if you do have Reader 7 (Reader-Enabled) or Acrobat 7, you could use the Attachment object to load the XML file and in turn use the XML object to parse and extract the XML data.
    For example, placing the following code on a button will prompt the user to select an XML data file and manually parse it for data.
    if (app.viewerVersion >= 7)
    event.target.importDataObject("XMLData");
    var oData = event.target.getDataObjectContents("XMLData");
    var sData = util.stringFromStream(oData);
    var oXML = XMLData.parse(sData, true);
    event.target.removeDataObject("XMLData");
    // Populate Fields
    TextField3.rawValue = oXML.MyField1.value;
    TextField4.rawValue = oXML.MyField3.value;
    TextField1.rawValue = oXML.MyField2.value;
    else {
    app.alert("Acrobat 7.0 or later is required");
    My external XML file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <MyProperties>
    <MyField1>A</MyField1>
    <MyField2>B</MyField2>
    <MyField3>C</MyField3>
    </MyProperties>
    Once the data is parsed, you can access it through the same hierarchy as Designer. It actually generates an XFAObject to represent each data node within the XML Document.
    The other thing to note is that you cannot load data automatically from an init or calc event. You MUST have some user interaction (i.e. on the click event of a button)

  • Retrieve data from xml attributes

    Hi
    I used oracle xml function to query the database and return the following xml data.
    <Item    item1="1000"  item2="A"  item3="B"  />Now i would like to extract the value of item1 attribute from the above xml data. I am not sure how to retrieve the attribute data directly from this root element "Item". Any suggestion is highly appreciated.

    I resolved it myself .
    Thanks.

  • To retrieve data from xml datatype

    oracle.sql.OPAQUE@4e1a77
    This is the XML data that is stored in the field of oracle XML dataype .So from this oracle.sql.OPAQUE@4e1a77 ..how can i retrieve the actual data

    DO NOT duplicate your questions.
    Locking this thread

  • ERROR- Unable to retrieve data from SAP systems

    We have installed SAP Netweaver Gateway (NWGW) Tool plugin in mac os.
    When we are trying to browse the services we are able to see only SDATA services in NWGW plugin.
    So we have changed the service from ODATA to SDATA in gateway system. We are able to see the services in the NWGW plugin.
    When we are trying to get the response in xcode by using the following code,
    SDMConnectivityHelper *supConn = [[SDMConnectivityHelper alloc] init];
         LiteSUPUserManager *supUserManager = [supConn activateSUPModeWithHost:@"xxxx" andSUPPort:xxxx andSUPFarmId:@"0" andAppId:@"xxxx"];
         [supConn registerSUPUser:@"xxxx" andPassword:@"xxxx" andSecurityConfigName:@"Basic" andSUPUserManager:supUserManager];
         0262Service *service = [[0262Service alloc] init];
         [service setServiceDocumentUrl:[LiteSUPAppSettings getApplicationEndPoint]];
    NSMutableArray *personalDataArray = [service get02PDWithData:[[supConn executeBasicSyncRequestWithQuery:service.02PDQuery] responseData] error:nil];
    I am getting the following error
    Returned Query URL: /02PD
    ERROR :: SUPJsonException:expected string, found 140/Location:-[SUPRequest startSynchronous] + 1159
    ERROR :: 400:Bad request/Location:-[SUPRequest startSynchronous] + 1184
    Exception during parsing response data. Error: The document is not a valid data document
    <?xml version="1.0" encoding="utf-8"?> <error ><message xml:lang="en">Malformed URL recieved :no protocol: /02PD</message> </error>
    When I am trying to print the end point. I am getting null value
    Please provide us the pointers to resolve the issue

    Sounds like an SAP problem.

  • 6024E - Error 10846: Unable to retrieve data fast enough error?

    I am using a PCMCIA DAQ 6024E on a Dell Latitude C610 (1Ghz) - I'm trying to do Double buffered analog acquisition over 4 channels
    Whenever I try to run the application (VC++6) i get "Error 10846 - Unable to retrieve data from the backgound acquisition buffer fast enough..."
    I have tried the sample program "Double-Buffered Asynchronous Scanning in Microsoft Visual C++ with NI-DAQ" downloaded from the NI website - has the same result: Error 10846...
    I just need to sample 4 channels at 1kHz continuously, extracting the data every 250ms max - are the following settings sensible:
    i16 iChan = 0;
    i16 iNumChans = 4;
    u32 ulCount = 2000
    i16 iUnits = 0;
    f64 dSampRate = 4000.0;
    f64 d
    ScanRate = 1000.0;
    static i16 piBuffer[2000] = {0};
    static i16 piHalfBuffer[1000] = {0};
    Tried loads of different variations - as well as stopping all other apps running and removing everything from inside the acquisition loop - don't know what to try next. Can anyone help? Cheers!

    Hi,
    The error you are getting is due to the fact that your application is not emptying the PC buffer fast enough so new data overwrites old data before they are copied to the application allocated memory. You can try increasing the buffer size and/or reducing the Scan rate, whichever possible.
    Regards,
    RamziH.

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

Maybe you are looking for

  • Desktop in Trash involuntarily and I can't seem to get it back out.

    Erm ok... am not rightly sure what has just happened. I was unraring some files... I went to empty my trash... and then before I knew it... the files I was unraring were in my trash and I was getting the error message that some of my files were in us

  • Error: NDMP operation failed due to media error

    I scheduled a RMAN backup job on oracle 11g EM and sometime it failed when running datafile backup.  The log showed the error come from media layer and did not specify detail message. We used secure backup to transfer data to tape. There are 4 tape d

  • Sequence periodoic Jobs

    Hello All, I have 3 jobs thats needs to run one after the other. Job A, Job B and job C. When Job A is complete Job B needs to trigger and then when job B is done Job C. I have set the Jobs in SM36, First i have set Job A witha time and date and sche

  • "Backup Disk Full" error with over 100 GBs free on disk!

    The subject line pretty much says it all. Any idea why TimeMachine thinks my disk is full? I have 3 drives: internal has 60 GB available, LaCie 500 GB has 145 GB available and 1 TB drive has 101 GB available. The TB drive is set for the TM backups. W

  • Print Settings tab in the Print module is missing? (Windows 7)

    The "How To" books always refer you to the Print Settings tab in the print module, but there isn't one in my Lightroom? How do I get around this?