Nested XML HELP

Help.

I have problems to create this XML schema in the CVI.

In particular, the creation of and tags throws an error.

That is to say.

won't start not the container, start the container and there is no subsequent closing element (ie)

Could provide example code to solve my problem?

TIA.

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

VALUE

You get the exception because rline - chain read you your file has invalid character (0x0A) and you cannot create XML tags with this character. You can remove this by using the Toolbox RemoveSurroundingWhiteSpace function. Also, I noticed that your code does not really map to the schema in your comments - you use instead of Elem1 Elem2 as a parent to create elements of the slot. Here is the fixed code:

Sub CreateXML()
{
/ * XML schema desired
 
           <>
          <>
   0
   1
   0
   0
           <>
    1    <>
    0
    1
           <>
    1    <>
    0
    1
  

  
   0
   1
   0
   0
   
    1
    0
    1
   
    1
    0
    1
  

 

*/
 
Reading of files would be replaced by requests of microcontroller
to query variables/chassis in rack configurations
 
* Item XML pointer
  
char line [100], rline [100];
int a, b;
FILE * fp1;
FILE * fp2.
 
CVIXMLStatus stat.
Doc CVIXMLDocument.
CVIXMLElement rootElem, Elem1, Elem2, Elem3, Elem4;
 
Create XML file
Stat = CVIXMLNewDocument ('Rack', &doc);)
= stat CVIXMLGetRootElement (doc, & rootElem);
 
Get the header MF
for (a = 0;<>
{
  
Elements of fixed chassis #.
Stat = CVIXMLNewElement (rootElem,-1, "Châssis", &Elem1);)
  
Stat = CVIXMLNewElement (Elem1,-1, "Fan1Present", &Elem2);)
= stat CVIXMLSetElementValue (Elem2, '0');
CVIXMLDiscardElement (Elem2);
Elem2 = 0;
  
Stat = CVIXMLNewElement (Elem1,-1, "Fan2Present", &Elem2);)
= stat CVIXMLSetElementValue (Elem2, '1');
CVIXMLDiscardElement (Elem2);
Elem2 = 0;
      
Elements of chassis # read the #1 file variable
If the items do not present, do not write the XML key
FP1 = fopen ("file1.txt", "rt");
If (fp1! = NULL)
{
While (fgets(rline,50,fp1))
{
RemoveSurroundingWhiteSpace (rline);
Stat = CVIXMLNewElement (Elem1,-1, rline, &Elem2);)
= stat CVIXMLSetElementValue (Elem2, '1');
CVIXMLDiscardElement (Elem2);
Elem2 = 0;
}
fclose (FP1);
}
  
  
Elements of slot variable # read the #2 file, (2) slots per chassis
If the locations not occupy, do not write the XML key
for (b = 0; b<>
{
FP2 = fopen ("file2.txt", "rt");
If (fp2! = NULL)
{
Fmt(Line,"%s<%s%d","slot",b);    < br / > stat = CVIXMLNewElement (Elem1,-1, online, &Elem3);) < br / > < br / > while (fgets(rline,50,fp2)) < br / > {< br / > RemoveSurroundingWhiteSpace (rline); < br / > stat = CVIXMLNewElement (Elem3,-1, rline, &Elem4); < br / > stat = CVIXMLSetElementValue (Elem4, '0'); < br / > CVIXMLDiscardElement (Elem4); < br / > Elem4 = 0; < br / >)} < br / > fclose (fp2); < br / > < br / > CVIXMLDiscardElement (Elem3);
Elem3 = 0;
}
}

CVIXMLDiscardElement (Elem1);
Elem1 = 0;
}
 
If (Elem1)
CVIXMLDiscardElement (Elem1);
If (Elem2)
CVIXMLDiscardElement (Elem2);
If (Elem3)
CVIXMLDiscardElement (Elem3);
If (Elem4)
CVIXMLDiscardElement (Elem4);
If (rootElem)
CVIXMLDiscardElement (rootElem);
CVIXMLSaveDocument (doc, 0, "test.xml");
CVIXMLDiscardDocument (doc);

}

Tags: NI Software

Similar Questions

  • Query to generate nested XML flow

    Hello
    I use Oracle 11 g R2 SOE...

    I have two main tables

    COMMERCIALS_PROPERTIES (PK, com_id, com_size, project number, com_type number number number)
    COM_PHOTOS (PK ID number, number com_id FK, content mimetype varchar2, blob)

    Please, note that the following has nothing to do with my problem:
    CONTENT and mimetype columns. In addition, the tables of research: PROJECTS, COM_TYPE

    I exposed a report as a RESTful web service in XML format:

    I use this query to generate the XML 1 feed, but I need to change the query to generate flow XML 2 .

    How is this possible?
     Select
          
    "COM"."COM_ID" as "COM_ID",
    "COM"."COM_SIZE" as "SIZE",
    "PROJECTS"."PROJECT_NAME_EN" as "PROJECT",
    "COM_TYPES"."COM_TYPE" as "COM_TYPE",
    
    'http://fam-erp.com/apex/erp/fateh/'||IMG.ID as "ImgURL"
    
     FROM 
    COM_PHOTOS IMG inner join COMMERCIALS_PROPERTIES "COM"
    on   IMG.COM_ID = COM.COM_ID
    inner join "PROJECTS" "PROJECTS" 
    on "PROJECTS"."PROJECT_ID"="COM"."PROJECT_ID"
    inner join "COM_TYPE_LOOKUP" "COM_TYPES" 
    on "COM_TYPES"."TYPE_ID"="COM"."COM_TYPE"
         
     WHERE
      COM.COM_ID < 80 order by 1
    H1. XML 1
    H2. Please look only < COM_ID > and < ImgURL >
    <ROWSET>
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL>
    </ROW>
    
    </ROWSET>
    ---------------------------
    H1. XML 2
    H2. Please look only < COM_ID > and < Images > and < ImgURL >
    <ROWSET>
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <Images>
          <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL>
          <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL>
    </Images>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <Images>
            <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL>
            <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL>
    </Images>
    </ROW>
    </ROWSET>
    
     

    Fateh,

    I really doubt if the nested XML can be generated from one part of the report. The and tags to link to a generic XML generator that takes a select as input. Just like SYS_XMLGEN or DBMS_XMLGEN.

    You will need find an alternative mechanism for the nested XML.

    Below are the 2 links to help you started on its SQL. For deployment, you can use ApexListener ResourceTemplates, if you use ApexListener.

    If you are on 4.2 Apex and ApexListener 2.0EA, then you have more options that you can set the modules of RESTful services in SQLWorkshop.

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4980337843276
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:P11_QUESTION_ID:11650482108651

    Kind regards

  • Extract the plsql nested xml attributes

    Hi, I need to extract xml file and insert 2 oracle tables. The xml file is the use of attributes, and I cannot retrieve the element 'code' nested with its attributes in the context of its parent element 'table '. Here is a sample of the xml data that I have to extract the date:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < dataset - cv:dataset - cv dateProduced = "2011-09-19 11:50:45 ' xmlns:dataset - cv ="http://www.myurl.com/dataset-cv/1.0.0">"
    < lov >
    < id of the table = "00000000000001000" Name = "Role of the system" isSystem = "true" status = "Enabled" >
    < id code = "00000000000000306" Name = "Helpdesk" code = "1" status = "Enabled" / >
    < id code = "000000000000000307" Name = "Reviewer" code = "2" status = "Enabled" / >
    < id code = "00000000000000308" Name = 'Administrator' code = '3' status = "Enabled" / >
    < /table >
    < id of the table = "00000000000002000" Name = 'Country' sSystem 'false' status = "Enabled" = >
    < id code = "000000000000002004" Name = "AFGHANISTAN" code = "4" status = "Enabled" / >
    < id code = "000000000000002008" Name = 'ALBANIA' code = '8' status = "Enabled" / >
    < id code = "000000000000002010" Name = "ANTARCTICA" code = "10" status = "Enabled" / >
    < /table >
    < / lov >
    < / dataset - cv:dataset - cv >

    I have tried to use a query like this but does not retrieve the code attributes in the context of his record in the parent table.

    SELECT ID, Name, frenchname, State, code
    FROM XMLTABLE ('for $i //lov//table return $i"
    In PASSING db_get_xml_from_file ("myfile.xml", "XMLORADIR")
    ID VARCHAR2 COLUMNS (32) PATH '@id '.
    , englishName PATH VARCHAR2 (32) "@englishName".
    , frenchName PATH VARCHAR2 (32) "@frenchName".
    , status VARCHAR2 (6) PATH '@status '.
    code VARCHAR2 (6) path "/ / code / / code");

    Any help will be much appreciated

    Thank you

    Dave

    Hi Dave,.

    Do you want something like this:

    SQL> SELECT x1.id
      2       , x1.englishName
      3       , x1.frenchName
      4       , x1.status
      5       , x2.*
      6  FROM XMLTable(
      7         XMLNamespaces('http://www.myurl.com/dataset-cv/1.0.0' as "dc")
      8       , '/dc:dataset-cv/lov/table'
      9         passing xmltype(bfilename('TEST_DIR','myfile.xml'),nls_charset_id('AL32UTF8'))
     10         columns
     11           id          VARCHAR2(32) path '@id'
     12         , englishName VARCHAR2(32) path '@englishName'
     13         , frenchName  VARCHAR2(32) path '@frenchName'
     14         , status      VARCHAR2(6)  path '@status'
     15         , codes       XMLType      path 'code'
     16       ) x1
     17     , XMLTable(
     18         '/code'
     19         passing x1.codes
     20         columns
     21           codeId          VARCHAR2(32) path '@id'
     22         , codeEnglishName VARCHAR2(32) path '@englishName'
     23         , codeStatus      VARCHAR2(6)  path '@status'
     24         , code            NUMBER       path '@code'
     25       ) x2
     26  ;
    
    ID                               ENGLISHNAME                      FRENCHNAME                       STATUS CODEID                           CODEENGLISHNAME                  CODESTATUS       CODE
    -------------------------------- -------------------------------- -------------------------------- ------ -------------------------------- -------------------------------- ---------- ----------
    00000000000001000                System Role                                                       Enable 00000000000000306                Helpdesk                         Enable              1
    00000000000001000                System Role                                                       Enable 000000000000000307               Reviewer                         Enable              2
    00000000000001000                System Role                                                       Enable 00000000000000308                Administrator                    Enable              3
    00000000000002000                Country                                                           Enable 000000000000002004               AFGHANISTAN                      Enable              4
    00000000000002000                Country                                                           Enable 000000000000002008               ALBANIA                          Enable              8
    00000000000002000                Country                                                           Enable 000000000000002010               ANTARCTICA                       Enable             10
    
    6 rows selected
     
    
  • Loading nested XML file to a table

    Hi I have the following XML code.

    -< protocols >
    -Protocol of <>
    < name > SampleAddition_Outer < / name >
    < revision > 0 < / revision >
    -< ProtocolSteps >
    -< ProtocolStep >
    < name > SampleAddition < / name >
    < EnumProtocolStep > SampleAddition < / EnumProtocolStep >
    SampleProbe < action > < / Action >
    -< ParameterList >
    < string > SampleDispVol < / string >
    < string > SampleOverAspVol < / string >
    < string > LeadAirGap < / string >
    < string > TrailAirGap < / string >
    < string > SPPumpAspSpeed < / string >
    < string > SPPumpDispSpeed < / string >
    < string > SPPumpDispHeight < / string >
    < / ParameterList >
    < IntAction > 0 < / IntAction >
    < IntProtocolStep > 0 < / IntProtocolStep >
    < SequenceName > EmptySequence < / SequenceName >
    < / ProtocolStep >
    < / ProtocolSteps >

    This XML file is repeated over and over again in the large file.
    This is a nested structure and I want to store in a table so that the columns as follows

    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is SampleDispVol
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is SampleOverAspVol
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is LeadAirGap
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is TrailAirGap
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is SPPumpAspSpeed
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is SPPumpDispSpeed
    Nom_protocole = SampleAddition_Outer, review = 0, ProtocolStep_Name = SampleAddition, EnumProtocolStep = SampleAddition, SampleProbe = Action, ParameterList is SPPumpDispHeight

    I understand that this table would be very standard but its OK for me now.

    I use oracle 10g.

    I loaded the entire xml in the unique xmltype column and used the following query to retrieve it.

    Select extractvalue (value (x), ' / Protocol/Name ") Nom_protocole,.
    ExtractValue (value (x), ' / ProtocolSteps/protocol/name of the Protocol / ") protocolstep_name
    of gt_xmltype_tab1 gt, TABLE (XMLSequence (extract (gt.xmlfile1, ' / Protocols/Protocol/ProtocolSettings '))) x;


    But it shows only Nom_protocole in the output. There is no error in the execution, but the output is not good either.
    I use Oracle 10 g

    Could someone help out here?

    If I understand correctly, you have three levels unnest here, so you need three nested XMLSequence:

    SQL> create table tmp_xml of xmltype;
    
    Table created
    
    SQL>
    SQL> insert into tmp_xml values(
      2  xmltype(
      3  '
      4    
      5      SampleAddition_Outer
      6      0
      7      
      8        
      9          SampleAddition
     10          SampleAddition
     11          SampleProbe
     12          
     13            SampleDispVol
     14            SampleOverAspVol
     15            LeadAirGap
     16            TrailAirGap
     17            SPPumpAspSpeed
     18            SPPumpDispSpeed
     19            SPPumpDispHeight
     20          
     21          0
     22          0
     23          EmptySequence
     24        
     25      
     26    
     27  ')
     28  );
    
    1 row inserted
    
    SQL>
    SQL> select extractValue(value(x1), '/Protocol/Name') as Protocol_Name
      2       , extractValue(value(x1), '/Protocol/Revision') as Revision
      3       , extractValue(value(x2), '/ProtocolStep/Name') as ProtocolStep_Name
      4       , extractValue(value(x2), '/ProtocolStep/EnumProtocolStep') as EnumProtocolStep
      5       , extractValue(value(x2), '/ProtocolStep/Action') as Action
      6       , extractValue(value(x3), '/string') as ParameterList
      7  from tmp_xml t
      8     , table(xmlsequence(extract(t.object_value, '/Protocols/Protocol'))) x1
      9     , table(xmlsequence(extract(value(x1), '/Protocol/ProtocolSteps/ProtocolStep'))) x2
     10     , table(xmlsequence(extract(value(x2), '/ProtocolStep/ParameterList/string'))) x3
     11  ;
    
    PROTOCOL_NAME             REVISION   PROTOCOLSTEP_NAME  ENUMPROTOCOLSTEP   ACTION         PARAMETERLIST
    ------------------------- ---------- ------------------ ------------------ -------------- -------------------
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    SampleDispVol
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    SampleOverAspVol
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    LeadAirGap
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    TrailAirGap
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    SPPumpAspSpeed
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    SPPumpDispSpeed
    SampleAddition_Outer      0          SampleAddition     SampleAddition     SampleProbe    SPPumpDispHeight
    
    7 rows selected
     
    

    Assuming you're on 10.2 you can use XMLTable as well, easier to implement IMO, but on a large XML document may not perform as well as XMLSequence if the XMLType table is not based on a schema.
    Major improvements in the treatment of the XQuery were made from 11 g when using tables not based on a schema.

  • Repeater nested XML data

    Hello
    I'm new to flex 2 and need help with a bit of problem nested repeater.
    I have an external xml code of data named "data.xml" as follows:
    <? XML version = "1.0" encoding = "UTF-8"? >
    < Products >
    < product >
    P1 < productno > < / productno >
    < section >
    A1 < articleno > < / articleno >
    < / item >
    < section >
    < articleno > a2 < / articleno >
    < / item >
    < / product >
    < product >
    < productno > p2 < / productno >
    < section >
    < articleno > a3 < / articleno >
    < / item >
    < / product >
    < / product >

    And the .mxml code is as follows:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
    < mx:XML id = "data" source = "data.xml" / > "
    < mx:VBox >
    < mx:Repeater id = dataProvider = "{data.product"Repeater1"}" >
    < mx:Label text = "{Repeater1.currentItem.productno}" / > "
    < mx:Repeater id = dataProvider = "{data.product.article"Repeater2"}" >
    < mx:Label text = "{Repeater2.currentItem.articleno}" / > "
    < / mx:Repeater >
    < / mx:Repeater >
    < / mx:VBox >
    < / mx:Application >

    The problem with the release, is that section child for each parent product repeats:
    P1
    A1
    A2
    A3
    P2
    A1
    A2
    A3

    But what I want is:
    P1
    A1
    A2
    P2
    A3

    Can someone help pls as to what I did wrong?

    Thank you!!

    You must give your Repeater2 dataProvider only the data your currentItem Repeater1. The code below the output the desired results:








    Vygo

  • Flash and XML help:)

    Hi all

    bit of a newbie, so probably pretty easy if you know how to: eek:

    would we beable to help unravel a XML file, what I have is a ToolTip that load in via XML and exported from flash. the XML support in 2 text, field and field2 fields.

    what I'm trying to do is to add a touch to the balloon so that you can click and go to a url.

    would we beable to help with this.

    That's what I have in my XML file;

    <? XML version = "1.0" encoding = "utf-8"? >
    < data >
    < image name = "image 1" path = img/img1.jpg"".
    title = 'Food Fight'
    Text = "Information here!" / >

    < / data >

    This loads in 2 text fields.

    That's what I have in my ACE;

    var tooltip:ToolTip = new ToolTip();
    tooltip.buttonMode = false;
    ToolTip.Field.Text = title; loads of ToolTip 1
    ToolTip.Field2.Text = text; loads ToolTip 2
    holder.addChild (tooltip);

    I thought I could do something like that, but I seem to be errors

    XML


    <? XML version = "1.0" encoding = "utf-8"? >
    < data >
    < image name = "image 1" path = img/img1.jpg"".
    title = 'Food Fight'
    Text = "Information here!
    button = "click to see / >"

    < / data >

    and in my ACE

    var tooltip:ToolTip = new ToolTip();
    tooltip.buttonMode = false;
    ToolTip.Field.Text = title; loads of ToolTip 1
    ToolTip.Field2.Text = text; loads ToolTip 2
    ToolTip.field3.Text = buttons; loads ToolTip 3
    holder.addChild (tooltip);


    but doesn't do not, what I'm doing wrong: Oops:

    Thanks much for any help!

    Hello

    Here is the code:

    var imageName:String = images[i].@name;

    var imagePath:String = images[i].@path;

    var title: String = images[i].@title;

    the var text: String = images[i].@text;

    movies of the var: String = images[i].@swf; added 24 Aug - 09

    buttons of the var: String = images[i].@button;

    var tooltip:ToolTip = new ToolTip();

    ToolTip.Field.Text = title;  charges of 1 balloon

    ToolTip.Field2.Text = text;  support for ToolTip 2

    ToolTip.field3.Text = buttons;

    Don't forget to embed the font for the field3.text

    Saransoft

  • XML help file Travesing

    Iteration using the recursive function
    Thanks a lot :)

    Don't know if it's the best you can get, but QAD:

    var my_xml:XML =















    ;

    traceCities (my_xml.city [0]);

    function traceCities (XML): void
    {
    trace (xml.@name);

    If (xml.children ())
    {
    for each (node var xml.children ())
    {
    traceCities (node);
    }
    }
    }

    manofspirit wrote:
    > Iteration using the recursive function
    > Thanks a lot :)
    >
    > Hello all
    > I tried many things to cross this xml using the recursive function file,.
    > but in vain
    > I'm sure you guys help out me
    >
    > shuold recursive function iterate and name of the trace class as follows
    >
    > London
    > manchester
    > Cairo
    > Hawaii
    > New York
    > maxico city
    > tokyo
    >
    >
    > XML file
    >
    >
    >
    >
    >
    >

    >
    >

    >

    >
    >
    >

    >
    >

    >

    >

    >

  • XML help, can't get rid of the tags

    Hello

    I am doing my first xml project. I can update a dynamic area of text from a file xml on the server, but when the dynamic text box is populated data < tag > < / tag > appears. I want only the word 'data' without all the <><>. Any help would be great.

    Try this:

    homework_txt. Text = reviews_xml.firstChild.firstChild.firstChild.nextSibling.nextSibling.firstChild.nodeValue + "\n";

  • Nested formula helps VLOOKUP/IF/AND/SUM?

    Hello

    I use 3.6.2 on an iMac numbers to make a spreadsheet of accounts for my partner who is independent and desperate self with its accounts.

    The worksheet aims so he could enter its revenues and expenses (and easily), then for the spreadsheet sort the data in the months/years, etc., which can then be calculated as profit/loss etc. As he was loose with his accounts and catch up, I thought it would be convenient and save countless piles of sorting on the floor of the reception hall! Formulas combos I've tried so far, however, do not work! So I was hoping someone with more knowledge could enlighten us.

    So far, I have created 3 main leaves, revenue, expenses and exercises (as pictured below).

    For each month in the year, I would like to that it search for "revenue" "Billing month" and "Year" then add UP the values in "amount paid".

    For example, for April 2015 - search ' April' AND ' 2015/16 ' SUM then all the "amount paid values" meets the criteria to end up with a monthly income total. I tried a range of formulas, but nothing seems to work properly, but I'm sure it's possible and logical, right? What do you think?

    The same thing that I hope for expenses. Research of the month & year (that I happen to be the same as the sheet of revenue) and total monthly SUM for the corresponding values. I could also fit the same formula for categories, to then make a table to see where spending will etc.

    I'm used to some basic formulas and can see the logical way to pursue this goal, but do not have the know-how to achieve this more complex formula! Hours in google didn't really help either! the syntax and exclamation error still appear somewhere!

    If anyone has any suggestions/advice form, they would be very appreciated! I am happy to share the final worksheet (if everything will work well) with any such freelancers / small businesses that have similar problems with soft accounting!

    Thank you very much

    Chloe

    Hi clrey,

    I would like to recommend SUMIFS() as your go to formula to obtain a total of say, "bindings" on April 16.

    Give it a try and after return with specific questions, if things do not work as expected.

    Quinn

  • Concatenate the nested XML tags

    Hello

    I am looking for a solution concatenate duplicate in an xml tags.

    I need only the tags 'tag' 'type = keyword' in a field in a table.

    The sql statement that I use, I get six records and I just need a registration.

    Hope that my written English is not hard to understand what I mean.

    It is a part of the XML data.

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

    < list >

    < article id = "25230245" title = "st" publish = "true" sender =">

    < categories >

    < naam category = "Staking" externalid = "Economy/staking" / >

    < / categories >

    < geoinfo latitude =' 52,3936' longitude' 6,142065 =' zoom = "15" / >

    < tags >

    < tag name = 'Overijssel, Raalte, Raalte' type = 'rental' / >

    < tag name = 'Overijssel, Deventer, Deventer' type = 'rental' / >

    < tag name = 'Overijssel Olst-Wijhe Wijhe' type = 'rental' / >

    < tag name = "CAD" type = "keyword" / >

    < name of tag = "vleeswarensector" type = "keyword" / >

    < name of tag = "seniorenregeling" type = "keyword" / >

    < tag name = "fnv bondgenoten" type = "Keyword" / >

    < name of tag = "werkonderbreking" type = "keyword" / >

    < tag name = 'Zwanenburg' type = "Keyword" / >

    < tag name = "staking" type = "Keyword" / >

    < tag name = "Scott" type = "Keyword" / >

    < name of tag = "La¼pack" type = "keyword" / >

    < tag name = "cnv vakmensen" type = "Keyword" / >

    < / tags >

    < publicatiedatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"

    < wijzigingsdatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"

    < printdatum datumstr = May 22, 2014 "/ >"

    < bestemming >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Deventer /' primary = "false" / >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Olst-Wijhe /' primary = "false" / >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Raalte /' primary = "true" / >

    < / bestemming >

    < bron naam = "Benny Koerhuis" / >

    < figurines / >

    < / product >

    < / list >

    And it's my sql (part of a plsql procedure) statement.

    SELECT decode (upper (t1.publish), 'TRUE', 'Y', 'n')

    , trunc (to_date (substr (replace (t1.pdate, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS")) update

    , to_date (substr (replace (t1.flitstijd, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS") flitstijd

    t1.naam_flitser

    t1.sectie

    t1.titel

    t1.soort

    t2.trefwoorden

    OF flits_berichten_clob t1

    , XMLTABLE ("' / / test/artikel")

    By the WAY of XMLTYPE (t1.xml_file)

    COLUMNS publish VARCHAR2 (10) path '@publish '.

    update the PATH in VARCHAR2 (25) "publicatiedatum/@datumstr".

    , flitstijd PATH VARCHAR2 (25) "wijzigingsdatum/@datumstr".

    , naam_flitser PATH VARCHAR2 (25) "bron/@naam".

    , books VARCHAR2 (255) PATH 'bestemmingen/bestemming[@primary="true"]/@page '.

    , titel VARCHAR2 (10) path 'bestemmingen/bestemming[@primary="true"]/@site '.

    , soort PATH VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '.

    tags XMLTYPE PATH 'tags') t1

    , XMLTABLE ('/ tags/tag [@type = "keyword"] ")

    PASSAGE t1.tags

    T2 of COLUMNS trefwoorden VARCHAR2 (255) PATH "@name")

    ID WHERE = 15;

    This is the result.

    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebwerkonderbreking
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebZwanenburg
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebstaking
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebStegeman
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebLa¼Pack
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebCNV vakmensen

    Is it possible to concatenate the results of the last column?

    It should be "werkonderbreking, Zwanenburg, staking, Stegeman, la¼pack, cnv vakmensen" so, I get a recording instead of six.

    Thanks in advance.

    Is it possible to concatenate the results of the last column?

    Yes, use string-join function:

    ...

    titel PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@site '.
    soort PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '.
    trefwoorden PATH of VARCHAR2 (4000) 'string-join(tags/tag[@type="keyword"]/@name, ",").

    ) t1

    In this way, that you need more of the second XMLTABLE.

  • (General provisions) Task XML help?

    I have problems to access the items that are empty in XML (without children). Whenever I have imitate the examples of all notifications, the variables I use return null/nothing. Can someone point me in the right direction? I don't know that I do something wrong, I don't know what. I highlighted a part of the example in the following example task where I have problems of data extraction (particularly name field).

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

    " < ns6:Task xmlns =" http://www. VMware.com/vCloud/versions "xmlns:ns2 =" http://schemas.dmtf.org/OVF/Envelope/1 "xmlns:ns3 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_VirtualSystemSettingData "xmlns:ns4 =" http://schemas.dmtf.org/wbem/wscim/1/Common "xmlns:ns5 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_ResourceAllocationSettingData "xmlns:ns6 =" http://www. "" "" " VMware.com/vCloud/v1.5 "xmlns:ns7 =" http://www. " VMware.com/Schema/OVF "xmlns:ns8 =" http://schemas.dmtf.org/OVF/Environment/1 "xmlns:ns9 =" http://www. "" ' VMware.com/vCloud/extension/v1.5 'status = startTime 'preRunning' =' 2013-06 - 13 T 19: 00:21.698 - 07:00 "serviceNamespace =" com.vmware.vcloud ' operationName = operation 'vdcRecomposeVapp' = "Virtual Application redial jjhllllllllgvvu (357e4030-0b68-4fdf-bbce-b4ef8995f173)" expiryTime = "2013-09 - 11 T 19: 00:21.698 - 07:00" a cancelRequested = "false" name = 'task' id = "" urn: vcloud:task:77be7776-df5e-4bc0-9314-dc3810573f9e "type="application/vnd.vmware.vcloud.task+xml"href =" https://usyp-VCD.kingstonlab.Corp/API/Task/77be7776-df5e-4BC0-9314-dc3810573f9e ">

    "" < ns6:Link rel = 'down' type="application/vnd.vmware.admin.blockingTask+xml ' href = ' https://usyp-VCD.kingstonlab.Corp/API/admin/extension/blockingTask/847bb7ba-3a8a-4CE0-BAF0-4b039cc895a1 "/>

    "" < ns6:Owner type="application/vnd.vmware.vcloud.vApp+xml" name = "jjhllllllllgvvu" href = " https://usyp-VCD.kingstonlab.Corp/API/vApp/vApp-357e4030-0b68-4fdf-bbCe-b4ef8995f173 "/>

    "" < ns6: User type="application/vnd.vmware.admin.user+xml" name = "eshen_auth" href = " https://usyp-VCD.kingstonlab.Corp/API/Admin/user/538b77ae-0C6C-4ea1-BD95-15e1dcc71814 "/>

    "" < ns6:Organization type="application/vnd.vmware.vcloud.org+xml" name = "lab-AdminOrg" href = " https://usyp-VCD.kingstonlab.Corp/API/org/809f461e-f36b-4b00-b5ab-56e3a8b44fe7 "/>

    < ns6:Progress > 1 < / ns6:Progress >

    " < ns6:Params xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xsi: type ="ns6:RecomposeVAppParamsType"> ".

    " < ns6:DeleteItem type="application/vnd.vmware.vcloud.vm+xml "name ="centos6.2 - 1"href =" https://usyp-VCD.kingstonlab.Corp/API/vApp/VM-82875434-0de1-422c-B57E-f19aac31ea77 « / >

    < / ns6:Params >

    < ns6:Details > blockingTask.pendingStatus < / ns6:Details >

    < / ns6:Task >

    Thank you dirty,

    I have not tested your method, but I managed to solve this problem by using another method.

    I did it by using the following variable assignment:

    (taskDoc is the XML file for the task)

    var items = taskDoc.Params;

    var del = items.*::DeleteItem.@*::name.toString();

    As a side note - it was indeed shown in the package of notifications, contrary to what I said in my question - I just wasn't looking in the right place.

  • XML help

    I don't know how to bring this up since she was little said in an earlier post here, but is there any primer regarding the way to query the XML in Orchestrator?

    Someone asked a similar question here: http://communities.vmware.com/thread/414196

    However, I am looking for a broader response, perhaps a primer on the syntax to capture the right information. Thank you!

    You can find a lot of information here: https://developer.mozilla.org/en-US/docs/E4X

  • Nested style help

    I want a header style that is a character style for however many words is typed, then a space, then a rule that fills the rest of the column. I tried several ways, but I can't make it work. The rule ends up being visible through it all.

    Instead of nested styles, this can be done with nets of paragraph. Rule here is paper, rule above is the color of the text (or whatever color you want). Adjust the size of the rule and the offsets to work with your text size.  (this example has been 40 pt)

     

  • Passage of the CPF to the PP - XML help

    Is there a software that allows to convert a Final Cut Pro file in XML format for import to the Premier Pro?  Or is the only way to do that in FCP?  If so, what are the steps to do it?  I am currently using FCP 6.  Thank you.

    If I myself remember well I just exported an XML file of FCP and any in a new project of the ORGANIZATION.

  • SQL query to generate nested XML data

    Hello
    I use Oracle 11 g R2 SOE...

    I have two main tables

    COMMERCIALS_PROPERTIES (PK, com_id, com_size, project number, com_type number number number)
    COM_PHOTOS (PK ID number, number com_id FK, content mimetype varchar2, blob)

    Please, note that the following has nothing to do with my problem:
    CONTENT and mimetype columns. In addition, the tables of research: PROJECTS, COM_TYPE

    Apex (Application Express) we can expose a report as a RESTful web service in XML format:

    I use this query to generate the XML 1 feed, but I need to change the query to generate flow XML 2 .

    How is this possible?
     Select
          
    "COM"."COM_ID" as "COM_ID",
    "COM"."COM_SIZE" as "SIZE",
    "PROJECTS"."PROJECT_NAME_EN" as "PROJECT",
    "COM_TYPES"."COM_TYPE" as "COM_TYPE",
    
    'http://fam-erp.com/apex/erp/fateh/'||IMG.ID as "ImgURL"
    
     FROM 
    COM_PHOTOS IMG inner join COMMERCIALS_PROPERTIES "COM"
    on   IMG.COM_ID = COM.COM_ID
    inner join "PROJECTS" "PROJECTS" 
    on "PROJECTS"."PROJECT_ID"="COM"."PROJECT_ID"
    inner join "COM_TYPE_LOOKUP" "COM_TYPES" 
    on "COM_TYPES"."TYPE_ID"="COM"."COM_TYPE"
         
     WHERE
      COM.COM_ID < 80 order by 1
    H1. XML 1
    H2. Please look only < COM_ID > and < ImgURL >
    <ROWSET>
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL>
    </ROW>
    
    </ROWSET>
    ---------------------------
    H1. XML 2
    H2. Please look only < COM_ID > and < Images > and < ImgURL >
    <ROWSET>
    <ROW>
    <COM_ID>77</COM_ID>
    <SIZE>842</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <Images>
          <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL>
          <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL>
    </Images>
    </ROW>
    
    <ROW>
    <COM_ID>78</COM_ID>
    <SIZE>756</SIZE>
    <PROJECT>Bayswater Tower</PROJECT>
    <COM_TYPE>Office</COM_TYPE>
    <Images>
            <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL>
            <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL>
    </Images>
    </ROW>
    </ROWSET>
    
     

    Hi, Fateh

    One possible way is to use the XML features to create your XML file.
    Using XML, you can make the IMAGES as a subquery XMLAGG rather than join at the table of the image.

    Here is an example of the use of schema SCOTT:

    SQL> select xmlelement(
      2            "ROWSET"
      3          , xmlagg(
      4               xmlelement(
      5                  "ROW"
      6                , xmlforest(
      7                     d.deptno as "ID"
      8                   , d.dname as "NAME"
      9                   , (
     10                        select xmlagg(
     11                                  xmlelement(
     12                                     "ImgUrl"
     13                                   , 'http://the.server.com/'||e.empno
     14                                  )
     15                                  order by e.empno
     16                               )
     17                          from scott.emp e
     18                         where e.deptno = d.deptno
     19                     ) as "Images"
     20                  )
     21               )
     22               order by d.deptno
     23            )
     24         ) the_xml
     25    from scott.dept d
     26    /* joins to the other tables EXCEPT image table */
     27  /
    
    THE_XML
    --------------------------------------------------------------------------------
    10ACCOUNTINGhttp://the.server
    

    The output is an XMLTYPE column (think of it as a CLOB with addition of feature ;-))
    My SQL * PLUS the output of cuts, but believe me, it's all there.
    Just to show, here is the same example, wrapped in a function XMLSERIALIZE to print the XML file:

    SQL> select xmlserialize(
      2            content
      3            xmlelement(
      4               "ROWSET"
      5             , xmlagg(
      6                  xmlelement(
      7                     "ROW"
      8                   , xmlforest(
      9                        d.deptno as "ID"
     10                      , d.dname as "NAME"
     11                      , (
     12                           select xmlagg(
     13                                     xmlelement(
     14                                        "ImgUrl"
     15                                      , 'http://the.server.com/'||e.empno
     16                                     )
     17                                     order by e.empno
     18                                  )
     19                             from scott.emp e
     20                            where e.deptno = d.deptno
     21                        ) as "Images"
     22                     )
     23                  )
     24                  order by d.deptno
     25               )
     26            )
     27            as varchar2(4000)
     28            indent size=2
     29         ) the_xml
     30    from scott.dept d
     31    /* joins to the other tables EXCEPT image table */
     32  /
    
    THE_XML
    --------------------------------------------------------------------------------
    
      
        10
        ACCOUNTING
        
          http://the.server.com/7782
          http://the.server.com/7839
          http://the.server.com/7934
        
      
      
        20
        RESEARCH
        
          http://the.server.com/7369
          http://the.server.com/7566
          http://the.server.com/7788
          http://the.server.com/7876
          http://the.server.com/7902
        
      
      
        30
        SALES
        
          http://the.server.com/7499
          http://the.server.com/7521
          http://the.server.com/7654
          http://the.server.com/7698
          http://the.server.com/7844
          http://the.server.com/7900
        
      
      
        40
        OPERATIONS
      
    
    

    For a Web service you don't need to print the XML that is returned by the Web service.

    I do not know APEX, so I don't know if APEX supports exposing an already built piece of XML, rather than expose a query result.
    But my guess is that it should do very well if you ask an XMLTYPE data type (i.e. - to use the first of my examples, and not automatically printed.)

    If you do not have APEX to do it this way, then I suggest that you try asking in the APEX forum rather than the SQL forum ;-)

Maybe you are looking for

  • Selection of e-mail under macOS Sierra problems

    An old problem reappeared in the new MacOS Sierra... I can't select the emails by sender or subject in the native Mail application... someone knows the solution? I closed all applications, I rebooted the computer... nothing changed...

  • Click on tools, options, and choices appear. Why

    Firefox 35.0.1. When I chick tools, Options, I get the pop-up window but it is empty. That's happened?

  • How to program a loop to turn on or off

    Hi all I have the same code in two while controlling the four lights of loops. I use a case structure in each loop to pass two conditions (condition A and condition B). Provided that A light 1 LED in the first loop and LED 2 in the second Condition s

  • APU and g6 HP Pavilion RAM upgrade

    Hello! I have a few questions about the upgrade of my laptop. I have HP Pavilion 1203sy g6, it has 1.9 GHz AMD Dual-Core A4 - 3300M APU with Dual GPU Radeon HD 6480 G and 6 GB of DDR3 RAM. I want to replace my A4 3300 M with AMD A8 3530MX or 3550MX A

  • How to uninstall IE9?

    Original title: do CAN NOT FIND uninstall it to IE9! I read through all the forums.  I need to go back to IE8.  I installed IE9 Beta on my work computer and have all kinds of questions.  I can't get to my Billeo to get my password required to work.