XML problem with getPayload

Hi,
I have come across an obscure but annoying xml bug in the bpel (collaxa?) implementation. I need to use xs:extension elements in the schema for the payload contents, which then of course requires a declaration of the xsi namespace. The payload is saved fine, and when I view the contents in the bpelconsole, it is there (as shown below). However, when I get the task and call getPayload, the xsi declaration is missing from the element, which then crashes JAXB.
This is what is shown in the BPELConsole audit:
<payload>
  <process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
    <person xmlns="urn:ch.bedag.pef.iflow.core">
      <angestellter>
        <anstellung/>
        <wohnadresse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:AdresseSchweiz">
          <adresszusatz>c/o Bedag Informatik</adresszusatz>
          <strasse>Gutenbergstrasse 1</strasse>
          <ort>Bern</ort>
          <plz>
            <plz>3000</plz>
          </plz>
        </wohnadresse>
      </angestellter>
      <name>Prince</name>
      <personalnummer>
        <personalnummer>111111</personalnummer>
      </personalnummer>
      <vorname>John</vorname>
    </person>
  </process-request>
</payload>And this is what I get when I call getPayload:
<process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
  <person xmlns="urn:ch.bedag.pef.iflow.core">
    <angestellter>
      <anstellung/>
      <wohnadresse type="ns1:AdresseSchweiz">
        <adresszusatz>c/o Bedag Informatik</adresszusatz>
        <strasse>Gutenbergstrasse 1</strasse>
        <ort>Bern</ort>
        <plz>
          <plz>3000</plz>
        </plz>
      </wohnadresse>
    </angestellter>
    <name>Prince</name>
    <personalnummer>
      <personalnummer>111111</personalnummer>
    </personalnummer>
    <vorname>John</vorname>
  </person>
</process-request>The only difference is in the wohnadresse element, which has the correct xsi:type attribute, but the xsi: namespace declaration is missing.
Any chance of fixing this? Otherwise I will have to convert the payload to a string, fix the problem, back to xml and then pass it off to jaxb. Very irritating...
I don't know if it will help, but I did see the same problem when I tried converting a string to xml using a DOMResult and a Transformer. I switched to DOMParser and and InputSource and the problem went away.
Thanks
John

Hi
After a lot of experimenting, it looks like there are two problems:
1. If I call IDeliveryService.post with a NormalizedMessage constructed with a String, bpel is not completely reliable with the namespaces (it converts them all to default namespaces defined on particular elements, but it missed the namespace within the xsi:type declaration). I fixed this by using DOMUtil to convert the string to a CubeDOMElement, which is then correctly converted to the input variable.
2. The CubeDOMElement also makes mistakes if you use Element.getElementsByTagNameNS(ns, name). Even when all the information was there, the method removed one of the namespace declarations (actually a duplicate, but necessary because the prefix was used in the document).
I got round this by calling the CubeDOMElement method getContentAsXml, which bizarrely returns the full xml of the child nodes, with all namespaces correctly defined and used, and then converting the xml string into a normal org.w3c.Element.
It looks like a few more test cases are needed for the collaxa xml implementation...
Best wishes
John

Similar Messages

  • VAT declaration in XML - Problem with report RFASLDPC

    Hello all,
    I have a problem with the report RFASLDPC. We use it to download an XML file that we generated which contains the VAT declaration.
    In the report RFASDLPC, there is a FORM named QUELLFILE_PRUEFEN which stop the report and display a message : "Data file FILE_NAME is not correct".
    The reason is that QUELLFILE_PRUEFEN checks (for Belgium) that the beginning of my document starts with '000000' (six times zero). But this is impossible for an XML file to begin with '000000'. An XML file must begin with "<?xml version="1.0" ?>" or a least "<".
    Here is the code :
    FORM QUELLFILE_PRUEFEN.
      OPEN DATASET PAR_PATH FOR INPUT IN BINARY MODE.
      IF SY-SUBRC NE 0.
        MESSAGE E306 WITH PAR_PATH.        ''Quellfile nicht vorhanden
      ENDIF.
      READ DATASET PAR_PATH INTO HLP_RECORD.
      CASE PAR_FTYP.
        WHEN 'AT'.                         ''ASL Österreich
          IF HLP_RECORD(1) NE 'I' OR HLP_RECORD+46(2) NE 'ZM'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        WHEN 'BE'.                         ''ASL Belgien
          IF HLP_RECORD(6) NE '000000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        WHEN 'ES'.                         ''ASL Spanien
    *     IF HLP_RECORD(1) NE '1' OR HLP_RECORD+104(3) NE '349'.
          IF HLP_RECORD(1) NE '1' OR HLP_RECORD+1(3) NE '349'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        when 'FI'.
          if hlp_record(3) ne '000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
      ENDCASE.
      CLOSE DATASET PAR_PATH.
    The line :
    READ DATASET PAR_PATH INTO HLP_RECORD.
    Put the 128 first character of the XML file in HLP_RECORD because HLP_RECORD is defined as :
    HLP_RECORD(128) TYPE C
    So as I work in Belgium, it is the condition :
    WHEN 'BE'.                         ''ASL Belgien
          IF HLP_RECORD(6) NE '000000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
    which is checked. But this condition cleary check if the beginning of the XML is '000000' and if it is not, it stop the program.
    I searched for all the SAP notes about RFASLDPC but I found none about this problem.
    Did someone else have also this problem ? Did you find a way to solve this ?
    Thank you in advance for your help.
    Best Regards.
    Gregory Pierre.

    anyone has an idea ? ...

  • Index in Berkeley DB XML - Problems with time

    I have some querys that not show a better time after have been indexed.
    I saw that this query that show problems with index realize : ordering , substring and empty values or tag.
    This query was extracted from benchmark xbench x toxgene
    I will post the queryPlan and results before and after add index.
    computer configuration : pentim RAM : 2Gb HD : 160
    Results
    Query 1
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article w
    here every $b in $a/body/abstract/p satisfies contains($b, "hockey") return $a
    /prolog/title'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - Finished query execution, time taken = 168.522ms
    102 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article where every $b in $a/body/abstract/p satisfies cont
    ains($b, "hockey") return $a/prolog/title'
    dbxml> queryPlan 'for $a in collection("container_db_xbench_250Mb.dbxml")/articl
    e
    where every $b in $a/body/abstract/p satisfies contains($b, "hockey")
    return $a/prolog/title'
    <XQuery>
    <FLWOR>
    <ForBinding name="a">
    <Navigation>
    <QueryPlanFunction result="collection" container="container_db_xbench_25
    0Mb.dbxml">
    <OQPlan>U</OQPlan>
    </QueryPlanFunction>
    <Step axis="child" name="article" nodeType="element"/>
    </Navigation>
    <Where>
    <EveryFLWOR>
    <ForBinding name="b">
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="body" nodeType="element"/>
    <Step axis="child" name="abstract" nodeType="element"/>
    <Step axis="child" name="p" nodeType="element"/>
    </Navigation>
    </ForBinding>
    <Navigation>
    <Variable name="b"/>
    <DbXmlContains>
    <Sequence>
    <AnyAtomicTypeConstructor value="hockey" typeuri="http://www.w3.
    org/2001/XMLSchema" typename="string"/>
    </Sequence>
    </DbXmlContains>
    </Navigation>
    </EveryFLWOR>
    </Where>
    </ForBinding>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="prolog" nodeType="element"/>
    <Step axis="child" name="title" nodeType="element">
    <OQPlan>P(node-element-equality-string,prefix,title)</OQPlan>
    </Step>
    </Navigation>
    </FLWOR>
    </XQuery>
    dbxml>
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article w
    here every $b in $a/body/abstract/p satisfies contains($b, "hockey") return $a
    /prolog/title'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - container_db_xbench_250Mb.dbxml - P(title) : [405] 2(0x04020204) 3(
    0x04020204) 4(0x04020204) 5(0x04020204) 6(0x04020204) 7(0x04020204) 8(0x04020204
    ) 9(0x04020204) 10(0x04020204) 11(0x04020204) ...
    Query - Finished query execution, time taken = 710.093ms
    102 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article where every $b in $a/body/abstract/p satisfies cont
    ains($b, "hockey") return $a/prolog/title'
    Query 2
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article/pr
    olog order by $a/dateline/country return <Output> {$a/title} {$a/dateline/
    country} </Output>'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - Finished query execution, time taken = 248.939ms
    405 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog order by $a/dateline/country return <Outpu
    t> {$a/title} {$a/dateline/country} </Output>'
    dbxml> queryPlan 'for $a in collection("container_db_xbench_250Mb.dbxml")/articl
    e/prolog order by $a/dateline/country return <Output> {$a/title} {$a/datel
    ine/country} </Output>'
    <XQuery>
    <FLWOR>
    <ForBinding name="a">
    <Navigation>
    <QueryPlanFunction result="collection" container="container_db_xbench_25
    0Mb.dbxml">
    <OQPlan>U</OQPlan>
    </QueryPlanFunction>
    <Step axis="child" name="article" nodeType="element"/>
    <Step axis="child" name="prolog" nodeType="element"/>
    </Navigation>
    </ForBinding>
    <Sort>
    <Specification modifier="ascending|empty_least">
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="dateline" nodeType="element"/>
    <Step axis="child" name="country" nodeType="element">
    <OQPlan>P(node-element-equality-string,prefix,country)</OQPlan>
    </Step>
    </Navigation>
    </Specification>
    </Sort>
    <DOMConstructor type="element">
    <Name>
    <Sequence>
    <AnyAtomicTypeConstructor value="Output" typeuri="http://www.w3.org/20
    01/XMLSchema" typename="string"/>
    </Sequence>
    </Name>
    <Children>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="title" nodeType="element"/>
    </Navigation>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="dateline" nodeType="element"/>
    <Step axis="child" name="country" nodeType="element">
    <OQPlan>P(node-element-equality-string,prefix,country)</OQPlan>
    </Step>
    </Navigation>
    </Children>
    </DOMConstructor>
    </FLWOR>
    </XQuery>
    dbxml>
    Query - container_db_xbench_250Mb.dbxml - P(country) : NONE
    Query - container_db_xbench_250Mb.dbxml - P(country) : NONE
    Query - Finished query execution, time taken = 1573.17ms
    405 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog order by $a/dateline/country return <Outpu
    t> {$a/title} {$a/dateline/country} </Output>'
    Query 3
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article/pr
    olog where empty ($a/genre) return <NoGenre> {$a/title} </N
    oGenre>'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - Finished query execution, time taken = 207.782ms
    170 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog where empty ($a/genre) return <NoGenre>
    {$a/title} </NoGenre>'
    dbxml> queryPlan 'for $a in collection("container_db_xbench_250Mb.dbxml")/articl
    e/prolog where empty ($a/genre) return <NoGenre> {$a/title}
    </NoGenre>'
    <XQuery>
    <FLWOR>
    <ForBinding name="a">
    <Navigation>
    <QueryPlanFunction result="collection" container="container_db_xbench_25
    0Mb.dbxml">
    <OQPlan>U</OQPlan>
    </QueryPlanFunction>
    <Step axis="child" name="article" nodeType="element"/>
    <Step axis="child" name="prolog" nodeType="element"/>
    </Navigation>
    <Where>
    <Function name="{http://www.w3.org/2005/04/xpath-functions}:empty">
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="genre" nodeType="element">
    <OQPlan>P(node-element-presence-none,=,genre)</OQPlan>
    </Step>
    </Navigation>
    </Function>
    </Where>
    </ForBinding>
    <DOMConstructor type="element">
    <Name>
    <Sequence>
    <AnyAtomicTypeConstructor value="NoGenre" typeuri="http://www.w3.org/2
    001/XMLSchema" typename="string"/>
    </Sequence>
    </Name>
    <Children>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="title" nodeType="element"/>
    </Navigation>
    </Children>
    </DOMConstructor>
    </FLWOR>
    </XQuery>
    dbxml>
    0x0402025E) 9(0x040202D0) 10(0x0402023F) 11(0x0402020F) 14(0x0402020F) 15(0x0402
    0253) 17(0x0402025E) 20(0x040202EE) 23(0x040202C0) ...
    Query - container_db_xbench_250Mb.dbxml - P(genre) : [235] 4(0x0402024G) 5(
    0x0402025E) 9(0x040202D0) 10(0x0402023F) 11(0x0402020F) 14(0x0402020F) 15(0x0402
    0253) 17(0x0402025E) 20(0x040202EE) 23(0x040202C0) ...
    Query - Finished query execution, time taken = 2362.08ms
    170 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog where empty ($a/genre) return <NoGenre>
    {$a/title} </NoGenre>'
    Query 4
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article/pr
    olog/authors/author where empty($a/contact/text()) return <NoContact> {
    $a/name} </NoContact>'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - Finished query execution, time taken = 680.503ms
    212 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog/authors/author where empty($a/contact/text())
    return <NoContact> {$a/name} </NoContact>'
    dbxml> queryPlan 'for $a in collection("container_db_xbench_250Mb.dbxml")/articl
    e/prolog/authors/author where empty($a/contact/text()) return <NoContact>
    {$a/name} </NoContact>'
    <XQuery>
    <FLWOR>
    <ForBinding name="a">
    <Navigation>
    <QueryPlanFunction result="collection" container="container_db_xbench_25
    0Mb.dbxml">
    <OQPlan>U</OQPlan>
    </QueryPlanFunction>
    <Step axis="child" name="article" nodeType="element"/>
    <Step axis="child" name="prolog" nodeType="element"/>
    <Step axis="child" name="authors" nodeType="element"/>
    <Step axis="child" name="author" nodeType="element"/>
    </Navigation>
    <Where>
    <Function name="{http://www.w3.org/2005/04/xpath-functions}:empty">
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="contact" nodeType="element">
    <OQPlan>P(node-element-presence-none,=,contact)</OQPlan>
    </Step>
    <Step axis="child">
    <ItemType testType="text"/>
    </Step>
    </Navigation>
    </Function>
    </Where>
    </ForBinding>
    <DOMConstructor type="element">
    <Name>
    <Sequence>
    <AnyAtomicTypeConstructor value="NoContact" typeuri="http://www.w3.org
    /2001/XMLSchema" typename="string"/>
    </Sequence>
    </Name>
    <Children>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="name" nodeType="element">
    <OQPlan>P(node-element-equality-string,prefix,name)</OQPlan>
    </Step>
    </Navigation>
    </Children>
    </DOMConstructor>
    </FLWOR>
    </XQuery>
    2(0x0402020E) 2(0x04020212) 2(0x04020216) 2(0x0402021B) 2(0x0402021F) 2(0x04020
    223) 2(0x04020227) 2(0x0402022C) 2(0x0402022G) ...
    Query - Finished query execution, time taken = 48724.8ms
    212 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article/prolog/authors/author where empty($a/contact/text())
    return <NoContact> {$a/name} </NoContact>'
    Query 5
    dbxml> query 'for $a in collection("container_db_xbench_250Mb.dbxml")/article w
    here contains ($a//p, "the hockey") return <Output> {$a/prolog/ti
    tle} {$a/body/abstract} </Output>'
    Query - Starting query execution
    Query - container_db_xbench_250Mb.dbxml - U : [405] 2 3 4 5 6 7 8 9 10 11 1
    2 13 14 15 16 17 18 19 20 21 ...
    Query - Finished query execution, time taken = 3605.86ms
    383 objects returned for eager expression 'for $a in collection("container_db_xb
    ench_250Mb.dbxml")/article where contains ($a//p, "the hockey") return <O
    utput> {$a/prolog/title} {$a/body/abstract} </Output>'
    dbxml> queryPlan 'for $a in collection("container_db_xbench_250Mb.dbxml")/articl
    e where contains ($a//p, "the hockey") return <Output> {$a/prolo
    g/title} {$a/body/abstract} </Output>'
    <XQuery>
    <FLWOR>
    <ForBinding name="a">
    <Navigation>
    <QueryPlanFunction result="collection" container="container_db_xbench_25
    0Mb.dbxml">
    <OQPlan>U</OQPlan>
    </QueryPlanFunction>
    <Step axis="child" name="article" nodeType="element"/>
    <DbXmlFilter>
    <Navigation>
    <Step axis="descendant" name="p" nodeType="element"/>
    <DbXmlContains>
    <Sequence>
    <AnyAtomicTypeConstructor value="the hockey" typeuri="http://www
    .w3.org/2001/XMLSchema" typename="string"/>
    </Sequence>
    </DbXmlContains>
    </Navigation>
    </DbXmlFilter>
    </Navigation>
    </ForBinding>
    <DOMConstructor type="element">
    <Name>
    <Sequence>
    <AnyAtomicTypeConstructor value="Output" typeuri="http://www.w3.org/20
    01/XMLSchema" typename="string"/>
    </Sequence>
    </Name>
    <Children>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="prolog" nodeType="element"/>
    <Step axis="child" name="title" nodeType="element">
    <OQPlan>P(node-element-equality-string,prefix,title)</OQPlan>
    </Step>
    </Navigation>
    <Navigation>
    <Variable name="a"/>
    <Step axis="child" name="body" nodeType="element"/>
    <Step axis="child" name="abstract" nodeType="element"/>
    </Navigation>
    </Children>
    </DOMConstructor>
    </FLWOR>
    </XQuery>
    dbxml>
    time taken = 6038.12ms

    Hi Miriam,
    What storage model are you using, and are you using DBXML_INDEX_NODES? What indexes did you try to add to make these queries faster?
    John

  • XML problems with WM 5.0 emulator

    I have a FL 2.0 app that loads xml just fine. However, when I
    just tried it in the WM 5.0 320x240 emulator, it wouldn't load the
    xml, it gave an error, saying that the xml call was not associated
    with a key event or a mouse event. It's loaded through a function
    on the second frame, that shouldn't be a problem. Anyone else had
    this problem or know how to help me out? I did not think that the
    jump to 2.1 would be much of a challenge.
    It also runs full screen in the emulator, but off center, to
    the right.
    Any help is very much appreciated.

    Have you tested this on a device? Else we have a generic
    emulator for
    FlashLite 2.1(
    http://labs.adobe.com/wiki/index.php/Flash_Lite_2.1_Authoring)
    on Flash 8 professional. Can you try on a device or on
    FlashLite 2.1
    emulator with Flash 8?
    Regards,
    Vijayan.
    "bbonnet18" <[email protected]> wrote in
    message
    news:ej12gk$qf9$[email protected]..
    >I have a FL 2.0 app that loads xml just fine. However,
    when I just tried it
    >in
    > the WM 5.0 320x240 emulator, it wouldn't load the xml,
    it gave an error,
    > saying
    > that the xml call was not associated with a key event or
    a mouse event.
    > It's
    > loaded through a function on the second frame, that
    shouldn't be a
    > problem.
    > Anyone else had this problem or know how to help me out?
    I did not think
    > that
    > the jump to 2.1 would be much of a challenge.
    >
    > It also runs full screen in the emulator, but off
    center, to the right.
    >
    > Any help is very much appreciated.
    >

  • XML problem with one set of  url tags

    I have all my pages for my site on my xml map and have it successfully submitted to google webmster. All but one link, which google never recognizes for some reason. It is a strange little problem. The following is an example of how I have it written and it works for every page except for my login page!
    <url>
    <loc> http://www.myfaithworks.me/ </loc>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
    </url>
    <url>
    <loc> http://www.myfaithworks.me/apps/auth/login?try=1&next= </loc>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
    </url>
    Refering to the latter, the bottom tags are the problem, google will not allow me to submit for some reason. I think the problem is within the link, but this is the actual link. I don't knw what to do. I knw the tags have no error, and all my other pages have been accepted without any errors.

    Try this, it is possible that the error is because of '&' or '?'. Having a CDATA will ensure that the server will not try to parse those but instead treat them as text/characters.
    <url>
    <loc><![CDATA[http://www.myfaithworks.me/apps/auth/login?try=1&next=]]></loc>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
    </url>

  • Loading XML problem with spry

    I have a php page that creates a recordset from mySQL and the exports it as XML so I can load it into dreamweaver to use with spry
    this particular recordset filters the results according to a session variable, so the results are relevant to the logged in user
    in dreamweaver the XML will not load though, as I assume this is because dreamweaver does not have a session with the server, so the required session variable does not exist.  the page access is also restricted (needs a user to have logged in tot he site thus creating the session)
    how can I set the sesssion variable in dreamweaver so when it requests the XML is will load
    hope that makes sense

    If you talking about seeing the SPRY XML in the Bindings panel, then Dreamweaver cannot set a Session Variable to my knowledge.
    What I do is use a Default Value in my SQL statement to guarantee it returns a recordset.
    Hope this helps.

  • XML: Problem with getting the nodevalue

    Hi all,
    I have the following xml-file:
    <ROOT>
    <ROW1>
    <Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer>
    </ROW1>
    </ROOT>
    I need to get the full-nodevalue of <Outer> (Outer1 <Inner>Inner</Inner> Outer2).
    I do not use the XMLDB and XMLType.
    I parse the XML-File using xmlparser and xmldom packages from pl/sql.
    Any ideas?
    Regards

    Probably can anyone help me to get only Outer2?
    With xmldom.getnodevalue I get only Outer1.
    Regards

  • Problem with generating xml and nested cursor (ora-600)

    I have a problem with generating xml (with dbms_xmlquery or xmlgen) and nested cursors.
    When I execute the following command, I get a ORA-600 error:
    select dbms_xmlquery.getxml('select mst_id
    , mst_source
    , cursor(select per.*
    , cursor(select ftm_fdf_number
    , ftm_value
    from t_feature_master
    where ftm_mstr_id = pers_master_id ) as features
    from t_person per
    where pers_master_id = mst_id ) as persons
    from f_master
    where mst_id = 3059435')
    from dual;
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-00600: internal error code, arguments: [kokbnp2], [1731], [], [], [], [], [], []
    </ERROR>
    The problem is the second cursor (t_feature_master).
    I want to generate this:
    <master>
    <..>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    </master>
    If i execute the select-statement in sql-plus, then I get the next result.
    MST_ID MST_SOURCE PERSONS
    3059435 GG CURSOR STATEMENT : 3
    CURSOR STATEMENT : 3
    PERS_MASTER_ID PERS_TITLE PERS_INITI PERS_FIRSTNAME PERS_MIDDL PERS_LASTNAME
    3059435 W. Name
    CURSOR STATEMENT : 15
    FTM_FDF_NUMBER FTM_VALUE
    1 [email protected]
    10 ....
    I use Oracle 8.1.7.4 with Oracle XDK v9.2.0.5.0.
    Is this a bug and do somebody know a workaround?

    Very simple...Drop all type objects and nested tables and create them again. You will get no error. I'll explain the reason later.

  • Problems with codepage after refreshing data from XML

    Hello,
    I've created a dashboard with XML connection.
    XML file with new data is created via macro in INPUT.xls Excel file. This INPUT.xls file was created through exporting spreadsheet from Xcelsius and then adding a macro to it, so text data should be this same codepade. Generated XML through macro have no errors and Flash file gets numeric data with no problems.
    But there is other problem with text's codepage. After reload there are some unidentified symbols in place of polish alphabet letters.
    What should I do to make it right? Is this a problem with codepage or something else?
    [Dashboard Before Refresh|http://lh4.ggpht.com/_Q8NK6X6PPLg/TGkLwo3sxZI/AAAAAAAAA_g/mkBiDdM4Gi4/s640/before_refresh.JPG]
    [Dashboard After Refresh|http://lh4.ggpht.com/_Q8NK6X6PPLg/TGkLwSx9fHI/AAAAAAAAA_c/3UeM2Gd3HvA/s640/after_refresh.JPG]
    If you have any idea hot to fix it, please let me know.
    Best regards,
    Bart Dlug

    Hello,
    I have header in my XML as follows:
    <?xml version="1.0" encoding="Windows-1250"?>
    Only then my XML file is displayed correctly in Internet Explorer preview. When I chagne it to UTF-8 I get some errors.
    [XML with windows-1250 codepage|http://lh3.ggpht.com/_Q8NK6X6PPLg/TGkUakDHjlI/AAAAAAAAA_o/lLlJFMcSaFQ/s800/codepage1250.JPG]
    [The same XML with UTF-8|http://lh5.ggpht.com/_Q8NK6X6PPLg/TGkUa8k4vyI/AAAAAAAAA_s/tdcZNqu7-i0/s800/codepage-UTF8.JPG]
    Error message means: Invalid character was found in text content. Error during processing resourcse file:///
    As I wrote before, my data is generated via macro in Excel, so I supose my data in this file has windows default codepage. Am I right?
    Do you think that I problem is XML file?
    Best regards,
    BD

  • Problem with XML on Linux

    hi everybody,
    I've a big problem with XML on Linux, in details I see my program stopping on Linux at the instruction
    XMLReader xr = XMLReaderFactory.createXMLReader("org.apache.crimson.parser.XMLReaderImpl");
    and it's strange because on Windows it runs and there aren't problems about permissions on files, does anyone knows what to do?
    thanks in advance!
    Stefano

    What happens on that line? I'm assuming you get some kind of error or exception.
    Make sure the JAR file for Crimson is in your classpath.

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • Problem with tabs in xml text

    I have a problem with my XML setup here
    i use Tab key to aligh up info in the xml text for aligned
    display in the program
    hoever i tested on several computers and get different
    resolts.
    how can i fix this.
    Please view the linked Image
    http://img129.imageshack.us/img129/8394/flashtextproblemti4.jpg
    this is what happenes even thow all run xp and all run same
    latest flash version.
    Anyone got an ideer how i can solve this.
    BTW the font is verdana.
    This is my actionscript ....
    // Function to parse an address
    f_parseAddress = function () {
    // Set the text
    _root.stageholder.textfield.htmlText =
    this.firstChild.firstChild.firstChild.nodeValue;
    // Create the XML object
    XML_address = new XML();
    // Set up the XML object
    XML_address.ignoreWhite = true;
    // Add the handlers
    XML_address.onLoad = f_parseAddress;
    // Load the XML file
    XML_address.load("./Data/xml/kontakt.xml");
    This is my XML file
    <?xml version="1.0" encoding="iso-8859-1"?>
    <text>
    <address>
    <![CDATA[
    <font size="20">Company name</font>
    Company name
    address
    address
    Dir. tlf. + xx xx xx xx xx
    + xx xx xx xx xx
    Mobil + xx xx xx xx xx
    + xx xx xx xx xx
    web: <a href="
    http://www.xxxxxxxxxxxxx.xx"><b>www.xxxxxxxxxxxxx.xx</b></a>
    E-mail: <a
    href="mailto:[email protected]"><b>[email protected]</b></a>
    ]]>
    </address>
    </text>
    If anyone got a solution on how i can get my text to allign
    corect
    i would like to hear about it
    Best reguards
    Mis

    alrighty then try this xml structure.
    Note: formatting information like b, or linkage tags should
    not be part of the xml.
    The XML format is a universal format for data, if you fill it
    with style information this is not good practive (in general, there
    are of course scenarios where it makes sense, also since (x)html IS
    also XML).
    In your case you want to put the information about multiple
    companies in a xml file, but you let the flash decide how to
    display format this information.
    so if you use the sugested XMl structure you will have full
    control of the layout within flash, because you can grab every
    piece of information from the xml and place it jsut where you want
    in flash and format it within flash.
    Of course this process is more coding work than your previous
    attempt, but it pays of when you have a lot of data to process and
    when you want to have full control of the final layout.
    But maybe its overkill for your application (I don't know how
    many companies will be stored in your xml and how complex the rest
    of the app is).

  • Problem with '&' character in xml

    Hello!
    i work with XI3.0 sp19
    i have a interface ftp ->XI-> idoc.
    ftp adapter send a xml file.
    I solve all problems with special characters using encoding="ISO-8859-9", but i have problem when in my message there are a '&' character.
    any idea?????

    This has been discussed lately:
    Ampersand ('&')  in  XML - Mapping error
    Regards
    Stefan

  • Problem with the hierarchial fields in a Purchase order xml report

    Hi,
    I am having a problem with the hierarchy problem. We are populating attribute 15 of a PO header. some times it can be null. FYI, we are using 11.5.10 instance where oracle supports direct PO template rather than having a rdf file.
    And now in the xml report, if attribute15 of po header is not null then it is fine.
    But if attribute15 is null, then the template is picking from the next available attribute15 that is from the po lines. As the line level group of "LINES" is between the "PO_DATA" (header group), hence the template is checking for next available attribute15.
    Can any one please suggest how to design the template where we can make the template to check only for that tag at the header level group rather than the line level group tag?
    Thank You in advance.
    Regards,
    Srinivas.

    Hi
    Incase you want to transfer attachements from SRM to R/3, then you try implementing the BADI in SRM side. The BADI which will help in this case is
    <b>BBP_CREATE_PO_BACK</b> BADI.
    <b>Please read the standard SAP documentation of this BADI using SE18 Transaction, before making any code changes.</b>
    <u>Few Important SAP OSS notes to refer in this case -></u>
    Note 989184 - Transferred shopping cart with internal attachments
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 916347 - Transfer shopping cart with internal attachments
    Note 1001130 - FAQ - Attachment questions (Buyside)
    <u>Few useful links -></u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/49/b32640632cea01e10000000a155106/frameset.htm
    Re: Attachments to backend
    Re: Document Attachments in Shopping Cart
    Re: Attachment in SRM
    Re: SRM Documents and Attachments
    Re: Limit in Attachments of an item in Shopping Cart
    Re: return delivery text from material document is not passed to SUS
    </b>
    Do let me know, incase you face any problems.
    Regards
    - Atul

  • Error message in .docx : 'Open XML file cannot be opened because there are problems with the contents. Details Unspecific error Location: 2'

    I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
    error, Location: 2'
    When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
    were illegible, but no other weirdness was observed.
    I have microsoft 2008 installed on my Mac OS X version 10.6.8.
    I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
    I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docx

    Hi,
    This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
    Please use the "Fix it" tool in the following KB article to resolve the problem. See:
    http://support.microsoft.com/kb/2528942
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • PDFGenerator/OCR fails if primary OCR language EN

    I am trying to create and ocr a PDF from scanned invoice Nextra.tif with Primary OCR language setting different from English. The scanned document Nextra.tif converts and ocrs fine in stand-alone Acrobat 8.1.1 Pro on any Primary OCR language settings

  • How to call a ODI Job using Command line?

    Hello All, Please help me on this.. How to call an ODI Job using Command line? Thanks Ravikiran

  • Hiding the Selection-screen contents

    Hi all, I wants to hide below selection screen contents(do'nt wants to display in the output) SELECTION-SCREEN BEGIN OF BLOCK alv WITH FRAME TITLE alvframe. PARAMETERS:   p_layout    LIKE disvariant-variant,   p_list              RADIOBUTTON GROUP al

  • Decorative Additions

    hello :) I'm using Adobe Photoshop Elements 5.0 with Windows XP... and need help with something!! http://photos-114.ll.facebook.com/photos-ll-sctm/v119/213/113/1430790114/n1430790114_3003 3990_5649.jpg The white swirly thing in the top righthand corn

  • How do I get gmail notifications on osx?

    after finding out that mail does not support push mails from gmail I prefer to use the original online gmail client. Can anyone tell me how I can get desktop notifications for that?