JBoss cluster - call to a specific node

Hi!
is it possible to send a remotecall only to a specific node in the cluster?
Simple example:
I have three nodes in my cluster (A, B, C) and i want to send a call only to an object on node C. Node A and B shouldn't be involved in this call.
Best Regards
Hendrik

Hi,
Assuming "doc" is an XMLType variable containing your XML document, you can do :
SELECT insertchildxml(doc, 'ROWSET', '@IS_SUCCESS', '1') INTO doc FROM dual;Slightly off-topic, but to add attributes to ROW elements, DBMS_XMLGEN can handle it for us provided we prefix column aliases with "@".
For example :
SQL> SELECT dbms_xmlgen.getXML('SELECT ''Hello!'' as "@msg" FROM dual') FROM dual;
DBMS_XMLGEN.GETXML('SELECT''HE
<?xml version="1.0"?>
<ROWSET>
<ROW msg = "Hello!">
</ROW>
</ROWSET>
Edited by: odie_63 on 2 nov. 2010 12:50 - added remark on ROW attributes

Similar Messages

  • Calling EJB on specific node from EJB on another node

    Hello,
    In cluster environment what is the best approach to call session bean on one node from session bean on another node? The scenario would allow synchronization of local cache (singleton) between two nodes. I understand that there are other options like SingletonService, distributed cache etc., but I wonder how hard would be to implement synchronization calls between nodes on remote session beans.
    Thanks
    Greg K.

    Hi,
    Based on your query on thread i can suggestthe following as a best option: Re: replica-aware stub.
    Use the JMX code to get the Cluster details....It means the name of the Cluster members and their Listen port and Listen Addresses then in your Client code do the following:
    InitialContext ic = getInitialContext(“t3://ClusterMemberOne:7002,ClusterMemberTwo:7003″);Like that whatever InitialContext object you will get will be able to provide you the correct EJB from any newly added member of the Cluster as well..
    You can enhance the JMX code mentioned in the following link : http://middlewaremagic.com/weblogic/?p=210 you will need to add only 2-3 lines to make it work for your requirement.
    Just tweak the following code to get the ListenPort and ListenAddress of cluster Nodes:
    public void printClusterInfo() throws Exception
         ObjectName[] serverRT = getServerRuntimes();
         Hashtable server_states = new Hashtable();
         for(ObjectName ser: serverRT)
              server_states.put((String) connection.getAttribute(ser,”Name”), (String) connection.getAttribute(ser,”State”));
         }Thanks
    Jay SenSharma

  • How to address message to the specific node of the ESB cluster

    Hi!
    We are running ESB on two node active-active cluster configuration. We use custom adapter to communicate with customer legacy system over Socket connection. The point is, that we need to transfer large amount of data from our database into customer system using one open socket connection. Because of memory limitation we had to split data into multiple messages in ESB. This socket connection can be open from any of the active cluster node, but ones it's open all messages must be send within the node which had open the connection.So, the messages should not arrive into another node. The question: How is it possible to address (route) ESB messages into specific node of the cluster?
    Thanks in advance.
    Jaro,

    Muthu92 wrote:
    Thank you for your reply. It is very useful for me.  But i can't give conditional operator in that operator. It is showing error.
    My Test cases
    A[0]+A[1]>150
    A[31]-50 <100.
    If those are your exact statements, then they don't make sense in a formula node.  You have to use them in an if-statement or some other type of control logic.  This mimics text-based programming languages such as C... See here for instructions on formula node syntax: http://zone.ni.com/reference/en-XX/help/371361G-01​/lvhowto/formula_node_syntax/
    For instance, you COULD say something like:
    **In this example, let A[0] == x, A[1] == y, A[31] == z**
    if(x+y>150)
    /* do something if this is true */
    else if(z-50 < 100)
    /* do something else */
    EDIT: 
    It should also be noted that Variable Names MUST be lowercase!! I just discovered this
    EDIT2:
    I stand corrected.  After trying to create an example and digging through the LabVIEW Help, I stumbled across this:
    Differences between the Parser in the Mathematics VIs and the Formula Node
    The parser in the Mathematics VIs supports all elements that Formula Nodes support with the following exceptions:
    Variables—Only a, a0, ..., a9, ... z, z0, ..., z9, are valid.
    Logical, conditional, inequality, equality—?:,, &&, !=, ==, <, >, <=, and >= are not valid.
    Functions—atan2, max, min, mod, pow, rem, and sizeOfDim are not valid. You can use these functions in a Formula Node or use their corresponding LabVIEW functions.
    So it DOES NOT seem like Eval Formula Node can do conditionals like you want.  I would just implement them using a LabVIEW based algorithm after all.  Trying to out smart the formula nodes to avoid simple LabVIEW code is just too much of a hassle
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • How to expand a tree at a specific node/item?

    Hi,
    we have a tree and the nodes/items were binded to context with this code
    lo_nd_nvccmp = wd_context->get_child_node( name = wd_this->wdctx_nvccmp ).
    lo_nd_tree = lo_nd_nvccmp->get_child_node( name = wd_this->wdctx_tree ).
    lo_el_tree = lo_nd_tree->bind_structure( new_item = ls_tree set_initial_elements = abap_false ).
    We want that the tree is expanded at a specific node/item?
    The structure has the field is_expanded of type WDY_BOOLEAN. I think that if the field of the right structure is 'X' then the tree should expanded. How can we find the right structure in the context and change this field to 'X'?
    Code is appreciated.
    Thanks, regards
    Susanne

    Oh, apparently if you try that call right after you create
    the Tree, it will throw a null reference exception. That might
    count as a bug in the flex api...
    If you create a Tree, and give it's dataProvider some xml
    data, and then add it to the stage (addChild), and then you call
    expandItem or expandChildrenOf() right after, you will get a null
    object exception. You have to wait... for something. I don't know
    what.
    I even tried calling _tree.invalidateList() before the
    expandItem, but it will still throw the error...
    I wonder what the Tree needs to wait for? Is this a bug for
    Adobe to fix?

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • How do I call on a specific child in a container

    I am loaded images into a container that is being displayed on a map.  I've created a string of my images names and am looping a loader to load each image and add them to the container.
    var overlays=["compsmall.png","compsmall3.png","compsmall3.png","compsmall4.png"]
    var overlay_container:MovieClip= new MovieClip();
    function calloverlays():void
    for (var i:Number = 0; i < overlays.length; i++)
    var overlay_url = overlays[i];
    var overlay_loader = new Loader();
    overlay_loader.load(new URLRequest(overlay_url));
    overlay_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, overlayLoaded);
    function overlayLoaded(e:Event):void
    var my_overlay:Loader = Loader(e.target.loader);
    overlay_container.addChild(my_overlay);
    Once all of my images are loaded into the container overaly_container how can I call on a specific child of the container?  For example how can I call on compsmall2.png once its been loaded into overlay_container?
    I place these images onto a map by placing the whole container at the correct location.  I then turn layers on/off by adding and removing the children within the container.  This is why I'd like to specify a specific object in the parent.
    Thanks in advance,
    j

    Well, there are better ways given how you're loading - nesting functions is generally frowned upon... but this should get you started anyway. This is a little function that you could use to hide one of your loaded images:
    function hideLayer(image:String){
        var c:int = overlay_container.numChildren;
        for(var i:int = 0; i < c; i++){
            if(Loader(overlay_container.getChildAt(i)).contentLoaderInfo.url.indexOf(image) != -1){
                overlay_container.getChildAt(i).visible = false;
                break;
    and then use like: hideLayer("compsmall2.png");
    But like I said, there are better ways. But you'd need to restructure your code - get rid of the nested functions, and the loop... then load each image one at a time. Then you know the index in the array of the image being loaded and can match that with the index inside the container...

  • XSLT Mapping - replacing attribute value of a specific node

    Hi,
    I want to replace the value of an attribute for a specific node. Can you please tell me how this can be achieved using XSLT coding?
    The input file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
         <EnvelopeVersion>2.0</EnvelopeVersion>
         <Header>
              <MessageDetails>
                   <Class>IR-PAYE-MOV</Class>
                   <Qualifier>request</Qualifier>
                   <Function>submit</Function>
                   <CorrelationID/>
                   <Transformation>XML</Transformation>
                   <GatewayTimestamp/>
              </MessageDetails>
              <SenderDetails>
                   <IDAuthentication>
                        <SenderID>isv142</SenderID>
                        <Authentication>
                             <Method>MD5</Method>
                             <Value>1L2xFE8WqHHI5iVMGhixAg==</Value>
                        </Authentication>
                   </IDAuthentication>
              </SenderDetails>
         </Header>
         <GovTalkDetails>
              <Keys>
                   <Key Type="TaxOfficeNumber">123</Key>
                   <Key Type="TaxOfficeReference">MD345</Key>
              </Keys>
              <ChannelRouting>
                   <Channel>
                        <URI>0142</URI>
                   </Channel>
              </ChannelRouting>
         </GovTalkDetails>
         <Body>
              <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/MOV/09-10/1">
                   <IRheader>
                        <Keys>
                             <Key Type="TaxOfficeNumber">123</Key>
                             <Key Type="TaxOfficeReference">MD345</Key>
                        </Keys>
                        <PeriodEnd>2009-09-29</PeriodEnd>
                        <DefaultCurrency>GBP</DefaultCurrency>
                        <IRmark Type="generic">03Bfkipk6UDWSXLj77ObBVoK894=</IRmark>
                        <Sender>Company</Sender>
                   </IRheader>
                   <InYearMovements>
                        <EmployerName>form p60</EmployerName>
                        <P46 Statement="A">
                             <Name>
                                  <Fore>Smith</Fore>
                                  <Sur>John</Sur>
                             </Name>
                             <Address>
                                  <Line>Sterling Residency</Line>
                                  <Line>Gehde</Line>
                                  <Line>Hedge End</Line>
                                  <Line>Southampton</Line>
                                  <PostCode>12345678</PostCode>
                             </Address>
                             <WorksNumber>20090030</WorksNumber>
                             <NINO>NP258719D</NINO>
                             <BirthDate>1985-07-11</BirthDate>
                             <Gender>male</Gender>
                             <StartDate>2009-04-20</StartDate>
                             <TaxCodeInUse>647L</TaxCodeInUse>
                        </P46>
                   </InYearMovements>
              </IRenvelope>
         </Body>
    </GovTalkMessage>
    I want to replace the value 'http://www.govtalk.gov.uk/taxation/PAYE/MOV/09-10/1' of attribute xmlns belonging to the node 'IRenvelope' with the value 'http://www.govtalk.gov.uk/taxation/PAYE/MOV/10-11/1'
    So the output of the mapping should be:
    <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
         <EnvelopeVersion>2.0</EnvelopeVersion>
         <Header>
              <MessageDetails>
                   <Class>IR-PAYE-MOV</Class>
                   <Qualifier>request</Qualifier>
                   <Function>submit</Function>
                   <CorrelationID/>
                   <Transformation>XML</Transformation>
                   <GatewayTimestamp/>
              </MessageDetails>
              <SenderDetails>
                   <IDAuthentication>
                        <SenderID>isv142</SenderID>
                        <Authentication>
                             <Method>MD5</Method>
                             <Value>1L2xFE8WqHHI5iVMGhixAg==</Value>
                        </Authentication>
                   </IDAuthentication>
              </SenderDetails>
         </Header>
         <GovTalkDetails>
              <Keys>
                   <Key Type="TaxOfficeNumber">123</Key>
                   <Key Type="TaxOfficeReference">MD345</Key>
              </Keys>
              <ChannelRouting>
                   <Channel>
                        <URI>0142</URI>
                   </Channel>
              </ChannelRouting>
         </GovTalkDetails>
         <Body>
              <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/MOV/10-11/1">
                   <IRheader>
                        <Keys>
                             <Key Type="TaxOfficeNumber">123</Key>
                             <Key Type="TaxOfficeReference">MD345</Key>
                        </Keys>
                        <PeriodEnd>2009-09-29</PeriodEnd>
                        <DefaultCurrency>GBP</DefaultCurrency>
                        <IRmark Type="generic">03Bfkipk6UDWSXLj77ObBVoK894=</IRmark>
                        <Sender>Company</Sender>
                   </IRheader>
                   <InYearMovements>
                        <EmployerName>form p60</EmployerName>
                        <P46 Statement="A">
                             <Name>
                                  <Fore>Smith</Fore>
                                  <Sur>John</Sur>
                             </Name>
                             <Address>
                                  <Line>Sterling Residency</Line>
                                  <Line>Gehde</Line>
                                  <Line>Hedge End</Line>
                                  <Line>Southampton</Line>
                                  <PostCode>12345678</PostCode>
                             </Address>
                             <WorksNumber>20090030</WorksNumber>
                             <NINO>NP258719D</NINO>
                             <BirthDate>1985-07-11</BirthDate>
                             <Gender>male</Gender>
                             <StartDate>2009-04-20</StartDate>
                             <TaxCodeInUse>647L</TaxCodeInUse>
                        </P46>
                   </InYearMovements>
              </IRenvelope>
         </Body>
    </GovTalkMessage>
    Thanks & Regards,
    Aditi Naik

    Hi,
    You get name of an attribute by this code
    <xsl:for-each select="@*">
        <xsl:text>Value of </xsl:text>
               <xsl:value-of select="name(.)"/>
        <xsl:text> is </xsl:text><xsl:value-of select="."/>
    </xsl:for-each>
    Change value by providing new value in <xsl:value-of select="."/>
    Regards
    suraj

  • IXML - Checking if a specific node exists in XML data

    Hi,
    I´m reading XML data by using iXML classes. One XML file I´m reading contains header and
    item data.
    Right now I´m starting with reading the header attributes and then read all nested nodes and their attribute data. That works all fine, but now I had the error, that the XML file wrongly didn´t contain the items.
    My XML reading method then ended up in a dump because the node was null:
    l_node = l_iterator->get_next( ).
    Can anybody give me an advice, how to check at the beginning of reading my xml data, if a specific node (in my case the node for items) exists in the XML data? If not, I want to stop with an error message. I want to check that at the beginning, before reading all element data, to keep my method structured.
    Thank you very much!

    Hi,
    You can create a filter and set that filter to the iterator. If this is done the iterator returns you only the node with a specific node name or node ID.
    You can also check the parsing in the following WIKI code gallery
    https://wiki.sdn.sap.com/wiki/x/JoDmAQ
    Subroutines create_set_filter_attribute and parse_xml_file would be helpful.

  • Query UCCX database for calls from a specific Caller ID

    Hi,
    I did some searching and could not find this answer specifically.
    I have a request from the call center supervisor to provide a report of all calls coming into the CSQ's showing all of the important data (date, time, answered, not answered, length of call, disposition, etc.) for calls from a specific caller ID for a specific date range.
    The caller ID starts with 9XX-XXX-XXXX, so of course UCCX Historical Reports will not display this number as a parameter in the Detailed Call by Call CCDR report because I am limited to the first 32,765 rows. I tried modifying the XML file but have not been successful.
    I tried doing a query through the CLI but not sure if I have the query right.
    Any insight?
    Thank you very much.

    I tried modifying the XML file for the Detailed Call CSQ Agent report
    ICD_Detailed_Call_CSQ_Agent_en_us.xml with the following:
    BEFORE:
    SELECT distinct callednumber FROM contactcalldetail
    AFTER:
    SELECT SKIP 10000 FIRST distinct 20000 callednumber FROM contactcalldetail
    Unfortunately, there are no changes in the available parameters shown:
    The number starts with a '9', so I need to skip the numbers that start with 408. Any help?

  • Using XSLT to empty nodes with the exception of  specific node.

    I have XSLT code working which will remove all the empty elements. My user wishes to exempt a specific node, <BypassDateEdits>. I can not figure out the correct syntax to do this.
    Source XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <PartialJobDataDocumentationData/>
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <End/>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <DocumentMoreTCTOThisJobControlNumber/>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    Desired output is:
    <?xml version="1.0" encoding="UTF-8"?>
    <IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <PartialJobDataDocumentationData/>
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    XSLT to remove all empty nodes is:
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="@* | node()">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*[not(descendant::text()[normalize-space()])]" >
    </xsl:template>
    </xsl:stylesheet>
    I believe I need to use the | operator to select the additional node set of just the <BypassDateEdits> node, but repeated attempt and research on the web has enabled me to find a solution.
    Any assistance would be appreciated.
    Bill

    having gotten a big clue from tsuji, I finally achieved the correct XSLT.
    This XSLT:
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="@* | node()">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*[not(local-name()='BypassDateEdits') and namespace-uri()='http://xml.dod.mil/log/maint/fs/main/4.0.0'][not(descendant::text()[normalize-space()])]" >
    </xsl:template>
    </xsl:stylesheet>
    Yields the desired results:
    <?xml version="1.0" encoding="UTF-8"?><IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    Thank you tsuji,
    Bill

  • Xml search for specific node/attribute

    Hi,
    I load an xml in as3 and need to find and output (as an
    XMLList) a specific node with a specific attribute (example:
    <xs:element name="abcd"> ), or at least find out its path
    (after, I would know what to do to get the XMLList). I looked at
    the XPath classes for Actionscript but the documentation is very
    poor and I did not see any method doing this. Could someone help me
    please? If no method exists, how can I loop through all the xml and
    test each node to see if it is the proper node I am looking for?
    thanks so much in advance for your help
    Pierrot

    You could do it this way, using the descendant accessor:
    var xml:XML =
    <data xmlns:xs="
    http://www.w3.org/2001/XMLSchema">
    <xs:element name="abcd">
    <tagA>hjfhsldf</tagA>
    <tagB>dummy stuff</tagB>
    </xs:element>
    <xs:sequence>
    <xs:element name="dd">
    <tagA>words</tagA>
    <tagB>dummy stuff too</tagB>
    </xs:element>
    </xs:sequence>
    </data>;
    var xs:Namespace = xml.namespaceDeclarations()[0];
    var nodelist:XMLList = xml..xs::element.(@name=="dd");
    trace(nodelist)
    If you need generic code that accounts for no namespaces, you
    can use
    something like this:
    var xs:Namespace = xml.namespaceDeclarations()[0];
    var nodelist:XMLList =
    (xs == null || xs == undefined)
    ? xml..element.(@name=="dd");
    : xml..xs::element.(@name=="dd");
    trace(nodelist)

  • Add node to a specific node in JTree

    I use the following TreePanel class to add node to the tree. My question is how to add a new node under
    a specific node which has been created before. In other words, how to get the path and identify the node.
    For e.g., I first loaded some raw data files and created the "raw data" node, later I need to load another file
    and create a new node under the "raw data" node. Each node is created by using user object. Any help is greatly appreicated.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class TreePanel extends JPanel {
      protected DefaultMutableTreeNode rootNode;
      protected DefaultTreeModel treeModel;
      protected JTree tree;
      public TreePanel() {
        super(new GridLayout(1,0));
        rootNode = new DefaultMutableTreeNode("Experiment");
        treeModel = new DefaultTreeModel(rootNode);
        tree = new JTree(treeModel);
        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.setShowsRootHandles(true);
        JScrollPane scrollPane = new JScrollPane(tree);
        add(scrollPane);
      public JTree getTree(){
        return tree;
      /* Add child to the currently selected node. */
      public DefaultMutableTreeNode addObject(Object child){
        DefaultMutableTreeNode parentNode = null;
        TreePath parentPath = tree.getSelectionPath();
        if(parentPath == null){
          parentNode = rootNode;
        else{
          parentNode = (DefaultMutableTreeNode)(parentPath.getLastPathComponent());
        return addObject(parentNode, child, true);
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child){
        return addObject(parent, child, false);
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible){
        DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child);
        if(parent == null){parent = rootNode;}
        treeModel.insertNodeInto(childNode, parent, parent.getChildCount());
        if(shouldBeVisible){
          tree.scrollPathToVisible(new TreePath(childNode.getPath()));
        return childNode;
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, DefaultMutableTreeNode child){
       if(parent == null){parent = rootNode;}
       treeModel.insertNodeInto(child, parent, parent.getChildCount());
       return child;
    }Thanks in advance!

    public static DefaultMutableTreeNode findNode(DefaultMutableTreeNode from, Object userObject) {
              if (userObject == null && from.getUserObject() == null) {
                   return from;
              } else if (userObject.equals(from.getUserObject())) {
                   return from;
              DefaultMutableTreeNode node = null;
              for (int i = 0; i < from.getChildCount(); i ++) {
                   node = (DefaultMutableTreeNode) from.getChildAt(i);
                   if (userObject == null) {
                        if (userObject == node.getUserObject()) {
                             break;
                   } else {
                        if (userObject.equals(node.getUserObject())) {
                             break;
                   node = null;
              if (node != null) {
                   return node;
              //Node not found
              //dig deeper
              for (int i = 0; i < from.getChildCount(); i ++) {
                   node = (DefaultMutableTreeNode) from.getChildAt(i);
                   if (!node.isLeaf()) {
                        node = findNode(node, userObject);
                        if (node != null) {
                             return node;
              //Not found
              return null;
         }     

  • How to iterate to a specific node in Oracle ATS OpenScript

    Hi,
    I have recorded a script in Oracle ATS Open Script tool. I want to iterate back to a specific node after completing the first iteration. Is there any way to do that?
    I don't want to iterate back to first step again and again.
    Regards,
    Sahil
    Edited by: 1009073 on May 31, 2013 1:39 AM

    Hi, DeepuM,
    Thnxs fr this info,I've followed the step which was mentioned earlier in your posts..but i m getting error.
    here's my scenario : i have a lo-gin script node and two child scripts in RUN Section,i want to iterate only the lo-gin node.. hence i moved the child scripts to initialize section ended up with this error "Failure when running child script"
    kindly help.
    Thanks in Advance.
    Regards,
    Diane

  • Just updated to 3.6.8. Now can't navigate reliably. Frequently get this error message: "Server Error in '/' Application. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies th

    Just updated to 3.6.8. Now can't navigate reliably. Frequently get this error message: "Server Error in '/' Application. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster." Pending fix of this glitch, is there a way to go back to previous version of Firefox that worked perfectly well?
    == URL of affected sites ==
    http://www.americanleather.com/ComfortSleeper/Madison.aspx?page=2

    Hi JH,
    According to your description, my understanding is that you got an error when you deleted  columns in SharePoint 2010.
    Please add the following string in <system.web> section of your web.config file :
    <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />
    Note: before changing web.config, please make a backup for the file.
    Here are some similar posts for you to take a look at:
    http://forums.asp.net/p/1355367/2778642.aspx
    http://forums.asp.net/t/1166634.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Xsl for removing specific nodes and modifying one node.

    Hello,
    i have the urgent need to remove specific nodes
    and modify one node in my XML.
    the xml as input :
    <?xml version="1.0" encoding="utf-8"?>
    <PLOT>
      <REQUEST>
        <GET_LAYOUT>
          <PROPERTIES>
            <MAPNAME name="xxxx" />
           </PROPERTIES>
          <DATAFRAME id="MAIN">
            <LAYERLIST>
              <LAYERDEF id="0" visible="false" query="" />
              <LAYERDEF id="1" visible="false" query="" />
              <LAYERDEF id="2" visible="false" query="" />
              <LAYERDEF id="3" visible="false" query="" />
              <LAYERDEF id="4" visible="false" query="" />
              <LAYERDEF id="5" visible="false" query="" />
              <LAYERDEF id="6" visible="false" query="" />
              <LAYERDEF id="7" visible="false" query="" />
              <LAYERDEF id="8" visible="false" query="" />
              <LAYERDEF id="9" visible="false" query="" />
              <LAYERDEF id="10" visible="false" query="" />     
            </LAYERLIST>
            <MAPSERVICELIST>   
              <MAPSERVICEDEF  service="BASEMAP" >
                <LAYERLIST>
                  <LAYERDEF id="2" visible="True" query="" />
                  <LAYERDEF id="1" visible="False" query="" />
                </LAYERLIST>
              </MAPSERVICEDEF>
              <MAPSERVICEDEF service="MAP1">
                <LAYERLIST>
                  <LAYERDEF id="4" visible="True" query="" />
                  <LAYERDEF id="3" visible="True" query="" />
                  <LAYERDEF id="2" visible="True" query="" />
                  <LAYERDEF id="1" visible="False" query="" />
                </LAYERLIST>
              </MAPSERVICEDEF>
            </MAPSERVICELIST>
          </DATAFRAME>
        </GET_LAYOUT>
      </REQUEST>
    </PLOT>
    what i want to have is:
    <?xml version="1.0" encoding="utf-8"?>
    <PLOT>
      <REQUEST>
        <GET_LAYOUT>
          <PROPERTIES>
            <MAPNAME name="xxxx" />
          </PROPERTIES>
          <DATAFRAME id="MAIN">
            <LAYERLIST>
       <LAYERDEF id="6" visible="True" query="" />
                <LAYERDEF id="5" visible="True" query="" />
                <LAYERDEF id="4" visible="True" query="" />
                <LAYERDEF id="3" visible="False" query="" />
    <LAYERDEF id="2" visible="True" query="" />
    <LAYERDEF id="1" visible="False" query="" />       
            </LAYERLIST>
            <MAPSERVICELIST/>   
          </DATAFRAME>
        </GET_LAYOUT>
      </REQUEST>
    </PLOT>
    as you see, <MAPSERVICELIST/>   is empty and <LAYERLIST> contains all <LAYERDEF> of <MAPSERVICEDEF>/<LAYERLIST> 
     The ones  of BASEMAP  are kept unchanged  but the ones of MAP1 are having a new attribute value for id.
    Thanks four your help.
    Regards.

    You can implement very straightforward map in BizTalk like below:
    If you are interested in XSLT of this map, I copied below which visual studio gave me when i validated the map:
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/PLOT" />
    </xsl:template>
    <xsl:template match="/PLOT">
    <PLOT>
    <REQUEST>
    <GET_LAYOUT>
    <PROPERTIES>
    <MAPNAME>
    <xsl:if test="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/@name">
    <xsl:attribute name="name">
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/@name" />
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/MAPNAME/text()" />
    </MAPNAME>
    <xsl:value-of select="REQUEST/GET_LAYOUT/PROPERTIES/text()" />
    </PROPERTIES>
    <DATAFRAME>
    <xsl:if test="REQUEST/GET_LAYOUT/DATAFRAME/@id">
    <xsl:attribute name="id">
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/@id" />
    </xsl:attribute>
    </xsl:if>
    <LAYERLIST>
    <xsl:for-each select="REQUEST/GET_LAYOUT/DATAFRAME/MAPSERVICELIST/MAPSERVICEDEF">
    <xsl:for-each select="LAYERLIST/LAYERDEF">
    <LAYERDEF>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@id">
    <xsl:attribute name="id">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@id" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@id">
    <xsl:attribute name="id">
    <xsl:value-of select="@id" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@visible">
    <xsl:attribute name="visible">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@visible" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@visible">
    <xsl:attribute name="visible">
    <xsl:value-of select="@visible" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="../../../../LAYERLIST/LAYERDEF/@query">
    <xsl:attribute name="query">
    <xsl:value-of select="../../../../LAYERLIST/LAYERDEF/@query" />
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="@query">
    <xsl:attribute name="query">
    <xsl:value-of select="@query" />
    </xsl:attribute>
    </xsl:if>
    </LAYERDEF>
    </xsl:for-each>
    </xsl:for-each>
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/LAYERLIST/text()" />
    </LAYERLIST>
    <MAPSERVICELIST>
    <xsl:text> </xsl:text>
    </MAPSERVICELIST>
    <xsl:value-of select="REQUEST/GET_LAYOUT/DATAFRAME/text()" />
    </DATAFRAME>
    <xsl:value-of select="REQUEST/GET_LAYOUT/text()" />
    </GET_LAYOUT>
    <xsl:value-of select="REQUEST/text()" />
    </REQUEST>
    </PLOT>
    </xsl:template>
    </xsl:stylesheet>
    You can highlight the issue if you have any specific one.
    Please mark it as Answer if this answers your question
    Thanks.
    Mo
    The contents I write here is my personal views, not the view of my employer and anyone else.

Maybe you are looking for

  • HT201210 what is unknown error 11

    My iphone 3gs home button stopped working and then the whole phone started doing strange things and then stopped working and froze altogether. so I tried to restore my phone, but after a while it came up saying the iphone can not be restored,  unknow

  • MM: Queries

    Dear Gurus, There is a business requirement from  our client. There are 2 queries: Query#1: When partial material is issued against a particular order , how we can have the revised GR/GI slip to show updated remaining qty of stock? As currently when

  • UWL task couldnot able to open

    Hi experts, While I am trying to open BPM task which have send date 'yesterday' I am getting error ""Unable to open the task a8885aa0f68a998e1b777760000ceadd9q because the process instance or the task is being processed. Retry opening the task in few

  • Removing "servlet" in the url

    Hi all I am developing a website using JSP/Servlet (Tomcat 4.0 + Oracle 8). I found whenever I need to access a servlet, I need to append "servlet" in the url. for example (my context in Tomcat is app/) http://localhost/app/servlet/Test So far I am u

  • Silent / Mute AC3 track after encoding in Compressor 2

    Hi, I exported audio from a 2hr 27min time line in FCP 4.5 to create an .aif file. I then transcoded it to an .AC3 file on my macbook using Compressor 2. When I listen to it in VLC, it all sounds perfectly fine. But when I import it into DVD Studio P