Answer need help parsing XML

Hi, I am new to JAVA and don't work with her each time than in quite awhile.

I have a question that is probably very simple for someone with experience in JAVA.

I have a piece of writing JAVA code that will have to apply for a credit card transaction to a gateway, gateways response come in the form of XML.

Here's the response XML file in its entirety.
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="https://www.domain.com/ws/">1,0,Transaction accepted,0</string>
I worked with other XML responses and was able to get what I need. However, this XML response is a little different, and I can't understand how to correctly analyze the text string I need at the end which is:
1,0,Transaction accepted,0
Any help would be appreciated.

Thank you!

jl1997 wrote:
I used the following to try to get the information I need

new PrintStream(ftemp).println("Root element :" + doc.getDocumentElement().getNodeName());
new PrintStream(ftemp).println("Root value :" + doc.getDocumentElement().getAttribute("string"));

Output of the above code is:

Root element :string
Root value :

So I can identify the name of the node, which is 'chain', I just was not able to read the content of the node.

Published by: jl1997 on April 9, 2013 08:05

The element has no attribute named 'string. ' There only the content that you get using getTextContent() or the equivalent of what you use.

Tags: Java

Similar Questions

  • Need help with xml parsing

    Hello everyone. I have a question about parsing of an xml file. So I have to build a section of a Web site, in which I have to create a carousell 3d, showing different images. The images are loaded from an xml file, and their number is random. Basically, when I enter the section, I must choose a random number of galleries and when visit on a gallery name, a carousell appear, filled with images with for this gallery. The Gallery xml structure is as follows. It is still for the test, so there no concrete values.

    <? XML version = "1.0" encoding = "utf-8"? >

    < eveniments >

    < organization >

    < title > eveniment1 < / title >

    < photos >

    < poza1 > one < / poza1 >

    < poza2 > n < / poza2 >

    < poza3 > c < / poza3 >

    < poza4 > s < / poza4 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment2 < / title >

    < photos >

    < poza1 > one < / poza1 >

    < poza2 > b < / poza2 >

    < poza3 > c < / poza3 >

    d < poza4 > < / poza4 >

    < poza5 > e < / poza5 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment3 < / title >

    < photos >

    < poza1 > b < / poza1 >

    bb < poza2 > < / poza2 >

    bbb < poza3 > < / poza3 >

    < poza4 > bbbb < / poza4 >

    < poza5 > bath < / poza5 >

    < poza6 > bath < / poza6 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment4 < / title >

    < photos >

    < poza1 > c < / poza1 >

    < poza2 > one < / poza2 >

    < poza3 > cc < / poza3 >

    < poza4 > aa < / poza4 >

    < poza7 > ccc < / poza7 >

    < poza5 > aaa < / poza5 >

    < poza6 > < / poza6 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment5 < / title >

    < photos >

    < poza1 > CAD < / poza1 >

    < poza2 > CAD < / poza2 >

    < poza3 > ca < / poza3 >

    < poza4 > cc < / poza4 >

    < / photos >

    < / organization >

    < / eveniments >

    I need to access all the

    The question is: How can I access the child 'pictures' for each node?   I tried to access le.eveniment.poze "xmlfile", but it seems to not work.

    It seems that your pozas are in a section of , then you probably need to target through who tag images.

  • Help parsing XML message using PeopleCode

    Hi all

    I'm new to web services and XML, but was able to consume a WSDL and call the web service successfully.

    I am now trying to parse the XML message that I receive as an answer and to retrieve values that I need and with the response analysis problems. Here's what I did and the my AE Test code. Basically, I'm trying to navigate to the 'Results' element in the response, and then use GetChildNode to get the child nodes, then use FindNode to find items and their values.

    Here's the WSLD I used to create the web service in PS. I only need WSDL operation doSearch_3_15
    [https://www.epls.gov/epls/services/EPLSSearchWebService?wsdl]

    My PC below calls the web service and passes the family name "ZOD" as a search parameter, and this should return 3 results back.

    I'm grabbing the response back and analyse to extract the values I need.

    + & inXMLDoc = CreateXmlDoc(""); +
    + & ret = inXMLDoc.ParseXmlString (& answer. GenXMLString()); +

    The question that I have is to be able to get 'inside' the results node (there are 3 of them) and browse the child nodes and get my values.

    AE Test code:

    Local channel & charge useful, & responseStr, last;
    Local Message msg & response;
    Local XmlDoc xml & inXMLDoc;
    Local of the array of XmlNode GetElements, RecordList, & field1List & aResultsNode;
    Local XmlNode RecordNode & ClassificationNode;
    Local file & MYFILE;

    + & FilePath = ' / psoft/ultimate.9/fpsdv1/prod/ap/files / '; +
    "+ & FileName = uhc_report.xml" +;
    + & MYFILE = GetFile (& FilePath | & FilePath_Absolute of filename, "W", %); +.

    + & payload = "<? XML version = "1.0"? "> < doSearch xmlns ="https://www.epls.gov/epls/services/EPLSSearchWebService">"; +
    + & first = ""; +
    + & last = "ZOD"; +
    + & payload = & load useful | "< query > < first >. and first. "< / first > < last > | & last. "< / last > < / query > < / doSearch > ';" +

    + & xml = CreateXmlDoc (& payload); +
    + & msg = CreateMessage (Operation.DOSEARCH_3_15, IntBroker_Request %) +;
    + & msg. SetXmlDoc(&xml); +

    + & reply = IntBroker.SyncRequest % (& msg); +

    If All(&reply) then

    If & MYFILE. IsOpen then
    + & MYFILE. WriteString (& response. GenXMLString()); +
    On the other
    MessageBox (0, "", 0, 0, "cannot Open File.");
    End - If;

    + & inXMLDoc = CreateXmlDoc(""); +
    + & ret = inXMLDoc.ParseXmlString (& answer. GenXMLString()); +

    If & then ret

    + & field1List = & inXMLDoc.GetElementsByTagName ("results"); +

    If & field1List.Len = 0 Then
    MessageBox (0, "", 0, 0, "GetElementsByTagName node not found");
    Error ("GetElementsByTagName Node not found");
    + / * perform some processing of error * / +.
    On the other
    J = 1 & at & field1List.Len
    If & j > 1 Then
    + MessageBox(0, "", 0, 0, &field1List [&j].) NodeName | " = " | field1List [& j]. NodeValue); +

    + & RecordNode = & inXMLDoc.DocumentElement.GetChildNode (& j); +
    If & RecordNode.IsNull then
    MessageBox (0, "", 0, 0, "GetChildNode not found");
    On the other
    + & ClassificationNode = & RecordNode.FindNode ("classification"); +
    If & ClassificationNode.IsNull then
    MessageBox (0, "", 0, 0, "FindNode not found");
    On the other
    + & SDN_TYPE = Substring (& ClassificationNode.NodeValue, 1, 50); +
    MessageBox (0, "", 0, 0, "& SDN_TYPE =" |) (& SDN_TYPE);
    End - If;
    End - If;

    End - If;
    -End;
    End - If;

    MessageBox (0, "", 0, 0, & inXMLDoc.DocumentElement.NodeName);

    On the other
    + / * perform some processing of error * / +.
    MessageBox (0, "", 0, 0, "error.) ParseXml");
    End - If;

    On the other
    MessageBox (0, "", 0, 0, "error.) No response").
    End - If;


    See the link below for the web service XML response with a few Notes message. As a link between the response as an XML doc (had to add .txt to xml extension to download).  I appreciate your help and comments.
    http://compshack.com/files/XML-message.PNG
    http://compshack.com/files/uhc_report.xml_.txt

    And here is the result of my AE Test. I'm able to find 3 County results, that I expected because I have 3 files returned from the web service, but fails for some reason, GetChildNode.

    results = (0,0)

    GetChildNode not found (0.0)

    results = (0,0)

    GetChildNode not found (0.0)

    results = (0,0)

    GetChildNode not found (0.0)

    Published by: Maher on 12 March 2012 10:21

    Published by: Maher on 12 March 2012 10:41

    Hello

    I made a few adjustments to your code.
    First of all you need not create an XMLDOC object on the IB response, since it is already a XML.
    Instead use something like this:

    / * Send & receive message * /.
    & ResMsg = % IntBroker.SyncRequest (& ReqMsg);
    / * Get XMLDOC of the response message * /.
    & xml = ResMsg.GetXmlDoc ();
    strxml = & xml. GenFormattedXmlString();
    / * read the reply * /.
    & aNodeData = & xml. GetElementsByTagName ("yournodename")

    Now your code fixed

    &inXMLDoc = CreateXmlDoc("");
    &ret = &inXMLDoc.ParseXmlFromURL("c:\temp\test.xml");
    If &ret Then
       &field1List = &inXMLDoc.GetElementsByTagName("results");
       If &field1List.Len = 0 Then
          MessageBox(0, "", 0, 0, "GetElementsByTagName Node not found");
          Error ("GetElementsByTagName Node not found");
          /* do error processing */
       Else
          For &j = 1 To &field1List.Len
             If &j > 1 Then
                MessageBox(0, "", 0, 0, &field1List [&j].NodeName | " = " | &field1List [&j].NodeValue);
                &RecordNode = &field1List [&j];
    
                &RecordChildNode = &RecordNode.GetChildNode(&j);
                If &RecordChildNode.IsNull Then
                   MessageBox(0, "", 0, 0, "GetChildNode not found");
                Else
                   MessageBox(0, "", 0, 0, "&RecordChildNode name:" | &RecordChildNode.NodeName);
    
                   &ClassificationNode = &RecordNode.FindNode("classification");
                   If &ClassificationNode.IsNull Then
                      MessageBox(0, "", 0, 0, "FindNode not found");
                   Else
                      &SDN_TYPE = Substring(&ClassificationNode.NodeValue, 1, 50);
                      MessageBox(0, "", 0, 0, "&SDN_TYPE = " | &SDN_TYPE);
                   End-If;
    
                End-If;
             End-If;
          End-For;
       End-If;
       MessageBox(0, "", 0, 0, &inXMLDoc.DocumentElement.NodeName);
    
    Else
       /* do error processing */
       MessageBox(0, "", 0, 0, "Error. ParseXml");
    End-If;
    

    Result:
    PeopleTools 8.51.12 - Application Engine
    Copyright (c) 1988-2012 Oracle and/or its affiliates.
    All rights reserved

    results = (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: results = (0.0) (0.0)

    & RecordChildNode name: address (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & RecordChildNode name: address (0.0) (0.0)

    & SDN_TYPE =
    Individual (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & SDN_TYPE =
    Individual (0.0) (0.0)

    results = (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: results = (0.0) (0.0)

    & RecordChildNode name: agencyUID (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & RecordChildNode name: agencyUID (0.0) (0.0)

    & SDN_TYPE =
    Individual (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & SDN_TYPE =
    Individual (0.0) (0.0)

    results = (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: results = (0.0) (0.0)

    & RecordChildNode name: classification (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & RecordChildNode name: classification (0.0) (0.0)

    & SDN_TYPE =
    Individual (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: & SDN_TYPE =
    Individual (0.0) (0.0)

    soapenv:envelope (0,0)
    Game number of messages: 0
    Number of messages: 0
    Reason for the message: soapenv:Envelope (0.0) (0.0)
    Application Engine TEST_AE program ended normally

    Find the differences :)

    Published by: Hakan Biroglu on March 12, 2012 19:22

  • Help parsing XML (XMLParseDemo.java)

    Hello world

    I'm trying to parse the XML code in my application. Here's a sample of what I'm trying to analyze:

    
    
      http://api.netflix.com/catalog/titles/autocomplete?{-join|&|term}
      
        
      
      
        
      
      
        
      
      
        
      
    
    

    For the parser, I use the XMLDemoScreen.java that is provided in the JDE samples. What I'm trying to do is to analyze all of theitem. However, when I run the application, my output is as follows:<p class="help"> <pre> autocomplete url_template = <a href="http://api.netflix.com/catalog/titles/autocomplete?{-join" rel="external nofollow noreferrer">http://api.netflix.com/catalog/titles/autocomplete?{-join</a>|&|term}" autocomplete_item title autocomplete_item title autocomplete_item title autocomplete_item title </pre> <p class="help">So, that's the impression not the values of "title". Anyone know why? Is it because the element contains<title short="">?<p class="help"> <p class="help">Thanks for your help. Here is the code that I use (which can be found in the JDE samples):</p> <pre> /* * XMLDemoScreen.java * * Copyright © 1998-2009 Research In Motion Ltd. * * Note: For the sake of simplicity, this sample application may not leverage * resource bundles and resource strings. However, it is STRONGLY recommended * that application developers make use of the localization features available * within the BlackBerry development platform to ensure a seamless application * experience across a variety of languages and geographies. For more information * on localizing your application, please refer to the BlackBerry Java Development * Environment Development Guide associated with this release. */ package com.kflicks.xml; import java.io.InputStream; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.MainScreen; import net.rim.device.api.xml.parsers.*; import org.w3c.dom.*; /** * The main screen for the application. Displays the results of parsing the XML * file. */ /* package */public final class XMLDemoScreen extends MainScreen { // Constants // ----------------------------------------------------------------------------------- private static final int _tab = 4; InputStream input; /** * This constructor parses the XML file into a W3C DOM document, and * displays it on the screen. * * @see Document * @see DocumentBuilder * @see DocumentBuilderFactory */ public XMLDemoScreen(InputStream input) { setTitle(new LabelField("XML Demo")); this.input = input; try { // Build a document based on the XML file. DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(input); // Normalize the root element of the XML document. This ensures that // all Text // nodes under the root node are put into a "normal" form, which // means that // there are neither adjacent Text nodes nor empty Text nodes in the // document. // See Node.normalize(). Element rootElement = document.getDocumentElement(); rootElement.normalize(); // Display the root node and all its descendant nodes, which covers // the entire // document. displayNode(rootElement, 0); } catch (Exception e) { System.out.println(e.toString()); } } /** * Displays a node at a specified depth, as well as all its descendants. * * @param node * The node to display. * @param depth * The depth of this node in the document tree. */ private void displayNode(Node node, int depth) { // Because we can inspect the XML file, we know that it contains only // XML elements // and text, so this algorithm is written specifically to handle these // cases. // A real-world application will be more robust, and will handle all // node types. // See the entire list in org.w3c.dom.Node. // The XML file is laid out such that each Element node will either have // one Text // node child (e.g. <Element>Text</Element>), or >= 1 children // consisting of at // least one Element node, and possibly some Text nodes. Start by // figuring out // what kind of node we're dealing with. if (node.getNodeType() == Node.ELEMENT_NODE) { StringBuffer buffer = new StringBuffer(); indentStringBuffer(buffer, depth); NodeList childNodes = node.getChildNodes(); int numChildren = childNodes.getLength(); Node firstChild = childNodes.item(0); // If the node has only one child and that child is a Text node, // then it's of // the form <Element>Text</Element>, so print 'Element = "Text"'. if (numChildren == 1 && firstChild.getNodeType() == Node.TEXT_NODE) { buffer.append(node.getNodeName()).append(" = \"").append( firstChild.getNodeValue()).append('"'); add(new RichTextField(buffer.toString())); } else { // The node either has > 1 children, or it has at least one // Element node child. // Either way, its children have to be visited. Print the name // of the element // and recurse. buffer.append(node.getNodeName()); add(new RichTextField(buffer.toString())); // Recursively visit all this node's children. for (int i = 0; i < numChildren; ++i) { displayNode(childNodes.item(i), depth + 1); } } } else { // Node is not an Element node, so we know it is a Text node. Make // sure it is // not an "empty" Text node (normalize() doesn't consider a Text // node consisting // of only newlines and spaces to be "empty"). If it is not empty, // print it. String nodeValue = node.getNodeValue(); if (nodeValue.trim().length() != 0) { StringBuffer buffer = new StringBuffer(); indentStringBuffer(buffer, depth); buffer.append('"').append(nodeValue).append('"'); add(new RichTextField(buffer.toString())); } } } /** * Adds leading spaces to the provided string buffer according to the depth * of the node it represents. * * @param buffer * The string buffer to add leading spaces to. * @param depth * The depth of the node the string buffer represents. */ private static void indentStringBuffer(StringBuffer buffer, int depth) { int indent = depth * _tab; for (int i = 0; i < indent; ++i) { buffer.append(' '); } } } </pre> <p class="help">Thank you!</p> <p class="reply">You should get properly "title" attributes of node via</p> <p class="reply">NamedNodeMap attributes = node.getAttributes ();</p> <p class="reply">iterate through the mapping of attributes to retrieve the values you want.</p>

  • need help with xml data

    Hi all

    need your spiritual help once more!
    I have a table 'product' as below:

    create table product)
    product_id number (2),
    product_info varchar (4000));

    Select * from product:
    product_id product_info
    1 < ticketing > < product = 'TV' > < productservice = "shipping" > < / productservice > < / product = 'TV' > < / ticket >

    I need to get the column product_info information in a new table with 2 columns product and productservice product_details. as in: -.
    Select * from product_details:
    product_id product productservice
    1 expedition TV

    any suggestions on how to do it.
    PS-> for a product it can be several services and there may be several products for a ticket.

    Your XML file is not well formed at all (so many errors in there).

    However, if you had a valid XML code, you could do something like that...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as product_id, '' as product_info from dual union all
      2             select 2, '' from dual)
      3  --
      4  -- end of test data
      5  --
      6  select t.product_id, x.*
      7  from t
      8      ,xmltable('/ticketing/product'
      9                passing xmltype(t.product_info)
     10                columns product varchar2(10) path '/product/@name'
     11                       ,service varchar2(15) path '/product/productservice/@name'
     12*              ) x
    SQL> /
    
    PRODUCT_ID PRODUCT    SERVICE
    ---------- ---------- ---------------
             1 TV         shipping
             2 VCR        delivered
    
  • Help parsing XML with multiple namespaces

    I have a function that returns the following XML:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <fetchReportDataResponse xmlns="http://RptArchive/">
             <fetchReportDataResult>
                <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
                   <Table xmlns="">
                      <Report>Person Item</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Select DB by Fragment</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>EmployeeDetailReport</Report>
                      <Program>ADS</Program>
                      <Application>Son1</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>DeliveryTestReport</Report>
                      <Program>ADS</Program>
                      <Application>Test</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                </feed>
             </fetchReportDataResult>
          </fetchReportDataResponse>
       </soap:Body>
    </soap:Envelope>
    I wrote to try to get the data of the following SQL statement:
    select application,program_name,report
    from 
    (select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual )t,
    xmltable('/feed/Table'
    passing t.xml
    columns
    report varchar2(100) path 'Report',
    program_name varchar2(100) path 'Program',
    application varchar2(100) path 'Application');
    {code}
    This returns zero records.  If I break this up, I see that my extract statement is working:
    
    {code}
    select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual ;
    Returns
    <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
    <Table xmlns="">
    <Report>Person Item</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>Select DB by Fragment</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>EmployeeDetailReport</Report>
    <Program>ADS</Program>
    <Application>Son1</Application>
    </Table>
    <Table xmlns="">
    <Report>DeliveryTestReport</Report>
    <Program>ADS</Program>
    <Application>Test</Application>
    </Table>
    <Table xmlns="">
    <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    </feed>
    So I guess that there is something wrong with my implementation of the function xmltable - perhaps because there are two namespaces involved,
    one of them is null (I know that it is bad form--I am a consumer here and do not have control of the source).

    Any help would be appreciated.

    Best regards, Tony

    You can use xmltable with a simple xpath as follows:

    create or replace type ty_Rep  as object (rep_name varchar2(40), prg_name varchar2(40),app_name varchar2(40));
    /
    create or replace type tb_Rep as table of ty_Rep;
    /
    
    set serveroutput on
    declare
      l_xml xmltype := xmltype('
                                 
                                   
                                       
                                          
                                             Person ItemWQPARIS
    Select DB by FragmentWQPARIS
    EmployeeDetailReportADSSon1
    DeliveryTestReportADSTest
    Report_NoDMRs_ProcessByDeliveryMethodWQPARIS
    '); l_Rep tb_Rep := tb_Rep(); begin select ty_Rep(x.Report, x.Program, x.Application) bulk collect into l_Rep from (select l_XML as m from dual) d ,xmltable ('//Table' passing d.m columns Report varchar2(40) path 'Report' ,Program varchar2(40) path 'Program' ,Application varchar2(40) path 'Application') as x; dbms_output.put_line(l_Rep.count); for r in 1..l_Rep.count loop dbms_output.put_line('Report: ' || l_Rep(r).rep_name ); dbms_output.put_line('Program: ' || l_Rep(r).prg_name ); dbms_output.put_line('Application: ' || l_Rep(r).app_name ); end loop; end; / 5 Report: Person Item Program: WQ Application: PARIS Report: Select DB by Fragment Program: WQ Application: PARIS Report: EmployeeDetailReport Program: ADS Application: Son1 Report: DeliveryTestReport Program: ADS Application: Test Report: Report_NoDMRs_ProcessByDeliveryMethod Program: WQ Application: PARIS PL/SQL procedure successfully completed.
  • Need help on xml and datagrid

    Hi all

    I'm fighting with xml data as my dataProvider for my datagrid. I hope someone can look at this and see what the devil I'm doing wroing. No matter what I try my datagrid columns are empty.

    I tried several variations, changing the dataprovider to myApprovalsXML... viewentries... myApprovalsXML or entrydata etc. as well as the evolution of the datafields. I get lines but empty column values.

    Thanks in advance for any help!

    Sujit thanks

    Which worked great!

  • Need help with XML import

    I created the project using jdevelopr.
    locally, it works fine.
    I moved all my files from my development instance.

    trying to IMPORT an xml file using the following observation.

    When I try to import xml AU_TOP rum.

    I am getting error "java denied execute permission.

    Same as I did chmod - A - R 777
    Should I do something else?

    If I run of webui where my pg.xml is available, I get java not found error.

    PL. Let me know where I need to run this file

    Also, pl. check the import xml command I use to import


    Java oracle.jrad.tools.xml.importer.XMLImporter
    /oradev2/test/testcomn/Java/xxhr/Oracle/Apps/xxhr/selfservice/personalaction/WebUI/XXHRPersonalActionSearchPG.XML
    / oradev2/test/testcomn/java/xxhr/oracle/apps/xxhr/selfservice/personalaction/webui - rootdir/userId - apps
    rootPackage - / oradev2/test/testcomn/java/xxhr/oracle/apps/xxhr/selfservice/personalaction/webui /.
    apps - username username-password apps - dbconnection ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.1.4.57) (PORT = 1528)) (CONNECT_DATA = (SID = dev))) ".


    PL. Let me do I need to do any authorization or what the problem is.

    pl in a timely response.

    Thanks in advance
    Siva

    Yes, you can run it from any path (if you all the access path to the command)

  • need help on xml query.

    pls click here for an example of xml data
    http://pcls1.craftyclicks.co.UK/XML/RapidAddress?postcode=AA11AA
    I make the following query to retrieve the values of xml data
    Select x1.org, x1.org2, x1.org3, x1.org4, x1.org5 in the xml_data_tab x, xmltable ('/ CraftyResponse/address_data_paf_compact/path/delivery_point ' in passing x.xml_data)
    columns
    org varchar2 (500) 'organisation_name' path, org2 and varchar2 (500) 'building_number', org3 varchar2 (500) "building_name" path
    path of varchar2 (500) of the org4 "dependent_locality", org5 varchar2 (500) way 'city') x 1;
    This is the output...

    org4 and org5 is foul can guide me what I do in the script...

    SQL > /.

    ORG AND ORG2 TO ORG3 ORG4 ORG5
    ---------- -------------------- -------------------- -------------------- ----------
    THE BAKERY 1
    MOVIES R US 3
    FAMILY BUT 7
    DEAR

    BIG HOUSE
    17 LITTLE COTTAGE

    SQL > spool off









    Here is an example of xml code
    < CraftyResponse >
    < address_data_paf_compact >
    < thoroughfare_count > 1 < / thoroughfare_count >
    < artery >
    < delivery_point_count > 5 < / delivery_point_count >
    < delivery_point >
    < organisation_name > THE BAKERY < / organisation_name >
    < department_name / >
    < po_box_number / >
    < building_number > 1 < / building_number >
    < sub_building_name / >
    < building_name / >
    < udprn > 12345678 < / udprn >
    < / delivery_point >
    < delivery_point >
    < organisation_name > MOVIES R US < / organisation_name >
    < department_name / >
    < po_box_number / >
    < building_number > 3 < / building_number >
    < sub_building_name / >
    < building_name / >
    < udprn > 12345679 < / udprn >
    < / delivery_point >
    < delivery_point >
    < organisation_name > FAMILY BUTCHER < / organisation_name >
    < department_name / >
    < po_box_number / >
    < building_number > 7 < / building_number >
    < sub_building_name / >
    < building_name / >
    < udprn > 12345680 < / udprn >
    < / delivery_point >
    < delivery_point >
    < organisation_name / >
    < department_name / >
    < po_box_number / >
    < building_number / >
    < sub_building_name / >
    < building_name > BIG HOUSE < / building_name >
    < udprn > 12345681 < / udprn >
    < / delivery_point >
    < delivery_point >
    < organisation_name / >
    < department_name / >
    < po_box_number / >
    < building_number > 17 < / building_number >
    < sub_building_name / >
    < building_name > LITTLE COTTAGE < / building_name >
    < udprn > 12345682 < / udprn >
    < / delivery_point >
    < dependent_thoroughfare_name / >
    < dependent_thoroughfare_descriptor / >
    < thoroughfare_name > TOP < / thoroughfare_name >
    < thoroughfare_descriptor > STREET < / thoroughfare_descriptor >
    < / artery >
    < double_dependent_locality / >
    < dependent_locality > CRAFTY VALLEY < / dependent_locality >
    < City > BIG CITY < / City >
    < postal_county > COUNTY POSTAL < / postal_county >
    < traditional_county > COUNTY TRADITIONAL < / traditional_county >
    < ZipCode > AA1 1AA < / code >
    < / address_data_paf_compact >
    < / CraftyResponse >

    for example

    SQL> select x2.org
      2       , x2.org2
      3       , x2.org3
      4       , x1.org4
      5       , x1.org5
      6  from xmltable('/CraftyResponse/address_data_paf_compact'
      7         passing httpuritype('http://pcls1.craftyclicks.co.uk/xml/rapidaddress?postcode=AA11AA').getxml()
      8         columns org4 varchar2(20) path 'dependent_locality'
      9               , org5 varchar2(20) path 'town'
     10               , delivery_points xmltype path 'thoroughfare/delivery_point'
     11       ) x1
     12     , xmltable('/delivery_point'
     13         passing x1.delivery_points
     14         columns org  varchar2(20) path 'organisation_name'
     15               , org2 varchar2(20) path 'building_number'
     16               , org3 varchar2(20) path 'building_name'
     17       ) x2
     18  ;
    
    ORG                  ORG2                 ORG3                 ORG4                 ORG5
    -------------------- -------------------- -------------------- -------------------- --------------------
    THE BAKERY           1                                         CRAFTY VALLEY        BIG CITY
    FILMS R US           3                                         CRAFTY VALLEY        BIG CITY
    FAMILY BUTCHER       7                                         CRAFTY VALLEY        BIG CITY
                                              BIG HOUSE            CRAFTY VALLEY        BIG CITY
                         17                   LITTLE COTTAGE       CRAFTY VALLEY        BIG CITY
     
    
  • Need help with XML, view the data by scanning/click

    Hello.

    I am creating a moibile app that displays XML data. It is a telephone directory. I want the data to change when we slide. I can get the data very well. I can get it to display fine. I do not see the correct image first, however. I think it's a problem with my imagenum variable.

    Then, I want to change what is displayed when the user clicks/slide on the screen. How do I do that?

    Stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();

    var imageNum:Number = 0;
    var totalImages:Number;

    Loading XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load (new URLRequest ("recbook.xml"));


    XMLURLLoader.addEventListener (Event.COMPLETE, processXML);


    function processXML(event:Event):void {}

    var theXMLData:XML = new XML (XMLURLLoader.data);
    totalImages = theXMLData.name.length ();
    for (var i: Number = 0; i < totalImages; i ++) {}
    Data in the tables xml push
    nameArray.push (theXMLData.name [i]);
    countryArray.push (theXMLData.country [i]);
    portraitArray.push (theXMLData.portrait [i]);
    flagArray.push (theXMLData.flag [i]);
    jobtitleArray.push (theXMLData.jobtitle [i]);
    }
    the data is processed

    loadData();
    }

    function loadData (): void {}

    var thisPortrait:String = portraitArray [imageNum];
    var thisCountry:String = countryArray [imageNum];
    var thisName:String = NomTableau [imageNum];
    var thisJobtitle:String = jobtitleArray [imageNum];
    var thisFlag:String = flagArray [imageNum];

    var dataLoader:Loader = new Loader();
    dataLoader.load (new URLRequest (portraitArray [imageNum]));
    dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {}

    I want to start with 0 (img1.jpg) image and scroll with a click of the mouse (finger on iOS kick)
    stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {}
    portraitUILoader.source = thisPortrait;
    flagUILoader.source = thisFlag;
    selectedName.text = thisName;
    selectedCountry.text = thisCountry;
    selectedJobtitle.text = thisJobtitle;
    }
    }

    Add to imageNum (1);
    imageNum ++;
    If (imageNum < totalImages) {//stopping to img2
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere

    loadData();
    }

    trace ("Total Images" + totalImages);

    }

    Click here to pass the screenI House would this gap. do not know how.
    homeScreen_mc.addEventListener (MouseEvent.CLICK, goNext);

    function goNext(event:MouseEvent):void
    {
    nextFrame();
    }


    * / Here is the result:
    imageNum 1
    image name (tomyline) images/img1.jpg
    imageNum 2
    image name (tomyline) images/img2.jpg
    imageNum 3
    image name (tomyline) images/img3.jpg
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images

    It starts on frame 1 display (the second in the series img2.jpg) * /.

    If (imageNum< totalimages)="" {//stopping="" at="">
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere
    imageNum ++;
    If (imageNum! = totalImages) loadData();
    }

  • Need help with XML (bold/italic) attribute access

    Hello

    I have a form that displays data in livecycle designer. When a person imports an xml file into the form in Adobe Acrobat format, it should be able to display data in the form of fat and some italicized based on the xml file.

    Here is an example of xml file

    < Table1 >

    < Row1 >

    < Cell1 style = 'none' > 1 < / Cell1 >

    < Cell2 style = "bold" > 2 < / Cell2 >

    < Cell3 style = "italic" > 3 < / Cell3 >

    < / Row1 >

    < / Table1 >

    And the output should be:

    1 2 3

    Can someone please! If the xml file must be designed differently, please let me know.

    Thank you!

    The implementation of Rich Text use xHTML to define the styles of fonts. I suggest you create a RichText Field on your form, set the text the way you want, then export the data to see how the styles are represented.

    Paul

  • need help I forgot my administrator password

    help my father not to put a password on my computer and mow it forgot it please I really need this password to update my computer Windows 8.1 I'm still on windows 8 is anyway that I can upgrade to windows without a password 8.1 administrative please need help. And I can't download anything need help bad I'll do anything. I have a Windows XP laptop and it says on the top of my HP laptop. I received my password that I can enter.  Please ANSWER NEED HELP

    WIN8.1 is provided & installed through shop Windows. How does this relate to the features of Windows Update?

    Microsoft's strategy concerning lost or forgotten passwords
    http://support.Microsoft.com/kb/189126

  • In fact, I need help but can't find the answer. Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as

    In fact, I need help but can't find the answer.
    Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as empty as when I open Firefox, it automatically load my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.

    [Personal information deleted by the moderator. Please read the guidelines and rules of the Forum, thank you.]

    Hello, please refer to customize the page new tab to turn off the function.

  • I need help, I forgot my security answers and Email not send to my Email of relief.

    I need help, I forgot my security answers and Email not send to my Email of relief.

    Unless it is in a spam filter, you have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (137175)

  • is there a phone number I can contact microsoft on. I need help and forum live gives me no answers

    is there someone I can actually talk about microsoft? my hotmail has been hacked and I need help to get it back! I tried windows live forum coming from running me around, no doubt, that there must be someone who can help me

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

Maybe you are looking for