XML Dta-Help???

Hi,
I have a probelm like how to get node vale from xml file if xml file contains html data.
I would appreciate your help.
I want retrive the value of node1 as
<html><body><h1>Hello</h1></body></html>
Example:
<static_info>
<node1>
<html><body><h1>Hello</h1></body></html>
</node1>
<node2>
some text
</node2>
</static_info>
Thank,
Ravi

Which parser are you using...?

Similar Messages

  • Reg: XML PUBLISHER HELP

    Hi all,
    I am building report using xml publisher. Problem i facing was ,
    1. I created the template in RTF and attached to data definition
    for eg: my rtf is
    sno item quantity price ( I created this field in table structure and mapped to xml data)
    Total Price ( this also i am getting from data definition)
    The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
    Inspected By Approved By
    1)
    ________________________________ 1)________________________________ Store Incharge : ______________________
    2)
    ________________________________ 2) ________________________________ Received : _______________________
    3)
    ________________________________ 3 ________________________________ Prepared By : _______________________
    NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
    2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
    3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
    4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
    Actually my need
    Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
    How to resolve this... any approach most welcome. Wat changes i have to make.

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • XML Publisher Help

    Hi,
    We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1.
    The problem with this is to apply patches Oracle have told us we need to have the NLS_LANG set to UTF8.
    As a result Oracle have said that:
    The only available workaround for generating PDF on a UTF8 character set instance is to install and utilize the XML Publisher product or upgrade to E-Business Suite to Release 12.
    We don't have any plans to upgrade to Release 12, so I am looking to use XML Publisher. I have a couple of questions:
    Is this an add-on?
    Where is the best place to obtain navigation guides and tutorials to teach myself this?
    I have had a look at some of the pre-defined templates already and I am not sure how to create my own rtf file so that my required fields are passed to the template.
    Any help would be greatly appreciated
    Many Thanks
    Martin

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Methods in XML--pL help

    I have string...as
    String xstr="<?xml version=\"1.0\"?>\n"+
    "<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+
    "<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are applied]]></u_description>\n"+
    "<u_used><![CDATA[1]]></u_used>\n<u_fromname/>\n<u_fromemail/>\n<pw_email/>\n<u_user/>\n<u_password/>\n</UserGroups>"+
    I am trying to form a xmlDoc using String Reader as follows..
    java.io.Reader reader = new java.io.StringReader(xstr);
         org.xml.sax.InputSource source = new org.xml.sax.InputSource(reader);
         org.w3c.dom.Document xmlDoc=null;
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         xmlDoc = builder.parse(source);           
         Element xmlRoot=xmlDoc.getDocumentElement();
         Table_Name=xmlRoot.getNodeName();
         NodeList oNodeList = xmlRoot.getChildNodes();
         Node PNode=oNodeList.item(0);
         But at the end...ONodeList.item(0)...does not give anything...Am I doing anything wrong...Pl help if possible soon
    smita

    since Value is within the CDATA tag...You see a "CDATA tag", as you call it, in your XML, but the parser strips that all off and normalizes it to an ordinary string. So writing
    <![CDATA[public]]>
    is exactly the same as writing
    public
    and the parser treats them identically. So identically, in fact, that there is no way for you to find out whether CDATA was used at all.
    Sorry, that doesn't answer your actual question, but hopefully it prevents you looking in the wrong direction.

  • Procedure to generate invoice in xml---please help

    Hi all,
    I have to write code review of a pakage which contain procedure to generate invoice in XML.The procedure contain two
    files .pkb and .pks.All i know is that it will deliver elemt of the post script layout.?But i dont understand what it mean nor i am able to understand the code.I dont have any prior knowledge about this.Please help me and tell me any tutorial to understand and know how this is done.
    Also i have pasted some part of code here .please help me in understanding what is going on.
    help help help
    * GET_INVOICE_XML
    FUNCTION GET_INVOICE_XML(inInvId NUMBER) RETURN CLOB IS
    BEGIN
      IF NOT isClobReady THEN
        dbms_lob.createtemporary(invClob, TRUE);
        isClobReady := TRUE;
      ELSE
        dbms_lob.trim(invClob, 0);
      END IF;
      vInvoice :=
        XML_VER_STR || NL ||
        ' <!DOCTYPE INVOICE_FILE SYSTEM "invoicfile.dtd">' || NL ||
        '<INVOICE_FILE VERSION="1.1">' || NL;
      GEN_PROLOG(InvId);
      GEN_INVOICE(InvId, 1);
      vInvoice := vInvoice ||
        '</INVOICE_FILE>' || NL || NL;
      APPEND_INVOICE(0);
      RETURN invClob;
    END GET_INVOICE_XML;
    PROCEDURE GEN_INVOICE(InvId NUMBER, inITBMode NUMBER) IS
    vP1    PLS_INTEGER;
    vP2    PLS_INTEGER;
    vAtt     BOOLEAN;
    inv      ABCINVOICE%ROWTYPE;
    cdr_no   NUMBER;
    t0       TIMESTAMP;
    t1       TIMESTAMP;
    execTime NUMBER(12,6);
    BEGIN
      t0 := LOCALTIMESTAMP;
      SELECT * INTO inv FROM ABCINVOICE WHERE OACT = InvId;
      dti := inv.DTI;
      SELECT NVL(SUM(cdrNO),0) INTO cdr_no FROM ABCCONTRACTS WHERE OACT = InvId AND ITB IN ('Y', 'F');
      vInvoice := vInvoice ||
        ' <INVOICE>' || NL ||
        '  <HEADER>' || NL ||
        '   <SEQ>' || inv.SEQ || '/' || inv.PROC_ID || '</SEQ>' || NL ||
        '   <LEN ';
      vPos1 := INSTR(inv.LEN, '|', 1, 1);
      vInvoice := vInvoice || 'INV="' || SUBSTR(inv.LEN, 1, vPos1-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'BAL="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
      vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
      vInvoice := vInvoice || 'DET="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'PDET="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" ';
      vPos1 := INSTR(inv.LEN, '|', vPos2+1, 1);
      vInvoice := vInvoice || 'ITM="' || SUBSTR(inv.LEN, vPos2+1, vPos1-vPos2-1) || '" ';
      vPos2 := INSTR(inv.LEN, '|', vPos1+1, 1);
      vInvoice := vInvoice || 'PITM="' || SUBSTR(inv.LEN, vPos1+1, vPos2-vPos1-1) || '" NTF="' ||
        SUBSTR(inv.LEN, vPos2+1) || '"/>' || NL;
      vInvoice := vInvoice ||
        '   <BAR>' || inv.BAR || '</BAR>' || NL ||
        '   <BCD>' || inv.BCD || '</BCD>' || NL ||
        CASE WHEN inv.BIC IS NULL THEN '' ELSE '   <BIC>' || inv.BIC || '</BIC>' || NL END ||
        '   <REF>' || inv.REF || '</REF>' || NL ||
        '   <OHX>' || inv.OHXACT || '</OHX>' || NL ||
        '   <CID>' || inv.CID || '</CID>' || NL ||
        '   <CCO>' || inv.CCO || '</CCO>' || NL ||
        '   <CND>' || inv.CND || '</CND>' || NL ||
        '   <PBF>' || inv.PBF || '</PBF>' || NL ||
        '   <DTI>' || inv.DTI || '</DTI>' || NL ||
        '   <DTD>' || inv.DTD || '</DTD>' || NL ||
        '   <DPS>' || inv.DPS || '</DPS>' || NL ||
        '   <DPE>' || inv.DPE || '</DPE>' || NL ||
        '   <DAS>' || inv.DAS || '</DAS>' || NL ||
        '   <DAE>' || inv.DAE || '</DAE>' || NL ||
        '   <PAY>' || inv.PAY || '</PAY>' || NL ||
        '   <NAM>' || ABCUTIL.CONVERT_POL_CHAR(inv.NAM) || '</NAM>' || NL ||
        CASE WHEN inv.ADS1 IS NULL THEN '' ELSE '   <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS1) || '</ADS>' || NL END ||
        CASE WHEN inv.ADS2 IS NULL THEN '' ELSE '   <ADS>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADS2) || '</ADS>' || NL END ||
        '   <ADZ>' || ABCUTIL.CONVERT_POL_CHAR(inv.ADZ) || '</ADZ>' || NL ||
        '   <NIP>' || inv.NIP || '</NIP>' || NL ||
        '   <REG>' || inv.REG || '</REG>' || NL ||
        '   <PES>' || inv.PES || '</PES>' || NL ||
        '   <BCY>' || inv.BCY || '</BCY>' || NL ||
        '   <TXT>' || ABCUTIL.CONVERT_POL_CHAR(inv.TXT) || '</TXT>' || NL ||
        '   <GRO>' || TO_CHAR(inv.GRO, 'FM999990.90') || '</GRO>' || NL ||
        '   <FBL>' || inv.FBL || '</FBL>' || NL;
      IF inv.STP > 0 THEN
        GEN_TEXT(inInvId, 1);
      END IF;
      vInvoice := vInvoice ||
        '  </HEADER>' || NL ||
        '  <ADDRESS>' || NL ||
        '   <ENV>' || inv.ENV || '</ENV>' || NL ||
        '   <TNA>' || ABCUTIL.CONVERT_POL_CHAR(inv.TNA) || '</TNA>' || NL ||
        CASE WHEN inv.TAS1 IS NULL THEN '' ELSE '   <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS1) || '</TAS>' || NL END ||
        CASE WHEN inv.TAS2 IS NULL THEN '' ELSE '   <TAS>' || ABCUTIL.CONVERT_POL_CHAR(inv.TAS2) || '</TAS>' || NL END ||
        '   <TAZ>' ||ABCUTIL.CONVERT_POL_CHAR(inv.TAZ) || '</TAZ>' || NL;
      GEN_TEXT(inInvId, 2);
      vInvoice := vInvoice ||
        CASE WHEN inv.MTX  IS NULL THEN '' ELSE '   <MTX>' || inv.MTX  || '</MTX>' || NL END ||
        '  </ADDRESS>' || NL;
      APPEND_INVOICE(0);
      IF inv.BCY <> '99' THEN
        GEN_INVOICE_BILLING(inInvId);
        GEN_BALANCE(inInvId);
        vPos1 := INSTR(inv.LEN, '|', 1, 2) + 1;
        vPos2 := INSTR(inv.LEN, '|', vPos1, 1);
        vPos1 := SUBSTR(inv.LEN, vPos1, vPos2 - vPos1);
        IF vPos1 > 1 THEN
          GEN_SUMMARY(inInvId);
        END IF;
      END IF;
      vInvoice := vInvoice || ' </INVOICE>' || NL;
      APPEND_INVOICE(0);
    END GEN_INVOICE;Edited by: BluShadow on 28-Aug-2012 09:46
    added {noformat}{noformat} tags for readability. Please read: {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Not quite sure what you want to know about it.
    If you want a code review of it, I can tell you it's very poor code, because that's not how to generate XML data in Oracle. Oracle has built in XML functionality for generating such data, and doesn't require hard-coding XML tags.
    Here's the Oracle documentation...
    http://tahiti.oracle.com/
    pick your database version and search for things like XDB, SQLX or more specifically XMLELEMENT, XMLAGG, XMLATTRIBUTES etc.

  • Xml transfornation help  dump help

    HI ,
    I have this string type xml and it coming from internal table and i want to parse it to abap internal table, i follow some example that in the forum  and i facing an dump ,do some one can help.
    Regards
    DATA: BEGIN OF wa,
             key TYPE string,
             val TYPE string,
           END OF wa.
    DATA it_data LIKE TABLE OF wa.
    START-OF-SELECTION.
    DATA:  xml_string TYPE string
          VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
      CALL TRANSFORMATION z_xml_to_itab
           SOURCE  XML xml_string
           RESULT  itab = it_data.
    This is what i write on TR. strans
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="ITAB"/>
      <tt:template>
        <determination>
          <tt:loop name="a" ref=".ITAB">
            <deter>
              <tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
            </deter>
          </tt:loop>
        </determination>
      </tt:template>
    </tt:transform>
    When i check on the debugger the error is in line :
       <tt:attribute name="key" ref="$a.akey" name="val" ref="$a.aval" />
    the dump is :
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
       caught and
      therefore caused a runtime error.
      The reason for the exception is:
      XML matching error
      Expected was attribute: "val" [ ] Read was element-start: "deter" [ ].
    What i miss here ?????,please help.
    Regards
    Joy
    Edited by: Joy Stpr on Aug 3, 2009 9:54 AM

    HI Siva,
    Thanks a lot,
    i change it like u tell and i facing other dump,
    do u have an idea.
    this is exactly the code that i write :
    DATA: BEGIN OF wa,
             key TYPE string,
             value TYPE string,
           END OF wa.
    DATA it_data LIKE TABLE OF wa.
    START-OF-SELECTION.
      DATA:  xml_string TYPE string
            VALUE '<determination><deter key = "00009" value = "Johan"/><deter key = "1000" value = "GSS"/></determination>'.
      CALL TRANSFORMATION ztest_xml_009
           SOURCE  XML xml_string
           RESULT  itab = it_data.
    This is  what i write in strans
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="ITAB"/>
      <tt:template>
        <determination>
          <tt:loop name="a" ref=".ITAB">
            <deter>
           <tt:attribute name="key" ref="$a.key" name="value" ref="$a.value" />
            </deter>
          </tt:loop>
        </determination>
      </tt:template>
    </tt:transform>
    And this is the dump
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ST_MATCH_ATTRIBUTE', was not
         caught and
        therefore caused a runtime error.
        The reason for the exception is:
        XML matching error
        Expected was attribute-end: "determination" [ ] Read was text: "Johan" [ ].
    Can i help please :
    U can just copy and paste the code and u get the same dump that i am facing
    Thanks and best Regards
    jOy
    Edited by: Joy Stpr on Aug 4, 2009 8:57 AM

  • XML Gurus: help with cloning a node without using clone!

    Dear all,
    I have to copy one piece of XML from one part of the document to another. Unfortunately I cannot simply do a copy and paste:
    Node nodeLeaf = nodeChild.cloneNode(true);
    nodeAncestor.appendChild(nodeLeaf);
    because some fragments of the nodeLeaf mustn't be copied (depending on the node value)
    So I cannot make a deep clone of the leaf.
    I have to make a clone of nodeLeaf by myself. (Copying its child with a recursive function)
    I have built a recursive function but I cannot understand why it doesn't work correclty (text values are skipped and also some pieces of the xml aren't copied correclty)
    // Passing the full leaf and a leaf with only the first tag, under which I clone manually the nodes.
    Node copyNode = appendNodes(nodeLeaf, nodeLeaf.cloneNode(false));
    private Node appendNodes(Node node, Node copyNode) {
    NodeList kids = node.getChildNodes();
    int length = kids.getLength();
    if (kids != null) {
    for (int ii = 0; ii < length; ii++) {
    Node nodeKid = kids.item(ii);
    copyNode.appendChild(nodeKid.cloneNode(false));
    appendNodes(nodeKid,nodeKid);
    return copyNode;
    Anybody can give me a help ?
    thanks a lot
    Francesco

    Here are a couple of suggestions:
    1) General stuff.
    NodeList kids = node.getChildNodes(); will always generate a NodeList. It may have no entries, but there is no need to check for if (kids != null). Your for loop will do nothing if the length is zero.
    2) You need to change your code as follows:
    for (int ii = 0; ii < length; ii++)
       Node nodeKid = kids.item(ii);
       Node newOutputNode = nodeKid.cloneNode(false);
       copyNode.appendChild(newOutputNode);
       appendNodes(nodeKid,newOutputNode);
    }Dave Patterson

  • Flash XML file help

    I am trying to add multiple flash files to my website...the
    only way these seem to work is if the swf and corresponding xml
    file are all on the root of the website directory. I would have
    liked to organize them into files to sort.
    My problem is that many of these flash files (mainly
    purchased) have the same xml file, so I cannot use these together
    on the root. Thus, I need to either rename in the flash the xml
    file or figure out how to put into folders...please help!
    -Josh

    ANSWER: I figured it out myself. I am just replying to let
    everybody else know how I fixed it. I had the full URL in the load
    request and apparently some Flash players don't like this. I put a
    link to the file without the domain name and everybody is working
    fine. The load function, Flash, or something could not resolve the
    domian correctly and could not find the XML file. I was not getting
    a request for the file from the Flash movie so I knew it had to be
    soemthing in Flash.

  • XML Invoice - help with Tax Summary

    I've been tasked to modify an already modded XML Invoice using XMLP. I need to add a Tax Summary block at the bottom, showing the breakout of the tax codes and amounts charged on the invoice.
    I've played around with it, but so far I can only get the first tax line to show up. I can't get the others. I need to insert a conditional, but I don't know how or where.
    Has anyone run into anything like this before?
    This probably isn't the best problem summary... but if you could help I'd appreciate it!

    Hi,
    It sounds like you need to use a for-each to show each of your tax lines. If you do not have the for-each XMLP will only show the first tax line that is hits in the XML Output.
    Would suggest that you take a quick look at the XMLP User Guide documentation for more information on how to use for-each.
    Let me know if this does not solve your problem, or if you are still struggling.
    Regards,
    Cj

  • Filtering XML data Help!

    I have a sample xml file:
    <photos id = "images">
           <photo>
             <thumb type="jpg" thumbpath="pics/Thumbs/caddo_5-16-10-10_x.jpg"
       thumbwidth="133"
       thumbheight="200"
          path="pics/fullsize/caddo_5-16-10-10.jpg"
       width="425"
       height="640"
       place="Caddo Lake State Park"
       city="Uncertain, Texas"
       cat="Nature"
       date="May 2010"></thumb>
             <file>caddo 5-16-10-10</file>
       </photo>
    Trying to get only the cat Nature to display. Set up HTML file with one dataset please help!

    See the following samples:
    Filtering with XPath
    Multiple Non-Destructive Filters
    Multiple Non-Destructive Filters Mode
    Non-destructive Filter
    XPath filtering with URL Params

  • Xpath expression is empty for input XML file - Help!!!

    Hi,
    I am desperate by now!!! :-(
    I am not able to read an XML file using the File Adapter
    when trying to assign the input I get the following error:
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:490)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:122)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
    06/06/08 09:15:10 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
    06/06/08 09:15:10 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
    06/06/08 09:15:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    06/06/08 09:15:10 at java.lang.Thread.run(Thread.java:534)
    <2006-06-08 09:15:10,384> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    [b]xpath variable/expression expression "/ns6:SUPPLIERS_ORDER_NUMBER" is empty at line 23, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns6:SUPPLIERS_ORDER_NUMBER" is not empty.
    </summary>}}
    this is my XML file:
    <?xml version="1.0" encoding="utf-8"?>
    <SUPPLIERS_ORDER_NUMBER>"XX"</SUPPLIERS_ORDER_NUMBER>
    this is my xsd file:
    <xs:schema
    targetNamespace="http://schemas.oracle.com/service/bpel/common"
    xmlns:common = "http://schemas.oracle.com/service/bpel/common"
    xmlns:xs = "http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xs:element name="SUPPLIERS_ORDER_NUMBER" type="xs:string"/>
    </xs:schema>
    Please help me
    thanks
    Amit

    Hi,
    This is my file adapter wsdl file:
    <definitions
    name="fileAdapter"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://schemas.xmlsoap.org/wsdl/" >
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
    <element name="InboundFileHeaderType">
    <complexType>
    <sequence>
    <element name="fileName" type="string"/>
    <element name="directory" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <!-- Header Message -->
    <message name="InboundHeader_msg">
    <part element="tns:InboundFileHeaderType" name="inboundHeader"/>
    </message>
    </definitions>
    So , should I use http://xmlns.oracle.com/pcbpel/adapter/file/ as my targetNamespace?
    for example:
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    Thanks
    Amit

  • XML Newbie - Help Processing Files!

    I'm not exactly sure if "process" is the right word, so I'll describe what I mean. There are two XML files (http://xml.pinnaclesports.com/xmlfeed.asp and http://208.138.39.112/XMLLineFiles/Baseball.xml) that are constantly updated online, and I want to be able to compare certain numbers in the two files.
    Problem is, I really have no clue where to begin. I've heard that you can import XML into Microsoft Excel, but it can only refresh once every minute. Ideally I'd be able to compare the files almost constantly (like every 5 seconds or something). What are my other options? I don't really know any computer programming (besides a minimal amount of C), so I would really appreciate any help, just pointing me in the right direction.
    Thanks for any help!

    Your best option would be to hire a programmer to do that work.
    It's possible you could spend a few months learning the skills, but why bother when you could hire a programmer who could get it done in a day?
    By the way, refreshing once every minute is what you want to do, not every five seconds. Besides the fact that it took me at least 15 seconds just to download those two pages, one of them says
    "2. Do not read the feed more than one times per minute."

  • How to Read and Write .XML datas   (HELP Plz...)

    hai everybody
    how to read and write xml datas... plz give clean and simple example..
    bcoz me want to produce such type of module...
    if any one help me .. thats the only way me laid in software ladder
    plz....
    thank u in advance

    thank u for giving idiot..
    but before posting i search in google also..
    but i cant get what me expect..
    thus i posted...
    then who is ................?
    sorry javacoder01
    // plz help me
    Message was edited by:
    drvijayy2k2

  • XML Transformation help required

    Hi,
    I want to read the contents of XML file, so i want to use Transformation. I require your help in getting that.
    XML File contents
    - <SOAP_FAULT>
    - <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <s:Header>
      <a:Action s:mustUnderstand="1">http://www.aaaa/bbbb/ccccc/ServiceUnavailableFault</a:Action>
      <a:RelatesTo>urn:uuid:18a90558-58e4-1ee0-b5b6-4406eadff48f</a:RelatesTo>
    - <u:Timestamp u:Id="_0">
      <u:Created>2011-09-02T22:23:11.917Z</u:Created>
      <u:Expires>2011-09-02T22:28:11.917Z</u:Expires>
      </u:Timestamp>
      </s:Header>
    - <s:Body>
    - <s:Fault>
    - <s:Code>
      <s:Value>s:Sender</s:Value>
      </s:Code>
    - <s:Reason>
      <s:Text xml:lang="en-US">No recipients found</s:Text>
      </s:Reason>
    + <s:Detail>
    - <ServiceUnavailableFault xmlns="http://www.aaabbbccc.com/AONI/2/0/messages/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <RequestId>18a90558-58e4-1ee0-acc4-b45d6629582d</RequestId>
      </ServiceUnavailableFault>
      </s:Detail>
      </s:Fault>
      </s:Body>
      </s:Envelope>
      </SOAP_FAULT>
    Here i want to read the tag <Reason> which is currenlyt displaying as "No recipients found".
    could you please help me in getting this..?
    Thaks,
    Raghu

    Hi,
    if you just need to extract one element (?), you could use iXML : interface if_ixml_document contains method find_from_path_ns , to which you may pass the path to your element (and pass the namespace prefix too), which is :
    /SOAP_FAULT/s:Envelope/s:Body/s:Fault/s:Reason
    Sandra

Maybe you are looking for

  • Issues with "Higher performance" setting on Macbook Pro with external monitor

    Hi all, I rarely used the "Higher performance" setting in the Energy Saver pane of System Preferences. I use my MB connected with an external monitor, with its own screen closed. I tried to switch that setting on and the external monitor seems to rep

  • Not really a question- just fyi the 4.0 version is no longer compatible with Indexhibit (a website template program).

    I can no longer up load images into the backend of my site that I built with Indexhibit. The previous version worked. I'm able to get it done with Chrome but would like to keep everything in Firefox if possible. Thanks for an otherwise great browser!

  • TOC navigation controls - random behavior

    My landscape-only book is structured in iBooks Author as a Preface followed by a sequence of Sections. The result works fine, including the TOC, which consists of nothing but a horizontal scrolling set of thumbnail page images. However, after I use t

  • Listerning port for client connection

    When the oracle client connects to the oracle database, the default port that the system uses is 1521, which is configured as the listerner location using TCP/IP protocol. However, we noticed that once the connection has been establised, the oracle d

  • Importing configuration error

    Hi, I am hoping that someone might be able to point me in the right direction to resolve an error (see below) we are getting when trying to import a configuration file into our test system.  I have truncated the message due to size restrictions of po