Setting node value of self closed tags

Hi all, I was just wondering if anyone knew the answer to this problem, I'm new to this level of java programming and I've been reading documentation till my eyes have started bleeding. When I use the setNodeValue() function on an element, it works fine UNLESS the node is self closed, in which case i cannot access it as it comes up as null. If anyone can give a sample code, or point me in the right direction I'd appreciate it

by "it" i mean the node itself, and by "comes up as", i mean that the value of the node (and data type apparently) is null. Here is the code snippet that i currently have;
NodeList nodeLst = doc.getElementsByTagName(repeatedNode);
for (int s = 0; s < nodeLst.getLength(); s++) {
     Node fstNode = nodeLst.item(s);
     if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
          Element fstElmnt = (Element) fstNode;
          NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("status");
          Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
          Node test = (Node) fstNmElmntLst.item(0);
          if (fstNmElmnt != null){
               NodeList fstNm = fstNmElmnt.getChildNodes();
               if ( ((Node) fstNm.item(0)) != null ){
                    ((Node) fstNm.item(0)).setNodeValue("testing setvalue");
}Notice the checks against null that I have in the code, those are to check against the self closed tages (eg <node />). I realize that there is nothing wrong with xmnl being formatted in this way, I just need to find a way to set values in those nodes. From reading the documentation on setNodeValue() ( [http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html#setNodeValue(java.lang.String)|http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html#setNodeValue(java.lang.String)] ), the function cannot be used on a node that is of type null. What I'm trying to figure out is what to use instead yo be able to set the values of those "null" nodes.
Edited by: Billy1234 on Jul 3, 2008 6:01 AM

Similar Messages

  • Self closing tags appearing in xquery

    I am working on a migration project where the weblogic is getting migrated from weblogic 8 to 10.x
    my application uses xquery and when upgraded to higher version i can see some self closing tags getting created in the transformed xml which is not the case with 8.1.
    for example:
    I have given a simple declaration as below
    let $a  := <find an attribute value>
    return
    <abc:value>{$a}</abc:value>
    if the "find an attribute value" returns null then in weblogic 8 the node will not be sent in transformed xml but in weblogic10.x it is parsing the node as self closing one like <abc:value/>
    Is this an issue with migration? I know that the xquery upgraded to 2004 and I did took care of that part.

    So workaround for me in this case would be? as i have number of direct mappings happening in my code of 8.1 and definitely I can't keep an if else block to make it work.
    Well, as you've been relying on a bug then I guess you now have to correct your code.
    I don't see how you can do it without using a conditional block.

  • Setting Node value in a DOMtree

    Hello Techies,
    I am trying to create a DOM Tree. I had create Node's for the DOM Tree. I want to know how to set the Values to these Nodes.
    Element root = null;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.newDocument();
    root = document.createElement(Root_Element);
    document.appendChild(root);
    Element applicationElement =document.createElement(Application_Element);
                applicationElement.setNodeValue("krish");
      root.appendChild(applicationElement);Now when I try to get the This Node Value , I am getting null Pointer Exception.
    Here is my code of retrieving the node value
    NodeList applicationNodeList = null;
    applicationNodeList =finalElement.getElementsByTagName("application");
    System.out.println("applicationNodeList size"+applicationNodeList.getLength());
          for(int i = 0; i<= applicationNodeList.getLength();i++)
               System.out.println("eachApplicaiton in the DOM"+applicationNodeList.item(i).getNodeValue());
               }I am getting NodeList size is 1 , but I the node Value I am getting as Null.
    What I am doing for setting the Node Value is correct(or) am I missing some thing.
    Can u guys help me out to fix this problem.
    regards,
    Krish.

    Thanx 4 u r reply.
    I had found where exactly the problem is .The element Node will take only null values.
    I have to create a DOM Tree in the following format.
        <Application>
            <application_id>   1 </application_id>
            <application_name>krish    </application_name>
            < description>   This is test </description>
      </Application>The values that I am placing in the following tags tage<application_id>,<application_name> and <description> are from database.
    My Code is
    Element root = null;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.newDocument();
    root = document.createElement(Root_Element);
    document.appendChild(root);
    Element applicationElement =document.createElement(Application);
    root.appendChild(applicationElement);
    Element applicationIdElement =document.createElement(application_id);
    applicationIdElement.setNodeValue("1");
    appliationElement.appendChild(applicationElement);
    Now let us suppose that I had created Text Node
    TextNode t  =  applicationElement.createTextNode(application_id);
    applicationElement.appendChild(t);Now The value which I am getting from database I am not sure that it is always be a String , Some times , it may be
    int,bigInt,String,Clob.
    In this situation How can I create DOM Tree??
    To obtain the above xml structure, Whether I have to create text Node's under application?? Plz guide me.
    Looking forward 4 u r solutions
    Regards,
    Krish

  • DOMException on setting node value

    Hi,
    I get the following error
    oracle.xml.parser.XMLDOMException: Node cannot be modified
    while trying to set the value of a newly created node as below:
    String eName="Mynode";
    XMLNode aNode = new XMLNode(eName, Node.ELEMENT_NODE);
    aNode.setNodeValue(eValue);
    How do I create a node whose value I can set later on?
    Thanks,
    Bhaskar
    null

    If you check the DOM spec referring to the table discussing the
    node type, you will find that if you are creating an element
    node, its nodeValue is to be null and hence cannot be set.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Bhaskar Deka (guest) wrote:
    : Hi,
    : I get the following error
    : oracle.xml.parser.XMLDOMException: Node cannot be modified
    : while trying to set the value of a newly created node as below:
    : String eName="Mynode";
    : XMLNode aNode = new XMLNode(eName, Node.ELEMENT_NODE);
    : aNode.setNodeValue(eValue);
    : How do I create a node whose value I can set later on?
    : Thanks,
    : Bhaskar
    null

  • How to set the value of the title -tag

    Hi
    I try to set the html-title of the html file rendered by the portal framework. I've found the <head>-tag in the head.jsp skeleton file but there is not title tag. How is the header rendered and how could I determine the title for each page individually?
    thanks for any help...
    marc
    Message was edited by mbae at Sep 22, 2004 10:26 AM

    What issues did you have with setting the backing file to the desktop?
    One solution is to set a page backing file for every page that you want to allow to affect the portal's overall title. In the page's backing file (which could conceivably be shared across all the pages in question) you would write some code that would do something like:
    1) get the desktop backing context
    2) get the desktop's title
    3) get the page's title from the page's backing context
    4) append the page's title to the desktop's title
    5) set the new title on the desktop backing context
    I haven't tested this code, but the common page backing file's relevant method would look something like this:
    public void preRender(HttpServletRequest request, HttpServletResponse response)
        DesktopBackingContext desktop
            = DesktopBackingContext.getDesktopBackingContext(request);
        String title = desktop.getTitle();
        PageBackingContext page
            = PageBackingContext.getPageBackingContext(request);
        title += " - " + page.getTitle();
        desktop.setTitle(title);
    }

  • Tree set node value

    Hello. I really need some from you. I'm working with a tree and I want to change the value of a node (I know the row of that node so I can find the path to it) . Can anyone help me?There is something like setValueAt(tree,row...) ??
    Please! I need urgent help.
    Thanks alot.

    setUserObject?

  • Not able to set the value in marketing context node for BP_HEAD

    Hi,
    I am trying to set the value in marketing node of BP_HEAD from bp_addr component. i am calling the set_property method but it is not changing the value, when i debugg the code, it actually changing the value in bol structure but it is not calling the get/set method of bp head.
    i am working on BP corporate person  creation i.e. in bp_head component and account details view. I added the marketing attributes in UI configuration and also the address attributes.
    this is what i coded in get method of country in standardaddress context node of BP_ADDR
    lv_entity ?= current.
        IF lv_entity IS BOUND.
          lv_parent = lv_entity->get_parent( ).
          IF lv_parent IS BOUND.
            lv_entity_mkt = lv_parent->get_related_entity( iv_relation_name = 'BuilMarketingRel' ).
            IF lv_entity_mkt IS BOUND.
              CALL METHOD lv_entity_mkt->set_property
                EXPORTING
                  iv_attr_name = 'ATTRIBUTE'
                  iv_value     = attribute1.
    Can anyone please guide me on how to set the value cross component and can we call the get/set method of that attribute which is not in same component?
    Regards,
    Kamesh Bathla

    Sorry, what I said was rubbish, because the LSMW and the session run in different external sessions.
    I have searched forum for these terms: "company BUK parameter BDC background"
    These threads Is it possible to set default company code in SM35? and Release BDC in SM35 in background, How to set defaul company code? seem promising, but I'm not sure they really solve.
    In case these threads don't help you, I think you can create your own Z transaction which sets the BUK parameter id and then does a LEAVE TO TRANSACTION 'ABAON'. Then create again the recording on the Z transaction.
    If you are using ECC6, then you may also enhance the standard to reset BUK parameter id at the very beginning of ABAON, in case it's run in batch input (sy-binpt = 'X'). Be careful as sometimes SAP does batch input on some transactions, so that could make the standard fail.
    Last thing, you can contact SAP support, though it might probably be considered as consulting.

  • How to set the value in the xml node.

    Hi
    I am having the application PDF which can be submitted by user using the button. while submitting 
    i am using below code to set the value in the xml node.
       xfa.data.assignnode("employee.id","123",0):
    So its generating the xml like below.
    <employee>.
    <id>123</id>.
    </name>
    </employee>
    Now i need to generate the xml like  below.
    <employee id= "123" >
      </Name>
    </employee>
    So how to set/create the id node like above?
    Advance Thanks.
    Regards,
    Dhiyane

    Hi Dhiyane,
    You will have to set the contains property if the id node to "metaData", that is;
    xfa.data.assignNode("employee.id","123",0);
    xfa.data.employee.id.contains = "metaData";
    Very clumsy if you have a number of them, in which case you might want to look at using E4X.
    Good luck
    Bruce

  • Self-referential attribute: how to set the value if it is NULL/unknown

    Hi,
    I am getting the following error while doing Logical Loop Check:
    self-referential attribute: b5@Rules_test_doc
    number of rules in this loop: 3
    number of attributes in loop chain: 3
    number of relationships in loop chain: 0
    The rule engine will be seeded with information from a database.
    My requirement is to set a value to the attribute (X) = "ABC" if (X) is null and (Y) is 0
    ( in 10.4 NULL is represented by unknown)

    You would have to have an intermediate field here to achieve this. It definitely is a logical loop in OPA terms, since you are trying to use X to prove X.
    To solve it you would need to do:
    attribute (X) = "ABC" if (X_input) is null and (Y) is 0
    Or for a "real" example:
    the person's processing office:
    "london" | the person's provided procesing office is currently unknown
    the person's provided procesing office | otherwise
    So if no processing office has been provided by the database, (i.e. "null") it effectively defaults to London.
    You could then use "the person's processing office" as normal throughout the rules, confident that it should never be unknown.
    Cheers,
    Ben
    Edited by: Ben Rogers on Jan 8, 2013 1:28 PM

  • How to set default value to a node attribute programmatically?

    Hi Experts
             How to set a default value to a context node attribute programmatically? Any code snippet will be really helpfull. I am talking about the attribute inside a node in context.
    Note: This is for webdynpro for ABAP
    Thanks
    Gopal

    Hi Gopal,
    Assume you have the node called TEST and attribute called NAME then to set the value of NAME, you can use the following code say in WDDOINIT method or any other method.
    data:
        Node_Test                           type ref to If_Wd_Context_Node,
        Elem_Test                           type ref to If_Wd_Context_Element,
        Stru_Test                           type If_Componentcontroller=>Element_Test ,
        Item_NAME                           like Stru_Test-NAME.
    navigate from <CONTEXT> to <TEST> via lead selection
      Node_Test = wd_Context->get_Child_Node( Name = wd_This->wdctx_Test ).
    get element via lead selection
      Elem_Test = Node_Test->get_Element(  ).
    set single attribute
      Elem_Test->set_Attribute(
        exporting
          Name =  `NAME`
          Value = 'Value').
    Note: You can use Weddynpro code wizard to get this code. (Ctrl+F7)
    Regards,
    Srini.

  • Error in Invoke Node-Set Control Value

    I've a trouble with a VI: the error cluster warns ERR(7) when I try to pass the output of the "FLATTEN TO STRING" function to an Invoke Node-Set Control Value.
    In the file attachments there's the upmentioned VI. Thank you
    Attachments:
    Cambia_i_valori_di_default.vi ‏147 KB

    Error 7 is file not found. I would think that this error is generated by one of your Open VI References and not any of the Set Control Values. Check your paths and verify that they're correct. Also, you haven't included two subVIs or the VIs that you're trying to modify so it's impossible for anyone to try and recreate your problem. Save them into an LLB and attach that if you still have problems and want some help.

  • Saving a blank node of xml in normal closing instead of self closing.

    I am having a string.
    var str:String = '<p>a</p><p><blanknode></blanknode></p>';
    im converting this string into xml like this:
    var myXmlList:XMLList = new XMLList(str);
    But the flex compiler automatically parses it as <blanknode/> ie. selfclosing.
    How can I forcefully save it in normal closing mode.
    Sumit

    No.  The task is setup using Measurement and Automation Explorer and has a name assigned to it.  I like to use this dropdown as this program may be run with different tasks depending on what the user wants to do.  I realize that the way LabVIEW treats the value from the control in the image is the problem.  Still, I can right-click this control outside of execution and select "Set current value as default" and it will select the same task on every execution.  Not so if I pass the value into an XML file and try to reload that value at the start of execution.
    Thanks you for your input!
    -Nic
    Attachments:
    tbsm_daqmx_load_from_xml.jpg ‏32 KB

  • Closing tag in xml transformation

    Hi experts,
    I have the following ABAP code:
    ABAP itab to XML string
      CALL TRANSFORMATION id SOURCE data = ti_stocks[]
                             RESULT XML    ps_output.
    The result in ps_output should be an xml like this
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <DATA>
    <ZTABLE_STO>
      <FIELD1 /> ABC</FIELD1>
      <FIELD2 />0300</FIELD2>
      <FIELD3 />1</FIELD3>
      </ZTABLE_STO>
    etc.
    However, if my internal table ti_stocks contains the field1 with an empty value then the xml is incorrect without its corresponding closing tag:
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <DATA>
    <ZTABLE_STO>
      <FIELD1 />
      <FIELD2 />0300</FIELD2>
      <FIELD3 />1</FIELD3>
      </ZTABLE_STO>
    etc.
    How can I resolve this problem? I would like to have an open tag and a closing tag for every field.
    FIELD1 is a char type field.
    Thank you,
    Oscar
    Edited by: Oscar Arranz on Jan 26, 2012 2:46 PM

    Hello everyone, sorry for my english, I had the same requeriment for the end tag, the simple transformation give this result <xxx/> when the value was empty, and I did something similar to Oscar,
    i did the simple transformation and the result whas and xstring, i used a function to pass it to string, and then I make a replacement.
    here is some code:
    *  Genera XML
       data: xml_xstring          type xstring.
       data: w_xml                 type string.
       data: ixml                    type ref to if_ixml,
               streamfactory      type ref to if_ixml_stream_factory,
               encoding             type ref to if_ixml_encoding,
               ixml_ostream      type ref to if_ixml_ostream.
       data: resstream           type ref to if_ixml_ostream.
    ****Create an instance of the Ixml Processor
       ixml = cl_ixml=>create( ).
    *  ****Create the Stream Factory
       streamfactory = ixml->create_stream_factory( ).
    *  ****Create an Endcoding and Byte Order
       encoding = ixml->create_encoding( character_set = 'ISO-8859-1' byte_order = 0 ).
    *  *  ****Create the output stream with a pointer to our binary string
       ixml_ostream = streamfactory->create_ostream_xstring( xml_xstring ).
    *  ****Set the Encoding into a stream
       ixml_ostream->set_encoding( encoding = encoding ).
    ****Call simple Transformation
       call transformation zdte_libros
       source zcaratula = x_doc
       result xml ixml_ostream.
    *From xstring to string.
       call function 'HR_RU_CONVERT_HEX_TO_STRING'
              exporting
                     xstring = xml_xstring
              importing
                     cstring = w_xml.
    * <xxx/> to <xxx><xxx/>
       replace all occurrences of regex '<([^><\s]+)( [^><]+)?/>' in w_xml with '<$1$2></$1>'.
    Hope it helps someone with the same problem .

  • Closing tag error

    I have an extremely broken page.
    When I validate it I get a lot of closing tag errors but I don't understand in what way I have not closed them properly as I have not had this issue before.
    Can anyone help?
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tavcafe.com%2Fevents.php&charset=%28det ect+automatically%29&doctype=Inline&group=0

    Thanks guys, that is all really helpful, unfortunately there is a problem.
    I have just realised that when I validate the document it is including all of the code that is created through perch outside of the core document.
    as you can see from bellow many of the errors are not present because they are created somehow by perch.  I create the perch tags and templates and then I or my client enter in the information we required to be displayed within the perch admin panel and the code is automatically created, which is where those missing <ul> and <li> tags are occuring as well as the multiple nested span tags and the error on line 1139.  As you can see I do have my css in a seperate document linked as you said and my
    <doctype>
    <html>
    <head>
    is in the format you suggest.
    So how do I fix these code problems when it is autmated by Perch and there is no said document???
    The document I am working on looks like this:
    <?php include('perch/runtime.php');?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <head>
    <title>TAV Cafe - Events</title>
    <link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css"/>
    <link rel="stylesheet" href="colorbox.css" />
    <link rel="stylesheet" href="gallery.css" />
    <link rel="stylesheet" href="events.css" />
    <style type="text/css">
    @font-face {font-family: 'CallunaSans-Regular';
    src: url('webfonts/23937E_0_0.eot');
    src: url('webfonts/23937E_0_0.eot?#iefix')
    format('embedded-opentype'),
    url('webfonts/23937E_0_0.woff')
    format('woff'),
    url('webfonts/23937E_0_0.ttf')
    format('truetype');
    body {
        background-image:url(background_image.jpg);
        background-repeat:no-repeat;
        background-color:black;
        background-attachment: scroll;
        background-position:top left;
        background-size: 1024px 800px contain;
    #hours { position:absolute;
    left:10px; top:10px;
    width:300px;
    height:30px;
    z-index:1;
    font-family: Skia, CallunaSans-Regular;
    font-size:13px;
    font-weight:bold;
    color:#a76d2f;
    line-height:140%;
    word-spacing:1px;
    #title_bar { position:absolute;
    left:0px; top:55px;
    z-index:0;
    .rollover a{
        display: block;
       text-indent: -9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    #title a{ position:absolute;
    left:10px; top:70px;
    height:86px;
    width:325px;
    z-index:1;
    background: url('title.jpg') no-repeat left top;
    #title a:hover{
       background-position: left 0px;
    #about a{
    position: absolute;
    top: 55px; left: 440px;
    height: 50px;
    width: 128px;
    background: url('about_tab.png') no-repeat left top;
    #about a:hover{
       background-position: left -50px;
    #gallery a{
    position:absolute;
    top: 55px; left: 655px;
    height: 50px;
    width: 168px;
    background: url('gallery_tab.png') no-repeat left top;
    #gallery a:hover{
       background-position: left -50px;
    #venue a{ position:absolute;
    left:910px; top:55px;
    height: 50px;
    width:215px;
    background: url('venue_tab.png') no-repeat left top;
    #venue a:hover{
       background-position: left -50px;
    #shop a{
    position:absolute;
    left:550px; top:115px;
    height: 50px;
    width:128px;
    background: url('shop_tab.png') no-repeat left top;
    #shop a:hover{
       background-position: left -50px;
    #restaurant a{
    position:absolute;
    top: 115px; left: 770px;
    height: 50px;
    width: 190px;
    background: url('restaurant_tab.png') no-repeat left top;
    #restaurant a:hover{
       background-position: left -50px;
    #bar a{ position:absolute;
    left:350px; top:115px;
    height: 50px;
    width:120px;
    background: url('bar_tab.png') no-repeat left top;
    #bar a:hover{
       background-position: left -50px;
    #events a.events-link{ position:absolute;
    left:50px; top:180px;
    height: 50px;
    width:140px;
    background: url('events_tab.png') no-repeat left top;
    #events a.events-link:hover{
       background-position: left -50px;
    #events .events-calendar{ position:absolute;
    left:50px; top:230px;
    #pop_up_background { position:absolute;
    left:340px; top:190px;
    height:580px;
    width:650px;
    z-index:2;
    div.scroll
    background-color:transparent;
    position:absolute;
    left:380px; top:200px;
    width:600px;
    height:550px;
    z-index:3;
    font-family: Skia, CallunaSans-Regular;
    font-size:16px;
    color:#a76d2f;
    line-height:140%;
    word-spacing:1px;
    overflow:scroll;
    #contact_bar { position:absolute;
    left:0px; top:635px;
    z-index:1;
    #contact a{
    position:absolute;
    top: 640px; left:0px;
    height: 50px;
    width: 190px;
    z-index: 2;
    background: url('contact_tab.png') no-repeat left top;
    #contact a:hover{
       background-position: left -50px;
    #copyright_background { position:absolute;
    left:1020px; top:650px;
    z-index:1;
    #copyright { position:absolute;
    left:1045px; top:755px;
    font-family: Arial Black;
    font-size:14px;
    color:#340000;
    line-height:110%;
    z-index:2;
    #webdesign { position:absolute;
    left:1045px; top:660px;
    font-family: PrestigeEliM-Reg;
    font-size:18px;
    color:#340000;
    line-height:110%;
    z-index:2;
    .rollover a{
        display:block;
       text-indent:-9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    .rollover .events-calendar a{
       display:inline;
       text-indent:-9999px;
       margin: auto auto auto auto;
       cursor: pointer;
       outline: transparent solid 0px;
    #website_link a{
    position:absolute;
    left:1020px; top:675px;
    height: 76px;
    width: 150px;
    z-index:2;
    background: url('website_link.png') no-repeat left top;
    #website_link a:hover{
       background-position: left 0px;
    #fb_icon a{ position:absolute;
    left:280px; top:650px;
    height: 36px;
    width: 36px;
    z-index:2;
    background: url('fb_icon.jpg') no-repeat left top;
    #fb_icon a:hover{
       background-position: left 0px;
    #fb-root {position:absolute;
    left:190px; top:655px;
    z-index:2;
    table.calendar {
        width:200px;
        height:200px;
        border-collapse: collapse;
        margin: 10px;
        clear: left;
        background-color:#eb5604;
    table.calendar td {
        border: 1px solid #ccc;
        vertical-align: top;
    table.calendar td.today {
        background-color:#483229;
        opacity:70%;
    table.calendar td.today span.day {
        font-weight: bold;
        color: #bc5000;
    table.calendar td.weekend {
        background-color: #483229;
    table.calendar td.notinmonth {
        border: none;
        background-color: transparent;
    table.calendar td.past {
        text-decoration: line-through;
    table.calendar td.notinmonth.weekend {
        background-color: transparent;
    table.calendar td span.day {
        display: block;
        color: #ccc;
    table.calendar td div.event {
        display: block;
        background-color: #ffffff;
        color: #a76d2f;
        padding: 3px;
        border-radius: 5px;
        border: 1px solid #fff;
    ul.calendar-nav {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
    ul.calendar-nav li {
        width: 33.3%;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        display: block;
        float: left;
        text-align: center;
    ul.calendar-nav li:first-child {
        text-align: left;
    ul.calendar-nav li:last-child {
        text-align: right;
    /* --- LISTING --- */
    ul.events {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
        border-top: 1px solid #bed6ec;
    ul.events li {
        border-right: 1px solid #bed6ec;
        border-bottom: 1px solid #bed6ec;
        vertical-align: top;
        background-color: #bed6ec;
        clear: left;
    ul.events li ul {
        list-style: none;
    ul.events li li {
        border: none;
        border-bottom: 1px dotted #999;
        min-height: 0;
        margin-left: 25px;
        padding: 10px;
        background-color: #fff;
        clear: none;
    ul.events li li:last-child {
        border-bottom: 0;
    ul.events li li span.time {
        color: #999;
        font-style: italic;
        font-size: 90%;
        width: 60px;
        text-align: right;
        display: inline-block;
    ul.events li li div.description {
        margin: 5px 0 0 63px;
        font-size: 86%;
        color: #555;
    ul.events li li div.description p {
        margin: 0 0 1em 0;
    ul.events li span.day {
        font-weight: bold;
        font-size: 250%;
        float: left;
        color: #0a86d2;
        text-align: right;
        width: 50px;
        margin: 0 0 0 1px;
        padding: 0 15px 0 0;
        line-height: 1;
        border-top: 1px solid #fff;
    ul.events li:first-child span.day {
        border-top-color: #bed6ec;
    ul.event-listing-nav {
        width: 200px;
        list-style: none;
        margin: 10px;
        padding: 0;
        clear: both;
    ul.event-listing-nav li {
        width: 33.3%;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        display: block;
        float: left;
        text-align: center;
    ul.event-listing-nav li:first-child {
        text-align: left;
    ul.event-listing-nav li:last-child {
        text-align: right;
    ul.event-listing-nav:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    ul.custom-listing {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 200px;
    ul.custom-listing li {
        padding: 0 0 1em 0;
        margin: 0 0 1em 0;
        border-bottom: 1px solid #ccc;
    table.calendar td div.event {
        position: absolute;
        display: none; /* keeps the popup hidden if no JS available */
    table.calendar td {
        position: relative;
    </style>
    <script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>
        $(function () {
            $('table.calendar td').each(function () {
                // options
                var distance = 10;
                var time = 150;
                var hideDelay = 100;
                var hideDelayTimer = null;
                // tracker
                var beingShown = false;
                var shown = false;
                var trigger = $(this);
                var popup = $('div.event', this).css('opacity', 0);
                // set the mouseover and mouseout on both element
                $([trigger.get(0), popup.get(0)]).mouseover(function () {
                    // stops the hide event if we move from the trigger to the popup element
                    if (hideDelayTimer) clearTimeout(hideDelayTimer);
                    // don't trigger the animation again if we're being shown, or already visible
                    if (beingShown || shown) {
                        return;
                    } else {
                        beingShown = true;
                        // reset position of popup box
                        popup.css({
                            'z-index': 1000,
                            top: 30,
                            left: 10,
                            display: 'block' // brings the popup back in to view
                            // (we're using chaining on the popup) now animate it's opacity and position
                                .animate({
                                    top: '-=' + distance + 'px',
                                    opacity: 1
                                }, time, 'swing', function() {
                                    // once the animation is complete, set the tracker variables
                                    beingShown = false;
                                    shown = true;
                }).mouseout(function () {
                            // reset the timer if we get fired again - avoids double animations
                            if (hideDelayTimer) clearTimeout(hideDelayTimer);
                            // store the timer so that it can be cleared in the mouseover if required
                            hideDelayTimer = setTimeout(function () {
                                hideDelayTimer = null;
                                popup.animate({
                                    top: '-=' + distance + 'px',
                                    opacity: 0
                                }, time, 'swing', function () {
                                    // once the animate is complete, set the tracker variables
                                    shown = false;
                                    // hide the popup entirely after the effect (opacity alone doesn't do the job)
                                    popup.css('display', 'none');
                            }, hideDelay);
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-35744229-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div id="fb-root"></div>
    <script>(function(d, s, id) { type="text/javascript"
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div id="hours">
    <strong>Open:<br />Tuesday-Sunday (二~日)<br /> 11:30am - 2:00am (3:00am 五 &amp; 六)</strong>
    </div>
    <div id="title_bar">
    <img src="title_bar.jpg" alt=""/>
    </div>
    <div class='rollover' id="title">
    <a href="index.php">
    </a>
    </div>
    <div class='rollover' id='about'>
    <a href="about.php">
    </a>
    </div>
    <div class='rollover' id='gallery'>
    <a href="gallery.php">
    </a>
    </div>
    <div class='rollover' id='venue'>
    <a href="venue.php">
    </a>
    </div>
    <div class='rollover' id='shop'>
    <a href="shop.php">
    </a>
    </div>
    <div class='rollover' id='restaurant'>
    <a href="restaurant.php">
    </a>
    </div>
    <div class='rollover' id='bar'>
    <a href="bar.php">
    </a>
    </div>
    <div id="pop_up_background">
    <img src="pop_up_2.png" alt=""/>
    </div>
    <div class="scroll">
    <?php
    $opts = array(
    'filter'=>'eventDateTime',
    'match'=>'eqbetween',
    'category'=>array('gigs', 'Events'),
    'sort'=>eventDateTime,
    'sort-order'=> ASC,
    'display'=>date,
    'value'=>$_GET['id'],
    'template'=>'events/listing/event-day.html',
    perch_events_custom($opts);
    ?>
    </div>
    <div id="contact_bar">
    <img src="contact_bar.png" alt=""/>
    </div>
    <div class='rollover' id='events'>
    <a class='events-link' href="events.php">
    </a>
        <div class='events-calendar'>
            <?php
                 * setting options for the calendar. Change the categories listed to one or more which exist in your admin.
                $opts = array(
                    'template'=>'calendar.html',
                    'past-events'=>true,
                    'category'=>array('gigs', 'Events')
                perch_events_calendar($opts);
            ?>
        </div>
    </div>
    <div class='rollover' id='contact'>
    <a href="contact.php">
    </a>
    </div>
    <div id="copyright_background">
    <img src="copyright_bgrd.png" alt=""/>
    </div>
    <div id= "webdesign">
    Webdesign
    </div>
    <div id= "copyright">
    &#169; TAV Cafe
    </div>
    <div class='rollover' id='website_link'>
    <a href="http://www.renflannery.com/" target="_blank">Visit W3Schools</a>
    </div>
    <div class='rollover' id='fb_icon'>
    <a href="https://www.facebook.com/TAVCafe" target="_blank">Visit W3Schools</a>
    </div>
    <div class="fb-like" id="fb-root" data-href="http://www.tavcafe.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="verdana"></div>
    </body>
    </html>

  • Is there a way to reference the property node value of a control in another VI?

    Let's say that I have a situation like the one shown in the attached image.
    I have an interlock system which is basically a bunch of booleans
    If for example the "RF Enable" button in the "interlock VI" is true, then I should be able to flick the ON switch in my other VI (in the back), but if the value is FALSE, then it shouldn't allow it.
    In other words, how do I check the value of a control across 2 separate VIs (running simultaneously)?
    Thanks!!
    Attachments:
    sample.jpg ‏295 KB

    Is one VI launched by the other, or are they launched independently? If it's the former then you just need to pass the control reference to the subVI via terminal node. If it's the latter there are a variety of ways to handle this:
    Use a global variable - somewhat "sloppy" as it requires a global variable, and can lead to race conditions. In the "Interlock" VI you just set the value of the global variable when you change the value of the Boolean. In the other you're just reading it.
    Action Engine - Ben wrote a Community Nugget a while back. Similar concept to a global variable.
    Queue - The "Interlock" VI simply pops an element onto the queue with the value. The other VI just monitors the queue for a new element. It just needs to have something like a shift register to keep track of the last state.
    Use the VI Server to access the controls of the "Interlock" VI. You can do this by accessing the "Interlock" VI's pane and get the control references. With the control reference you just need to get the value with a property node.
    ... (I'll let others chime in)

Maybe you are looking for

  • Multiple Failures of iTunes

    Hi. Don't know if anyone has seen anything like this - it's a nightmare. If so, I'm grateful for any help. Hmm, let's see - where do I start... 1. I reinstalled my Vista PC from scratch. 2. After installing iTunes it insisted collecting music from my

  • Ipod now showing in Itunes or Windows.

    My Ipod is recognized as a usb device when I connect but not in Itunes or in My computer. I've tried the 5 R's(a joke). After a couple of hours I managed to assign my Ipod a drive letter by going to Computer Management and then disk management. Isnt

  • Use Crystal to generate a list/count of Crystal Reports by folder on BOE

    We use BOE XI R2 SP5 and have rolled out a good number of Crystal Reports in various folders on the server organized by client.  We do not have the SDK. Now my manager would like us to be able to write a new Crystal Report that will give us a listing

  • IMPORTANT: JARs and Sharing References: New Reference

    Hi Portal Developers, A new reference is available that lists ALL public portal APIs, and provides the following information: Class/interface name Package name JAR file for compilation Location of JAR file Required sharing reference for portalapp.xml

  • What's most similar to SQL's virtual columns in XML DB?

    There is a concept in SQL that allows the creation of virtual columns (they display the results of an arithmetical expression, the results aren't stored but computed from current data). I would like to ask what is most similar to this concept in the