Regrouping XML Data that includes two paths

Hi all,
Apreciate your inputs on the issue I am facing:
Using the xml below, I want to
first group by <ID> <-- used <?for-each-group:GROUP;./ID?>
and then within the <ID> group by SDATE - EDATE combinations
And AMT to show the sum of the SDATE - EDATE combination.
Issue I am facing is that SDATE - EDATE combinations are displayed for each <GROUP>, instead of within <ID> grouping.
Expected results:
ID 123
SDATE - EDATE -- AMT
23/MAY/2008 - 22/JUN/2008 -- 27.90
23/JUN/2008 - 22/JUL/2008 -- 17.42
23/JUL/2008 - 22/AUG/2008 -- 8.71
23/JUL/2008 - 31/JUL/2008 -- 8.71
ID 1234
SDATE - EDATE -- AMT
23/MAY/2008 - 22/JUN/2008 -- 13.77
23/JUN/2008 - 22/JUL/2008 -- 8.71
23/JUL/2008 - 31/JUL/2008 -- 8.71
Sample xml:
- <G_GROUP>
- <GROUP>
<ID>123</ID>
- <GROUPDETAIL>
<SDATE>23/MAY/2008</SDATE>
<EDATE>22/JUN/2008</EDATE>
<AMT>14.13</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUN/2008</SDATE>
<EDATE>22/JUL/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUL/2008</SDATE>
<EDATE>22/AUG/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
</GROUP>
- <GROUP>
<ID>123</ID>
- <GROUPDETAIL>
<SDATE>23/MAY/2008</SDATE>
<EDATE>22/JUN/2008</EDATE>
<AMT>13.77</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUN/2008</SDATE>
<EDATE>22/JUL/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUL/2008</SDATE>
<EDATE>31/JUL/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
</GROUP>
- <GROUP>
<ID>1234</ID>
- <GROUPDETAIL>
<SDATE>23/MAY/2008</SDATE>
<EDATE>22/JUN/2008</EDATE>
<AMT>13.77</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUN/2008</SDATE>
<EDATE>22/JUL/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
- <GROUPDETAIL>
<SDATE>23/JUL/2008</SDATE>
<EDATE>31/JUL/2008</EDATE>
<AMT>8.71</AMT>
</GROUPDETAIL>
</GROUP>
</G_GROUP>
Edited by: user4697912 on May 26, 2009 11:44 PM

Hi,
That's weird...maybe you've put a <?current-grouping-key()?> in front of <?SDATE?> - <?EDATE?> .
With my post above you get the following:
123
23/MAY/2008 - 22/JUN/2008 27.9
23/JUN/2008 - 22/JUL/2008 17.42
23/JUL/2008 - 22/AUG/2008 8.71
23/JUL/2008 - 31/JUL/2008 8.71
1234
23/MAY/2008 - 22/JUN/2008 13.77
23/JUN/2008 - 22/JUL/2008 8.71
23/JUL/2008 - 31/JUL/2008 8.71
Regards,
Colectionaru

Similar Messages

  • Can spry save the xml data that changes in the webpage into a new xml file to store in the computer?

    I'm very new to spry, after some work time, I have another
    question:
    If the user create their own xml data (using some spry data
    actions) and want to save it to the computer (an xml or txt file),
    can spry do this?
    Thanks for all your help.

    Hi,
    Please check then note mentioned below.
    Note 1227887 - CCMS: Error messages in SM21 and SOAMANAGER (SCS)
    Thanks
    Rishi Abrol

  • XML data source and relative path

    Hi,
    I'm developing my reports in a Windows environment and deploying it on a Linux. My problem is, I cannot seem to specify a relative path for my XML datasource. Since, my deployement is in Linux, I cannot have the standard "C:\myreport\def.xml".
    Is there a way to use a relative path? I've tried creating a environment variable but it gives me the following error.
    ERR 63001: Invalid stream in the Data Definition URL file:///%reports/data.xml null
    -John

    I guess you must be missing some "/" in the values youre passing. Remember that it's also case sensitive. Here's what I did in my report
    The data definition has this value :
    file:///&<P_XML_CFG_PATH>ReconReports.xsd
    P_XML_CFG_PATH = //reports/dtd/
    For the Datasource
    file:///&<P_XML_PATH>&<P_XML_DATAFILE>
    And the value would be something like
    P_XML_PATH = /reports/data/xml/
    P_XML_DATAFILE = <actual filename>

  • How to Change the XML data that got stuck up in XI

    Hi,
    I am executing a scenario which sends the data from HTTP client>Xi->SAP(R/3 4.6).We are queuing the messages in XI, through QoS EOIO.Sender side we have configured the HTTP adapter and on receiver side we have configured RFC adapter.RFC at receiver side throws an exception, if I try to call rfc from XI by sending  wrong data to it from HTTP client.The message which is failed gets stuck up in the queue , whose status will be shown as System Error.So, No messages will be further processed from that queue.
    Our Requirement is, We need to manually change the xml file which is  failed while trying to post data in to SAP.Could any one help me  to find where the Failed xml file gets stored in XI and how can we change the file .
    Regards,
    Kiran kumar.

    Mario,
    This is possible from SP 19 onwards...
    Have a look @
    /people/gourav.khare2/blog/2007/02/28/sapxi--message-editing-150-responsibility-and-liability-150-sp19
    Also, the comments in the blog. Really good
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4a576b5b7430f3e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4a576b5b7430f3e10000000a11466f/frameset.htm
    Regards,
    Jai Shankar

  • Dynamics crm 2015 import fail entity ribbon XML data that represents the customized elements of the ribbon for an enitity" error.

    while import the solution into dynamics crm 2015.import fail is getting.could anybody help me on this.
    hsk srinivas

    Hello,
    I believe first step is to Download Log File and recheck it for error.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Problem inserting and querying XML data with a recursive XML schema

    Hello,
    I'm facing a problem with querying XML data that is valid against a recursive XML Schema. I have got a table category that stores data as binary XML using Oracle 11g Rel 2 on Windows XP. The XML Schema is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="bold_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="keyword_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
                   <xs:element name="plain_text" type="xs:string"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="emph_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="text_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="parlist_type">
              <xs:sequence>
                   <xs:element name="listitem" minOccurs="0" maxOccurs="unbounded" type="listitem_type"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="listitem_type">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="parlist" type="parlist_type"/>
                   <xs:element name="text" type="text_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:element name="category">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name"/>
                        <xs:element name="description">
                                  <xs:complexType>
                                            <xs:choice>
                                                           <xs:element name="text" type="text_type"/>
                                                           <xs:element name="parlist" type="parlist_type"/>
                                            </xs:choice>
                                  </xs:complexType>
                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="id"/>
                                            </xs:complexType>
                        </xs:element>
    </xs:schema>I registered this schema and created the category table. Then I inserted a new row using the code below:
    insert into category_a values
    (XMlElement("category",
          xmlattributes('categoryAAA' as "id"),
          xmlforest ('ma categ' as "name"),
          (xmlelement("description", (xmlelement("text", 'find doors blest now whiles favours carriage tailor spacious senses defect threat ope willow please exeunt truest assembly <keyword> staring travels <bold> balthasar parts attach </bold> enshelter two <emph> inconsiderate ways preventions </emph> preventions clasps better affections comes perish </keyword> lucretia permit street full meddle yond general nature whipp <emph> lowness </emph> grievous pedro')))    
    The row is successfully inserted as witnessed by the results of row counting. However, I cannot extract data from the table. First, I tried using SqlPlus* which hangs up and quits after a while. I then tried to use SQL Developer, but haven't got any result. Here follow some examples of queries and their results in SQL Developer:
    Query 1
    select * from category
    Result : the whole row is returned
    Query 2
    select xmlquery('$p/category/description' passing object_value as "p" returning content) from category
    Result: "SYS.XMLTYPE"
    now I tried to fully respect the nested structure of description element in order to extract the text portion of <bold> using this query
    Query 3
    select  xmlquery('$p/category/description/text/keyword/bold/text()' passing object_value as "p" returning content) from  category_a
    Result: null
    and also tried to extract the text portion of element <text> using this query
    Query 4
    select  xmlquery('$p/category/description/text/text()' passing object_value as "p" returning content) from  category_a
    Result: "SYS.XMLTYPE".
    On the other hand, I noticed, from the result of query 1, that the opening tags of elements keyword and bold are encoded as the less than operator "&lt;". This explains why query 3 returns NULL. However, query 4 should display the text content of <text>, which is not the case.
    My questions are about
    1. How to properly insert the XML data while preserving the tags (especially the opening tag).
    2. How to display the data (the text portion of the main Element or of the nested elements).
    The problem about question 1 is that it is quite unfeasible to write a unique insert statement because the structure of <description> is recursive. In other words, if the structure of <description> was not recursive, it would be possible to embed the elements using the xmlelement function during the insertion.
    In fact, I need to insert the content of <description> from a source table (called category_a) into a target table (+category_b+) automatically .
    I filled category_a using the Saxloader utility from an flat XML file that I have generated from a benchmark. The content of <description> is different from one row to another but it is always valid with regards to the XML Schema. The data is properly inserted as witnessed by the "select * from category_a" instruction (500 row inserted). Besides, the opening tags of the nested elements under <description> are preserved (no "&lt;"). Then I wrote a PL/SQL procedure in which a cursor extracts the category id and category name into varchar2 variables and description into an XMLtype variable from category_a. When I try to insert the values into a category_b, I get the follwing error:
    LSX-00213: only 0 occurrences of particle "text", minimum is 1which tells that the <text> element is absent (actually it is present in the source table).
    So, my third question is why are not the tags recognized during the insertion?
    Can anyone help please?

    Hello,
    indded, I was using an old version of Sqlplus* (8.0.60.0.0) because I had a previous installation (oracle 10g XE). Instead, I used the Sqlplus* shipped with the 11g2database (version 11.2.0.1.0). All the queries that I wrote work fine and display the data correctly.
    I also used the XMLSERIALIZE function and can now display the description content in SQL Developer.
    Thank you very much.
    To answer your question Marco, I registered the XML Schema using the following code
    declare
      doc varchar2(4000) := '<?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="bold_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="keyword_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
                   <xs:element name="plain_text" type="xs:string"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="emph_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="text_type" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="bold" type="bold_type"/>
                   <xs:element name="keyword" type="keyword_type"/>
                   <xs:element name="emph" type="emph_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="parlist_type">
              <xs:sequence>
                   <xs:element name="listitem" minOccurs="0" maxOccurs="unbounded" type="listitem_type"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="listitem_type">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="parlist" type="parlist_type"/>
                   <xs:element name="text" type="text_type"/>
              </xs:choice>
         </xs:complexType>
         <xs:element name="category">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name"/>
                        <xs:element name="description">
                                  <xs:complexType>
                                            <xs:choice>
                                                           <xs:element name="text" type="text_type"/>
                                                           <xs:element name="parlist" type="parlist_type"/>
                                            </xs:choice>
                                  </xs:complexType>
                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="id"/>
                                            </xs:complexType>
                        </xs:element>
    </xs:schema>';
    begin
      dbms_xmlschema.registerSchema('/xmldb/category_auction.xsd', doc,     LOCAL      => FALSE, 
            GENTYPES   => FALSE,  GENBEAN    => FALSE,   GENTABLES  => FALSE,
             FORCE      => FALSE,
             OPTIONS    => DBMS_XMLSCHEMA.REGISTER_BINARYXML,
             OWNER      => USER);
    end;then, I created the Category table as follows:
    CREATE TABLE category_a of XMLType XMLTYPE store AS BINARY XML
        XMLSCHEMA "xmldb/category_auction.xsd" ELEMENT "category";Now, there still remains a problem of how to insert the "description" content which I serialized as a CLOB data into another table as XML. To this purpose, I wrote a view over the Category_a table as follows:
    CREATE OR REPLACE FORCE VIEW "AUCTION_XWH"."CATEGORY_V" ("CATEGORY_ID", "CNAME", "DESCRIPTION") AS
      select category_v."CATEGORY_ID",category_v."CNAME",
      XMLSerialize(content ( xmlquery('$p/category/description/*' passing object_value as "p" returning content)) as clob) as "DESCRIPTION"
      from  auction.category_a p, 
    xmltable ('$a/category' passing p.Object_Value as "a"
    columns  category_id varchar2(15) path '@id',
              cname varchar2(20) path 'name') category_v;Then, I wrote a procedure to insert data into the Category_xwh table (the source and target tables are slightly different: the common elements are just copied wereas new elements are created in the target table). The code of the procedure is the following:
    create or replace PROCEDURE I_CATEGORY AS
    v_cname VARCHAR2(30);
    v_description clob ;
    v_category_id VARCHAR2(15);
    cursor mycursor is select category_id, cname, description from category_v;
    BEGIN
    open mycursor;
      loop
      /*retrieving the columns*/
      fetch mycursor into v_category_id, v_cname, v_description ;
      exit when mycursor%notfound;
      insert into category_xwh values
      (XMlElement("category",
          xmlattributes(v_category_id as "category_id"),
          xmlelement("Hierarchies", xmlelement("ObjHierarchy", xmlelement ("H_Cat"),
                                                               xmlelement ("Rollsup",
                                                                                  (xmlelement("all_categories",
                                                                                   xmlattributes('allcategories' as "all_category_id")))
        xmlforest (
                  v_cname as "cat_name",
                  v_description as "description")    
    end loop;
      commit;
      close mycursor;
    END I_CATEGORY;When I execute the procedure, I get the following error:
    LSX-00201: contents of "description" should be elements onlyso, I just wonder if this is because v_description is considered as plain text and not as XML text, even if its content is XML. Do I need to use a special function to cast the CLOB as XML?
    Thanks for your help.
    Doulkifli

  • XML data inserting into Master, not Page

    First, I fully admit that I jumped into the deep end of the pool.  This is my first InDesign project and I'm trying to set up a 2-page spread master to support loading my content from XML.
    Thanks to the great online help, these forums/community resources, and my growing bookshelf, I've successfully (or so it seems) created my Master layout, with frames appropriately tagged for my XML (as confirmed by the Structure).  Since I'm very novice at InDesign, my testing isn't always unambiguous, but I HAVE successfully loaded my external XML (including graphics and anchored text, plus the story) into my document.
    The problem is that the data seems to be flowing into the Master, and not the Page.  So if I create all the pages I need ahead of time (right now just 2 spreads for my test), both pages are populated with the first record.
    If I only create the first spread, then the data flows and I get the magic "+" for overflow, but I can't click on it in the Page.  If I change to the Master I can click on it, which seems the major clue as to why this isn't working.  I just have no idea how to fix it.
    From everything I've read it seems that I should be able to tag my frames in the Master (which I want to reuse for other documents) and have the data flow into the Pages.
    Am I missing something obvious? 
    Or is what I'm trying to do just not possible?  (if so, does that mean I have to keep re-tagging the frames every time I make a new Document?  ugh)
    I've spent hours trying to resolve this, and would really appreciate a pointer to get me moving again.
    Thanks!
    julie

    Hm, that seems contradictory to everything I've read and the examples I've seen  (although I may have misunderstood the examples - none are quite as complicated as my layout).  My text frame has several anchors for XML data that doesn't just flow with the story.  How do I set up the tagged anchor frames I need if the story text frame is in the Master but not tagged?
    I thought that the story text frame and the anchor frames (some graphics and some text) all needed to be in the same context.  If I put them in the Master I get the XML flowing into the Master.  If I put them into the Page then the new pages created don't have the proper frames.  If I just put the story text frame in the Master, how do I associate it with the anchor frames (I only know how to do this by using the Story editor on the tagged frame as described in A Designer's Guide To Adobe InDesign and XML)?
    I'll go back and work through the samples again, but I definitely don't understand how it all fits together.
    Thanks!
    j

  • R12 Payment Process Request Status Report adding extra columns to XML data.

    In 11i, we had modified the Preliminary Payment Report to include extra columns ( invoice distributions). In r12 , that report is obsolete and Oracle introduced a new report "Payment Process Request Status Report". This request uses BI Publisher to generate the final report output. I am unable to modify the template since the XML output of the report does not
    contain the invoice distribution account data. We need to know how can we modify the XML data to include the extra columns.
    For Funds Disbursement Process ( Payment Instruction File) , Oracle provides IBY_FD_EXTRACT_EXT_PUB extensibility package to construct custom XML element structure that can be added to the payment XML extract generated by Oracle Payments. Do we have something similar for this report ? Are there any other options available ?
    Thanks

    Hi
    The same package "IBY_FD_EXTRACT_EXT_PUB" works for payment process request status report also. Please add the logic to get the distribution data in this package and you will see the new XML tags in this report also.
    Hope this helps.
    Vinit

  • What is the best way to get rid of duplicates in the XML data?

    Hi all,
    Please help me with the best way to get rid of the duplicates in the XML data. Will a transform with some stylesheet do the trick? I need to read on the stylesheet first, but please tell me if that is possible. I have to deal with XML data that has tons of duplicate data. Please see one section of an XML file. You can see that for each charge, the same defendant information (address, ID numbers, etc) is included. Having 10 charges is not uncommon, so I would have the same data repeated 10 times. I first thought that I would use some temp tables to do that, but I wonder if there were a better way. Thanks a lot. Please see the data below.
    Ben
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622212">
                        <Charge chargeKey="622212" chargeVersionKey="2320743">
                             <ChargeSequenceID>1</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="719">
                                  <StatuteOrdinanceRuleCite>609.222.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>M1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                   <DispositionEvent>
                        <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                        <ChargeDispositionJudge judgeKey="00553C">
                             <JudgeName>
                                  <PersonGivenName>Thomas</PersonGivenName>
                                  <PersonMiddleName>William</PersonMiddleName>
                                  <PersonSurName>Bibus</PersonSurName>
                                  <PersonFullName>Bibus, Thomas William</PersonFullName>
                             </JudgeName>
                             <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                        </ChargeDispositionJudge>
                        <ChargeDispositionText>Convicted</ChargeDispositionText>
                        <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                        <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                   </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622213">
                        <Charge chargeKey="622213" chargeVersionKey="2320744">
                             <ChargeSequenceID>2</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="717">
                                  <StatuteOrdinanceRuleCite>609.221.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>B1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                        <DispositionEvent>
                             <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                             <ChargeDispositionJudge judgeKey="00553C">
                                  <JudgeName>
                                       <PersonGivenName>Thomas</PersonGivenName>
                                       <PersonMiddleName>William</PersonMiddleName>
                                       <PersonSurName>Bibus</PersonSurName>
                                       <PersonFullName>Bibus, Thomas William</PersonFullName>
                                  </JudgeName>
                                  <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                             </ChargeDispositionJudge>
                             <ChargeDispositionText>Convicted</ChargeDispositionText>
                             <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                             <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                        </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>

    ds store wrote:
    ClamXav is only a scanner, it can't remove the MacDefender malware.
    Yes, it can. ClamXav scans and quarantines it. It was updated.
    http://www.reedcorner.net/news.php/?p=98
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Xml data considered than strings character in«append»&«insert-aft»operation

    Hello,
    I use BPEL10.1.3.1. Here is my problem. I recuperate in a database a CLOB data type :
    <c>
    <d>
    <e></e>…
    </d>
    <f>
    <g></g>
    <h></h>…
    </f>
    </c>
    I insert this CLOB data type in a new variable "compteRenduXml" (type : simple type, xsd language). When I visualize my "compteRenduXml" variable, it is a xml data (that's OK).
    I am trying to insert the "compteRenduXml" variable after the <b>…</b> operation :
    <a>
    <b>…</b>
    </a>     
    The problem is the variable I would like to insert is considered than strings character (and not xml data ! ).
    After, when I try to insert a value in "<e>abcd</e>" for example, I have this error : « The XPath chain does not return any node. »
    Can you help me ?
    Thank you.
    Tania

    If in my Sqlloader script I use :
    INTO TABLE XML_DOCUMENT_TABLE_VWO TRUNCATE
    XMLType(xmlcol)
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    xmlcol
    I have always this error whith the two XML document (< 255 kb, & > 255 Kb)
    Table XML_DOCUMENT_TABLE_VWO, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    XMLCOL FIRST * , O(") CHARACTER
    Record 1: Rejected - Error on table XML_DOCUMENT_TABLE_VWO.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier

  • Use of External tables to load XML data.

    Hi,
    I have used external table definitions to load various XML files to the database, usually splitting the XML into seperate records - 1 per major element tag, and using PL/SQL to parse out a primary key to store in a relational table with all of the XML relevant to that primary key value stored as an XMLTYPE coumn in a row of the table. This has worked fine for XML with a single major entity (element tag) .
    However, I now have an XML file that contains two "major" elements (both children of the root) that I would like to split out and store in seperate tables.
    The XML file is of the following basic format:-
    <drugs>
    <drug>drug 1...</drug>
    <drug>drug 2...</drug>
    <partners>
    <partner>partner 1</partner>
    <partner>partner 2</partner>
    </partners>
    </drugs>
    The problem is there are around 18000 elements of the first type, followed by several thousand of the 2nd type. I can create two seperate external tables - one for each element type, but how do I get the external table for the 2nd to ignore all the elements of the first type? My external table definition is :-
    CREATE TABLE DRUGBANK_OWNER.DRUGBANK_PARTNERS_XML_EXTERNAL
    DRUGBANK_XML CLOB
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DRUGBANK_DIR
    ACCESS PARAMETERS
    ( records delimited by "</partner>" SKIP 100000
    characterset al32utf8
    badfile extlogs:'drugbank_partners_xml.bad'
    logfile extlogs:'drugbank_partners_xml.log'
    discardfile extlogs:'drugbank_partners_xml.dis'
    READSIZE 52428800
    fields
    drugbank_xml CHAR(50000000) terminated by '</partners>'
    LOCATION (DRUGBANK_DIR:'drugbank.xml')
    REJECT LIMIT UNLIMITED
    PARALLEL ( DEGREE 8 INSTANCES 1 )
    NOMONITORING;
    The problem is that before the first <partners> element the 1800 or so <drugs> elements cause a data cartrdige error:-
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-29400: data cartridge error
    KUP-04020: found record longer than buffer size supported, 52428800
    This happens regardless of the value of the SKIP or the size of the drugbank_xml field.
    I have tried using an OR on the "records delimited by" access parameter, to 'delimit by "</partner>" OR "</drug>"', with the intention of filtering out the <drug> elements but this leads to a syntax error.
    Anyone ever tried anything similar and got it to work?
    Any other suggestions?
    Thanks,
    Sid.

    No, the content inside quotes is spanned across multiple lines....there are line breaks after every html tag.
    "What's the error message you are getting?"
    Iam not getting any error while selecting from external table , but I am getting tose rows in BAD file and log file has the following entries
    KUP-04021: field formatting error for field TKBS_DSCN
    KUP-04036: second enclosing delimiter not found
    Message was edited by:
    user627610

  • XML Data Provider - Information

    Hi!
    I am using the web item "Data Provider - Information" in the WAD to get a query result in XML. When i choose view source in the explorer i can see the XML generated.
    My problem is that this generated XML generates one "XML set" for the characteristics in the query and one "XML set" for the key figures in the query.
    By this i mean that when i copy the xml from the "view source" file and save it as its own XML file i have to save it as one file for the Key Figures and one file for the Characteristics.
    Like this(Characteristic OMaterial and KeyFiure NetValue):
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <material>12345</material>
    </item>
    and
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <net_value>100</net_value>
    </item>
    I would like the web item to generate a XML file that includes both the KeyFigures and the Characteristics.
    Like this:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <material>12345</material>
    <net_value>100</net_value>
    </item>
    Do any of you know if/how this is possible?
    Thanks,
    Charlotte

    Hey, sounds like you're getting pretty close. The next thing is integrating the XSLT transform into a web template. I'm actually working on a paper on this that I'll put out at some point. Anywho, here's a sample template that does the XSLT transform on load of the page... The most important thing is that the web template has property "STATELESS=X" so that any navigation you do reruns the transform. This way, you can still navigate and do BW type activities while still transforming the result set. This is very powerful and you'll be able to change or do anything using XSLT transforms. I'm even working on creating javascript functions that run these transforms to do left outer joins and inner joins based on 2 XML result sets. This way, even if data isn't modeled together, it can be presented together. I'm working through the kinks of some of these transforms. Also, I'm working to integrate stylesheet support into my transform as well. Just substitute your transform into the sample template below and it'll render an html table for the XML Query Result Set.
    [code]
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value="ZV_STAT_CUBE_VIEW"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZPD_STAT_XSL_3"/>
             <param name="STATELESS" value="X"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
    <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <script language="JavaScript">
          function loadIt() {
            XMLQUERYVIEWDATA_1.async = false;
    xsl_result_1.innerHTML = XMLQUERYVIEWDATA_1.transformNode(xsl_transform_1.documentElement);     
    alert(XMLQUERYVIEWDATA_1.transformNode(xsl_transform_1.documentElement));
        </script>
    <body onLoad="loadIt()">
    <P>
      <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            TABLE_1
    </object>
      <BR>
      <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="XMLQUERYVIEWDATA_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_XML_QUERYVIEW"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="NAVIGATIONAL_STATE" value=""/>
             <param name="RESULT_SET" value="X"/>
             ITEM:            XMLQUERYVIEWDATA_1
    </object>
    </P>
    <!--
    #==========================================================================
    XSL Transformation that displays
    Template Properties, List of Data Providers and List of Items
    #==========================================================================
    -->
    <xml id="xsl_transform_1">
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="header">
    <tr bgcolor="white"> <xsl:for-each select="//RRWS_SX_TUPLE[1]/*">
      <td>
      <xsl:value-of select="local-name()"/>
      </td>
    </xsl:for-each>
    </tr>
    </xsl:variable>
    <xsl:template match="/">
    <table bgcolor="gold" border="1">
    TESTVALUE -
    <tr>
      <xsl:copy-of select="$header" /> <xsl:apply-templates />
    </tr>
    <xsl:for-each select="//RRWS_SX_TUPLE">
          <tr>
            <td><xsl:value-of select="TUPLE_ORDINAL"/></td>
              <xsl:for-each select="//RRWS_S_CELL">           
              <td><xsl:value-of select="CELL_ORDINAL"></td>
              </xsl:for-each>
            <td><xsl:value-of select="TUPLE_ORDINAL"/></td>
            <td><xsl:value-of select="CHANM"/></td>
            <td><xsl:value-of select="CAPTION"/></td>
            <td><xsl:value-of select="CHAVL"/></td>
            <td><xsl:value-of select="CHAVL_EXT"/></td>
            <td><xsl:value-of select="NIOBJNM"/></td>
            <td><xsl:value-of select="TLEVEL"/></td>
            <td><xsl:value-of select="DRILLSTATE"/></td>
            <td><xsl:value-of select="OPT"/></td>
            <td><xsl:value-of select="SIGN"/></td>                    
            <td><xsl:value-of select="ATTRIBUTES"/></td>     
          </tr>
    <xsl:for-each select="//RRWS_S_CELL">
         <tr>     
            <td><xsl:value-of select="CELL_ORDINAL"/></td> 
            <td><xsl:value-of select="VALUE"/></td>            
            <td><xsl:value-of select="FORMATTED_VALUE"/></td> 
            <td><xsl:value-of select="VALUE_TYPE"/></td> 
            <td><xsl:value-of select="CURRENCY"/></td> 
            <td><xsl:value-of select="UNIT"/></td> 
            <td><xsl:value-of select="MWKZ"/></td> 
            <td><xsl:value-of select="NUM_SCALE"/></td> 
            <td><xsl:value-of select="NUM_PREC"/></td> 
            <td><xsl:value-of select="CELL_STATUS"/></td> 
            <td><xsl:value-of select="BACK_COLOR"/></td> 
         </tr>
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template match="RRWS_S_CELL/*">
    <td> <xsl:value-of select="." /> </td>
    </xsl:template></xsl:stylesheet>
    </xml>
    <table>
      <tr><td valign="top"><div id="xsl_result_1"></div></td></tr>
    </table>
    </body>
    </HTML>
    [/code]

  • UCCX script to pull XML data

    Hello,
    My goal is to create a UCCX script that will run on a Standard license server. Basically, when a user dials a four digit "speed dial", I want them to be translated to a UCCX route point, that will take the original called number, and the calling number, and use that to create a URL that it will then query and retrieve the actual number that will need to be dialed.
    So my plan currently is to have a phone inside of a partition that has a translation pattern of XXXX. The called number gets translated to 1158, which is the trigger of the application on UCCX.
    The url I want to query will be something like this:
    http://localhost:35798/RestServiceImpl.svc/XML/1017/6314
    "Localhost" will eventually become the IP address of the server hosting IIS application that will provide the XML output. 1017 is the "speed dial" or the original called number, 6314 is the calling number.
    Going to that URL should return me this output:
    <XMLDataResponse xmlns="http://tempuri.org/">
      <XMLDataResult>
      <CallingXML>
      <Extension>6300</Extension>
      <SpeedDial>1001</SpeedDial>
      <PhoneNumber>918005551212</PhoneNumber>
      </CallingXML>
      </XMLDataResult>
    </XMLDataResponse>
    This is the script as I have written it out so far:
    It does not seem to like what I have put together thus far when I try to validate it. I'm just wondering if I'm doing something that's obviously wrong.
    The end goal will be to take the NewNumber and dial it, while hiding it from the phone.
    Thanks,
    Mark

    Here's an update: I have the script retrieving the correct numbers and formulating the URL correctly. It also appears to be delivering the query from the XML.
    Here's what the XML looks like when I hit it from my browser:
    http://tempuri.org/
    ">
      http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">63141017918003551111
    When I do an Interactive Script Debug session and dial the number, I can see that there are two problems: 1) the NewNumber string is "null" by the time it gets to the step to do a Call Consult Transfer, and 2) the script just shows up a blank Exception.
    This tells me I am not parsing the XML correctly.
    Here is what I have currently:
    NewNumber = Get XML Data (xml, "/descendant::XMLDataResponse/child::XMLDataResult/child::PhoneNumber")
    Which based upon what I've read in Cisco's Volume 2 and elsewhere, should be correct.
    Notice in the screenshot that the XML data that UCCX pulls in looks different from when I look at it from my browser. I've also attached the script.
    Thanks,
    Mark

  • Using Multiple Subpaths - question about nested XML data

    Hello.
    I am in the process of getting my head around the nested XML data that is one layer deeper than I know how to handle - ultimately I would like to populate a Spry MenuBar from the static XML file.
    Updates & revisions to the menu would be done by simply uploading a new XML file to the server whenever something needs changed.
    The problem I am having is in regard to more than one subpath.
    I can successfully get the "Menuheading" and the "items" to show but the "subitems" that should attach to the "items" are nowhere to be found. Once this is figured out, I will begin building my menu.
    I'm not getting an XML error when testing in Safari (Mac OS 10.5.8)
    I thing my problem lies here in the head section of the page - obviously somewhere in the subPaths area:
    <script type="text/javascript">var dsItems1 = new Spry.Data.XMLDataSet("MenuXML.xml", "/menu/menuitem", { subPaths: [ "items/item", "subitem" ] });
    and here in the body section at subitem:
    <tr spry:repeat="dsItems1">
    <td>{@id}</td>
                <td>{menuheading}</td>
                <td>{items/item}</td>
                <td>{subitem}</td>
            </tr>
    ==================================================
    The end result I would like rendered in the menu is:
    ==================================================
    Menuheading
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item
           ------- sub submenu item (hyperlink)
    Menuheading
    ---- Item
           ------- sub submenu item (hyperlink)
           ------- sub submenu item (hyperlink)
           ------- sub submenu item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ...and so on.
    I have attached both files in their entirety at the bottom of the post in hopes someone can help.
    ==================================================
    Here is the relevant HTML
    ==================================================
    <head>
    <script language="JavaScript" type="text/javascript" src="includes/xpath.js"></script>
    <script language="JavaScript" type="text/javascript" src="includes/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript" src="includes/SpryNestedXMLDataSet.js"></script>
    <script type="text/javascript">var dsItems1 = new Spry.Data.XMLDataSet("MenuXML.xml", "/menu/menuitem", { subPaths: [ "items/item", "subitem" ] });</script>
    </head>
    <body>
    <div spry:region="dsItems1">
    <table class="dataTable">
    <tr>
    <th width="62">Menu ID</th>
                <th width="171">Menu Heading</th>
                <th width="257">Menu Items</th>
                <th width="257">Submenu Items</th>
            </tr>
    <tr spry:repeat="dsItems1">
    <td>{@id}</td>
                <td>{menuheading}</td>
                <td>{items/item}</td>
                <td>{subitem}</td>
            </tr>
    </table>
    </div>
    </body>
    ==================================================
    A representative snippet of the XML is shown here:
    ==================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <menu>
         <menuitem id="0001" type="Aboutus">
              <menuheading>About Us</menuheading>
                   <items>
                        <item id="0011">Welcome to MHBS</item>
                        <item id="0021">History</item>
                        <item id="0031">Mission</item>
                        <item id="0041">Accreditation</item>
                        <item id="0051">Directions</item>
                        <item id="0061">Calendar</item>
                        <item id="0071">Board of Directors</item>
                                     <subitem id="0111">Meet the Board</subitem>
                        <item id="0081">FAQs</item>
                   </items>
         </menuitem>
         <menuitem id="0002" type="Academics">
              <menuheading>Academics</menuheading>
                   <items>
                        <item id="0012">Meet the Faculty</item>
                        <item id="0022">Elementary</item>
                        <item id="0032">Middle School</item>
                        <item id="0042">High School</item>
                        <item id="0052">Academic Achievements</item>
                                     <subitem id="0251">Test Scores</subitem>
                                     <subitem id="0252">College Acceptance</subitem>
                        <item id="0062">Accelerated Reading</item>
                        <item id="0072">Summer Reading</item>
                        <item id="0082">Guidance and Counseling</item>
                   </items>
         </menuitem>
    ... and on and on ...
    </menu>
    Should I be doing something with the Spry.Data.NestedXMLDataSet instead?
    If so, how do I implement that?
    many thanks in advance

    Yes, you should be using the nested dataset instead.
    Did you read: http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html ?

  • Print-time XML data update?

    We're researching our options to print artwork with dynamic (i.e. data driven) elements inline with our production process.  We have a packaging machine that has an integrated inline printer and we want to send print jobs that contain dynamic data such as part number, lot number, expiration date, description, etc.  In the past we have used barcoding and marking software for this as it's designed to be either autoamted by a third party application or to pull data from a database itself.  On this new project we're looking to deliver or more graphically rich result.  We thought InDesign with it's XML backed frames may be an interesting option to explore.
    Something like:
    Production management system (PMS) generats the backing XML file with the job specific data
    PMS then retrieves the appropriate InDesign template file for the product being produced
    PMS prints the InDesign template file and the XML data is pulled in
    Keep in mind that workflow is based on reading the product specs and a few blog posts about InDesign, we are NOT InDesign users (yet).  There are a couple areas I see problems and I wanted to ask the community if you happen to know if they are real issues or not.
    I suspect we would need a full InDesign license on the PMS system in order to print the ID template files.  We would want to make tis all command line if possible, we don't want a tech to use InDesign but still I think a license would be needed, even just for printing.  Update:  I have since found InDesign Server and it sounds like it may be an option for this concern.
    If command line printing IS an option, will such an operation cause the template to pull in the XML data that was generated by the PMS?  In other words, the PMS generates an XML file in a location that the InDesign template is expecting, will InDesign pull in that data when the file is sent to the printer?
    Actually, is it even possible to command line print an InDesign template file or do we need to go through a pre-print processing stage to generate a PDF or some other file?
    I hope that these questions aren't too vague and that you understand what we're hoping to accomplish.
    Regards,
    Steve

    Hi Chorko,
    When you do your Conversion to Dynamic data, make sure you check your Start Time as Now.
    Hope that helps!
    Kalin T.
    National Instruments

Maybe you are looking for