Remove child menus with xml

Hi everyone, my case is that I loaded a xml menu like this:
<?xml version="1.0" encoding="UTF-16"?>
<Application>
  <Menus>
    <action type="add">
      <Menu Checked="0" Enabled="1" FatherUID="43520" Position="20" Type="2" String="SISTEC" UniqueID="STEC" Image="imagenx">
        <Menus>
          <action type="add">
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="1" Type="1" String="Analítica Financiera" UniqueID="STEC_INFORMES"></Menu>
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="2" Type="1" String="Menu Activos" UniqueID="STEC_MENU_ACTIVOS"></Menu>
          </action>
        </Menus>
      </Menu>
    </action>
  </Menus>
</Application>
With this code:  ConsSAP.SBO_Application.LoadBatchActions(ref s_xml);
Then when i try to remove the child nodes with the following xml it doesnt work:
<?xml version="1.0" encoding="UTF-16"?>
<Application>
  <Menus>
    <action type="update">
      <Menu Checked="0" Enabled="1" FatherUID="43520" Position="20" Type="2" String="SISTEC" UniqueID="STEC" Image="imagenx">
        <Menus>
          <action type="remove">
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="1" Type="1" String="Analítica Financiera" UniqueID="STEC_INFORMES"></Menu>
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="2" Type="1" String="Menu Activos" UniqueID="STEC_MENU_ACTIVOS"></Menu>
          </action>
        </Menus>
      </Menu>
    </action>
  </Menus>
</Application>
Althought it works if i put "remove" instead of "update" in the root menu...i want to preserve the root menu (and adding it again later is not a valid solution in my case)...
On the other hand, If i use the following xml it works but i dont want to reformat the xml menu knowing the xml with "update" should do it fine:
<?xml version="1.0" encoding="UTF-16"?>
<Application>
        <Menus>
          <action type="remove">
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="1" Type="1" String="Analítica Financiera" UniqueID="STEC_INFORMES"></Menu>
            <Menu Checked="0" Enabled="1" FatherUID="STEC" Position="2" Type="1" String="Menu Activos" UniqueID="STEC_MENU_ACTIVOS"></Menu>
          </action>
        </Menus>
</Application>
Have i done something wrong in the xml or its a SAP bug?

http://mtrinitaria.com/mykhel/as3-tips-of-the-day-removechild/
http://mtrinitaria.com/mykhel/as3-tip-of-the-day-removechild-problems-and-solutions/
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectConta iner.html

Similar Messages

  • How can remove child into file xml using J2ME

    i want to delete child from file xml using midlet but nothing is changed into file
    please help me
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package ajou;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.util.Vector;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.midlet.MIDlet;
    import org.kxml2.io.KXmlParser;
    import org.kxml2.kdom.Document;
    import org.kxml2.kdom.Element;
    import org.kxml2.kdom.Node;
    * @author -Manel-
    public class manelGO extends MIDlet {
    public void startApp() {
    try {
              //Open http connection
              HttpConnection httpConnection = (HttpConnection) Connector.open("http://localhost:8080/examples/users.xml");
                   //Initilialize XML parser
                   KXmlParser parser = new KXmlParser();
                   parser.setInput(new InputStreamReader(httpConnection.openInputStream()));
                   Document theDoc = new Document();
                   theDoc.parse(parser);
                   Element rootElement = theDoc.getRootElement();
    rootElement.removeChild(1);
              catch (Exception e) {
                   e.printStackTrace ();
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    }

    To achieve this you can use the bpelx:remove function: http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28981/manipdoc.htm#CIHJBJFD
    your assign will look like:
    <bpel:assign>
    <bpelx:remove>
    <target variable="person" query="/person/@per" />
    </bpelx:remove>
    </bpel:assign>
    Regards,
    Melvin

  • Xml output remove tag begin with LIST_

    Hi,
    I have a requirement to generate a report with XML output. This output will be used for upload informations to other application. I know names of all tags and I can't have other tags.
    I have a xml file for bi publisher and work fine but group element added one more tag who begin with LIST_.
    e.g.
    <LIST_mygroup_name>
    <mygroup_name>
    </mygroup_name>
    </LIST_mygroup_name>
    I want to remove all tags which begin with LIST_.
    Any suggestion?
    Thanks
    Kale.

    In reports6i I can you can click on the report properties of the group to remove the list tag.
    In data templates just add the property
              <property name="include_rowsettag" value="false"/>Don't forget to give me the points!
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Dealing with XML  as  database

    Hello members,
    My requirement is to deaI with xml totally as a database instead of taking any data base(like oracle etc..).I.e i have to deal with all the operations like update,delete, insert etc to the xml file from my java application.So that my application willl idependent from database.
    I am not finding any information regarding doing update and delete operations from a java application to XML file(the information i am getting is only how to read and write into the XML file ) and i am not able implement all these stufs to my project.
    If any body have any idea help me so that i can move further.
    Thanks
    Mahi

    If you have decided to go ahead with using XML as a d/b then JAXB will be an ideal place to start, at some point you will need to convert XML to java objects and vice versa, then search for the appropriate node in the xml and do delete or update option.
    If you are still pondering over - to use or not to use XML I suggets you to use simple flat files (thats what I do in my project; and it does work fine)
    I store incomming & outgoing SMS in flatfiles (serialized objects). processes like insertion/deletion/update are all done by keeping the file pointer position in memory and I traverse to the exact location (using io.randomAccessFile) of the file and change the record.
    You may try a similar approch in using XML where you may allocate same size for each child node in the XML and mapping each child to a File pointer position in memory and traverse to the exact child to delete/update/insert, so when you make an update - you will actually be writing to a file pointer position in the file and the XML child node will be re-written-over by a new XML data (similar to update in a d/b); when you delete a XML chile node, traverse to that File pointer position and remove it in the file, but that file pointer position remains open/active; where you can write your next record...

  • Dimension Build problem - Child Memeber with no Parent???

    Seems so obvious but I can't see what I'm missing...
    LEVEL0,Product!ALIAS0,Product!LEVEL1,Product!ALIAS1,Product!LEVEL2,Product!ALIAS2,Product!LEVEL3,Product!ALIAS3,Product!LEVEL4,Product!ALIAS4,Product
    *05HC!!NONE!!Product!!!!!*
    Generates the following error...
    *\\Record #2 - Child Member with no parent (3331)*
    *05HC!!NONE!!Product!!!!!*
    What am I missing?

    SR wrote:
    You can extract in XML format using Maxl.you can Use other outline extraction tools.
    Check here
    http://www.appliedolap.com/free-tools/outline-extractor
    That is currently the utility I'm using, I was hoping there was a way to extract using MAXL??
    are you using dimension load option? (by default data load) - yes
    did you selected products dimension while setting " use level reference"? - yes
    Did you selected "remove unspecified" in dimension build setting? If yes, "None" parent record exist before child record in source file? - "remove unspecified", does this remove items in the dimension not specific to the load?

  • Excel Output problem with XML Publisher Report

    Hi Experts,
    I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
    I have column 'quantity' with xml tag <?QUANTITY?>.
    In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
    Thanks in advance.

    Hi, try using this in your template.
    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override>

  • How to Create a Table in Oracle with XML data type.

    Dear ALL,
    What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
    Any help, direction, advise would be highly appreciated.
    Thanks.

    Reffer to this Note.243554.1.
    In a nut shell you will need to run catqm.sql

  • Validate xslt against JDK5 so we can remove the 'Use SAP XML Toolkit' flag

    We are working on PI7.1 and have hit an issue with an XSLT mapping. We were getting an error when testing that said:
    TransformerException during XSLT processing:
    javax.xml.transform.TransformerException: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xalan.internal.xsltc.TransletException: java.io.FileNotFoundException
    We found a few threads on SDN pointing us to using the 'Use SAP XML Toolkit' flag, which we'd not even noticed before. Ticking this flag did get us around the problem. Further investigation suggested to us, however, that this flag will not be available in future releases, so I guess our best solution would be to try and resolve the issues in our mapping against the current version of java (JDK5). When we use other tools such as XMLSPY they do not detect a problem with the XSLT. Can anyone point me to a tool that would enable us to validate our XSLT file against JDK5, which will provide us with error messages that will enable us to fix the error and therefore remove the 'Use SAP XML Toolkit' flag?
    thanks,
    Malcolm.

    > Can anyone point me to a tool that would enable us to validate our XSLT file against JDK5, which will provide us with error messages that will enable us to fix the error and therefore remove the 'Use SAP XML Toolkit' flag?
    I am sorry to have to say that even inside SAP nobody can answer this question.
    In principle it will work when it is pure XSLT 1.1 but some commands from XSLT 2.0 might work also.

  • How to remove the prolog from XML in Oracle?

    Our system works like this:
    1. Pass in a piece of XML to the database as a CLOB
    2. Database converts this to XMLTYPE (stored as a CLOB (you can skip over this, Marco *{;-) ))
    3. An application then reads the XML from the database and inserts it into another bit of XML
    4. The application continues its processing based on this new composite XML.
    Up until now, the XML loaded into the database in step 1 (by various systems) has never contained a prolog. However, a new system has come along and is now passing in a prolog. This causes problems for the application in step 3.
    Aside from trying to get the new system to not pass in the prolog, is there a way to remove it from within Oracle?
    The two solutions I've come up with don't feel elegant:
    1. Use XMLTABLE to extract the main root node (which could be different, depending on which system sent in the data, and could change)
    2. Convert the prolog into a comment, using REPLACE, before converting the CLOB into an XMLTYPE.
    If I was forced to use one of these methods, I'd go with 2, but I really, really hope there's a better way of doing it.
    Has anyone got any other suggestions, please?
    PS. We're currently on 10.2.0.4 and are shortly about to move to 11.2.0.3, but the solution has to work on both versions, for added fun and excitement!

    This is the error the application gives: "Error obtaining Additional Info SAX Exception : No processing instruction starts with 'xml'" which the app dev says is due to the presence of the prolog in the middle of the xml the app has build up.So basically, the app just "pastes" the XML in the middle of another without caring about the structure? What kind of design is that?
    IMO, the app has to be fixed, not the input XML.
    Plenty about how to add the prolog, nothing about how to remove it!You can use XMLQuery function to extract the root element :
    SQL> create table tmp_xml3 of xmltype
      2  xmltype store as basicfile clob;
    Table created
    SQL> insert into tmp_xml3 values (xmltype('<?xml version="1.0" encoding="UTF-8"?><root/>'));
    1 row inserted
    SQL> select * from tmp_xml3;
    SYS_NC_ROWINFO$
    <?xml version="1.0" encoding="UTF-8"?><root/>
    SQL>
    SQL> select xmlquery('*' passing object_value returning content)
      2  from tmp_xml3;
    XMLQUERY('*'PASSINGOBJECT_VALU
    <root/>
    Edited by: odie_63 on 22 août 2012 15:26

  • How to remove default comment from XML output

    Hi,
    I have a requirement to generate the XML report with XML output(Not PDF). Everything is working fine except I am getting one comment line "<!--Generated by Oracle Reports version 6.0.8.28.0--> which is not required and I want to remove this line. This report will be run through Oracle Apps 11i.
    Thanks.

    Hi,
    There is option to change the "Prolog Value" but nothing is there to remove the comment.
    Thanks

  • Need help removing child

    Sorry to bring problems but i am trying to learn some as3 and so far i can not resolve this situation ,,,,,,
    this is the script i am using ,,,,,,,,,,,,,,
    Ent.buttonMode = true;
    Bio.buttonMode = true;
    ent.addEventListener(MouseEvent.CLICK, goEnt);
    function goEnt (e:MouseEvent):void
    var new Ent:MovieClip = new firstIntro();
    this.addChild(newEnt);
    newEnt.x = 659;
    newEnt.y = 428;
    Bio.addEventListener(MouseEvent.CLICK, goBio);
    function goBio (e:MouseEvent):void
    var newBio:MovieClip = new bioIntro();
    this.addChild(newBio);
    newBio.x = 659;
    newBio.y = 428;
    the problem is that when i click on first button the Movie Clip does load ok but when i click on second button the first movie cliip is visible ,,,, i have try everything i have read here but no luck ,,,,,,, i want to learn how to remove first child and allow only the second child to show up ,,,,,,, i am looking forward to add more buttons so the remove child should be for multiple buttons ,,,,, i am learning and so far did purchase a online tutorial but did not help me with this situation ,,,, thank you all in advance ,,,,,

    Create a variable to hold a reference to any child object that is added to the display list, then when any given button is used to add a new movieclip to the display list, use removeChild to get rid if any existing movie clip that was added through the reference in the variable. After the new movie clip is added to the display list, add a reference to that movie clip to the variable so that it can be used when the next movie clip will be added.
    Ent.buttonMode = true;
    Bio.buttonMode = true;
    // create a variable to hold a reference to the currently added child, if any...
    var currentChild: MovieClip;
    ent.addEventListener(MouseEvent.CLICK, goEnt);
    function goEnt (e:MouseEvent):void
    var new Ent:MovieClip = new firstIntro();
    // remove any child object currently in the display list...
    if(currentChild != null) {
    removeChild(currentChild);
    this.addChild(newEnt);
    // put a reference to the added child to the variable...
    currentChild = newEnt;
    newEnt.x = 659;
    newEnt.y = 428;
    Bio.addEventListener(MouseEvent.CLICK, goBio);
    function goBio (e:MouseEvent):void
    var newBio:MovieClip = new bioIntro();
    // remove any child object currently in the display list...
    if(currentChild != null) {
    removeChild(currentChild);
    this.addChild(newBio);
    // put a reference to the added child to the variable...
    currentChild = newBio;
    newBio.x = 659;
    newBio.y = 428;

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Remove namespace prefix with the XMLAnonymizerBean is possible at SOAP Adap

    Hello,
    I am wondering is it possible Remove namespace prefix with the XMLAnonymizerBean at SOAP Receiver Adaptor?
    Thanks

    Hi Rajiv,
    Pl. go through this blog:
    /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
    Also if you want to use this at sender side, SOAP adapter will not support. Please check stefans reply in this thread:
    XMLAnonymizerBean doesnt work
    Regards,
    ---Satish

  • Failed to Load database information - Crystal report with XML as datasource

    Hello Friends:
    I am getting the attached error when i try to load the Crystal Report with XML as data source.
    I have designed the crystal report with the sample XML provided with XSD schema (PFA I have attached the XML and XSD). It is working as expected on design time. But it is failing when I load it from C# code.
    Note: I have referred the following DLLs of version 13.0.2000.0 in my sample application.
    CrystalDecisions.CrystalReports.Design.dll
    CrystalDecisions.CrystalReports.Engine.dll
    Please let me know what should be done in order to resolve this.
    Thank you!

    All I know is that you are using 'SAP Crystal Reports, Developer Version for Visual Studio .NET". No idea what service pack or what version of .NET...
    So. make sure you are on SP 9:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Search for KBA 1525432 (search box is in top right corner) and follow the instructions there.
    Remove your reference to CrystalDecisions.CrystalReports.Design.dll
    Add the following references:
    CrystalDecisions.Shared
    CrystalDecisions.ReportSource
    CrystalDecisions.Web (if web app)
    CrystalDecisions.Windows (if win app)
    I'd also recommend commenting out the export code for now; one step at a time. Get it to work in the viewer, then move on... No Big Bangs
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to reduce the version of a pdf 1.7 to 1.5 & how to remove all the embedded xml form ?

    Hi Team,
        I am using adobe acrobat x pro. I have a pdf file of version 1.7 which showing embedded xml forms. I tried to remove all the 'embedded xml form' by  using Adobe Live cycle Designer ES2.  Then i tried to reduce the version by using Adobe acrobat x pro but it's still showing that there are some 'embedded xml form' for which it's not allowing me to reduce the vesion of pdf file in Adobe Acrobat x pro and also i want reduce the version of the pdf 1.7 to 1.5. Can you please guide me the step to reduce the pdf file version and how to remove the embedded xml form from the pdf file ?

    If the PDF is the same one from the link in your post here:
    http://forums.adobe.com/thread/1174643
    That PDF being protected may have something to do with why you cannot do what you'd like to.
    Be well...

Maybe you are looking for

  • Print Report in PDF format

    I have a report region based on sql query. I want to print that report region in PDF or word format. How can I do that. It may further be stated that I dnt have print server configured. Is it possible to do this wihout the configuration of report ser

  • How can I merge bookmarks and saved passwords from two computers onto one computer?

    Before I got rid of my old computer, I backed up my profile folder on a thumb drive. Then, I got a new computer and started customizing firefox, adding bookmarks and new saved passwords, without ever uploading my passwords and bookmarks from my old c

  • Prepared statement with placeholders - the order or the names are important

    Hi, I'll explain my question, using the example from the OCCI documentation. What if I do something like: <pre> // note the order stmt->setSQL("BEGIN countFruit(:2, :1); END:"); stmt->setString(1, "Apples"); stmt->setString(2, "Oranges"); </pre> This

  • Refresh variable in

    In Note 1064273, there is new option in characteristcs properties Advance Tab: refresh variable with two options: refresh dynamically" / "refresh as designed. I tested how come it is just opposite meaning? Refresh as designed is to recalculate variab

  • Can i get a back camera on my ipod 5 16gb or can i trade in for one that does

    i want to see if i can get a back camera installed for my ipod 5th gen it is 16g even if i have to pay or can i upgrade some way to one that has a back camera or get it for a cheaper price?