DOM Scripting - accessing XML CDATA values

HI Folks,
Not sure if this is the write forum, but I'm trying to use Javascript to output XML values onto my webpage, see below.
This works fine, but when I try and get he values in a CDATA tag, I get undefined or null.
Can anyone please tell me how to get CDATA content?
<script type="text/javascript"
xmlDoc=loadXMLDoc("news.xml");
x=xmlDoc.getElementsByTagName('title');
for (i=0;i<x.length;i++)
document.write(x[i].childNodes[0].data);
document.write("<br />");
</script>
XML
<items>
  <item>
    <title>
      <![CDATA[text goes in here]]>
    </title>
</item>
</items>

I think you will have more success on a JavaScript forum.
Mack

Similar Messages

  • Accessing XML node value

    Hi,
    Is there any method to get node value other than getTextContent() in org.w3c.dom.Node?
    Here is my XML
    <data>value<data>
    Hoe can i get "value" using java?
    Thanks
    Shagil

    The text "value" is a child node of element node "data". So, by following the tree structure of DOM, you'll get this text by asking for the node value of the (first) child node of the element.
    Node data = ...;
    if (data.hasChildNodes()) {
      String text = data.getFirstChild().getNodeValue();
      // use text
    }

  • How can I get scripting access to color values in the indexed Color Table?

    Hey all,
    I'm relatively new to Photoshop scripting, but I've just finished a script that helps my fiance with some very tedious tasks related to textile design.
    The last issue that I'm having is that the image I start with is indexed and has a very specific Color Table pallete ( 2-12 colors max + black and white, so 14 max total, sometimes as few as 2 ). Part of my script, I create a number of color chips and fill them with black currently... What I'd like is to be able to get a count of the colors in the Color Table and put the actual color values as hex into an 1 dimension array, so that I fill those black chips I've made with the actual colors from the Color Table.
    ( I don't know if it makes a difference but I'm converting the image to RGB mode at some point in the script, and back to Indexed Exact ).
    Can anyone please help me do this? Needs to be compatible with CS5 and CS6 ideally.
    Thanks!!

    Cheers for that, your code works but what had thrown me was that the collections appear to be empty - so I hadn't actually tried retrieving one, I just assumed I was looking in the wrong place.
    So if I do this in my Immediate window:
     App.Current.Resources.Count
     0
    Yet when I request it, I get one:
     App.Current.Resources["TitleTextStyle"]
     {Windows.UI.Xaml.Style}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.Style}
         BasedOn: {Windows.UI.Xaml.Style}
         IsSealed: false
         Setters: {Windows.UI.Xaml.SetterBaseCollection}
         TargetType: {Name = "TextBlock" FullName = "Windows.UI.Xaml.Controls.TextBlock"}
    Looking at the resources object itself, I get similar apparently empty collections:
     App.Current.Resources
     {Windows.UI.Xaml.ResourceDictionary}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.ResourceDictionary}
         Count: 0
         IsReadOnly: false
         Keys: Count = 0
         MergedDictionaries: {Windows.UI.Xaml.DependencyObject}
         Source: null
         ThemeDictionaries: {Windows.UI.Xaml.ResourceDictionary}
         Values: Count = 0

  • Access custom variable value in web.xml context-param?

    My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
    I was thinking about placing this variable in the web.xml <context-param> section as:
    <context-param>
    <param-name>servername</param-name>
    <param-value>testserver</param-value>
    </context-param>
    I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
    Thanks and Happy New Year!
    Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...

    I found an example from SRDemo that provides what I was looking for:
    String serverhostaddress =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");

  • Setting the XML tag value in Java script

    Hi,
       I am trying to set a XML tag value in the initialize event of a text field.. The code works fine in FormCalc but I needed it to work in java script.
         FormCalc:
         $record.prospectApplication.typeName = "namedInsured";
         Java Script:
         xfa.record.prospectApplication.typeName = "namedInsured";
         The above JavaScript does not work. Can any one help on this?
    Thanks
    Srini

    Hi Srini,
    In JavaScript you don't get any default properties so you need to say;
    xfa.record.prospectApplication.typeName.value = "namedInsured";
    That is assign the value to the "value" property not the dataValue object.

  • Using Views to access XML Content

    I was wondering if anyone can help me in these questions.
    I created a view to access XML Content in the database for reports. My first question is I have 18 properties in the xml document but when I created the view I only retrieve one property information. What dO I need to change in my XPath query to get all the properties see script below
    CREATE OR REPLACE VIEW AHA_PMCO_BUILDINGS_VIEW
    (BUILDINGID,NUMBEROFFLOORS, CONSTRUCTIONDATE,NAME, BUILDINGTYPE, DEMODISPODATE,MODSTARTDATE,MODENDDATE, ISANNEX) as
    select extractValue(value(p),'/Building/@Id'),
         extractValue(value(p),'/Building/@NumberOfFloors'),
         extractValue(value(p),'/Building/@ConstructionDate'),
         extractValue(value(p),'/Building/@Name'),
         extractValue(value(p),'/Building/@BuildingType'),
         extractValue(value(p),'/Building/@DemolitionDispositionDate'),
         extractValue(value(p),'/Building/@ModernizationStartDate'),
         extractValue(value(p),'/Building/@ModernizationEndDate'),
         extractValue(value(p),'/Building/@IsAnnex')
    from "Pmco438_TAB" X, TABLE(xmlsequence (extract(value(X), '/Pmco/Properties[1]/Property[1]/Buildings/Building')) ) p;
    How do I change my script to retrieve multiple properties instead of just one property
    Thanks
    Dibor

    Hi Paul
    I have access to all the documents (JavaScript via Mozilla, Adobe JavaScript API, XFA API etc etc) but none are specific enough to cater for this issue.  I will work this out before too long but it would be very useful if someone who had done this already could shortcut my journey!
    Thanks
    Roxy

  • Accessing XML files through java

    Can any one explain me the easiest way of accessing XML files from Java.

    Hi,
    If you want to only access the XML file, use the SAX parser It will be very easy to handle and identify the element and value.
    else if u want to change the XML value also, then better go with DOM, Which has very good flexiblity.
    use according to the need, let me know if any help is required......
    With Cheers
    PrasannA

  • Accessing XML Data File

    Ok I need a quick lesson on accessing various tags in a xml
    file and displaying them. I have a rather messy xml file that
    dynamically created and the structure cannot be changed due to an
    Excel application that is already accessing it.
    Here's the xml:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Files>
    <active>
    <record>
    <sendto>Joe D</sendto>
    <head>
    <level1>
    <submited>true</submited>
    <name>MIKE B</name>
    <str>1</str>
    <date>7/18/2006</date>
    <notes>get this loaded!!!!!!!!!!!!!!!!!</notes>
    </level1>
    <level2>
    <submited>false</submited>
    <name></name>
    <str></str>
    <date></date>
    <notes></notes>
    </level2>
    <level3>
    <submited>false</submited>
    <name></name>
    <str></str>
    <date></date>
    <notes></notes>
    </level3>
    <level4>
    <submited>false</submited>
    <name></name>
    <str></str>
    <date></date>
    <notes></notes>
    </level4>
    </head>
    <itemcd>1234567</itemcd>
    <desc>TEST</desc>
    <retail>5</retail>
    <aisle>AA01</aisle>
    <replcst>2</replcst>
    <pack>1</pack>
    <upc>123456789999</upc>
    <vendor>EMRYW</vendor>
    <venditemcd>1234567</venditemcd>
    <grp>2</grp>
    <sec></sec>
    <insaft></insaft>
    <sellum default="each"></sellum>
    <fracu default="i"></fracu>
    <decp default="0"></decp>
    <allowfr default=" "></allowfr>
    <prium default="each"></prium>
    <selluf default="1.00000"></selluf>
    <priscal default="1"></priscal>
    <stockum default="each"></stockum>
    <itemstyp default="0"></itemstyp>
    <traqoh default="y"></traqoh>
    <rcvum default="each"></rcvum>
    <rcvuf default="1.00000"></rcvuf>
    <rcvscal default="1"></rcvscal>
    <shipum default="each"></shipum>
    <shipuf default="1.00000"></shipuf>
    <stockingstr>
    <str1>true</str1>
    <str2>false</str2>
    <str3>false</str3>
    </stockingstr>
    <pricematlev default="0"></pricematlev>
    <qbreaktable default="0"></qbreaktable>
    <taxflg default="y"></taxflg>
    <gstcd default="0"></gstcd>
    <tradedisf default="n"></tradedisf>
    <promptpayf default="y"></promptpayf>
    <commflg default="y"></commflg>
    <additdescf default="n"></additdescf>
    <talleyitemf default="n"></talleyitemf>
    <nonstkitem default="n"></nonstkitem>
    <assemblyitemf default="n"></assemblyitemf>
    <assemblyitemtype
    default="0"></assemblyitemtype>
    <assemblyledtm default="0"></assemblyledtm>
    <assemblywrkuts default="n/a"></assemblywrkuts>
    <billmattyp default="0"></billmattyp>
    <serialnumf default="n"></serialnumf>
    <bascomitemf default="n"></bascomitemf>
    <bascomitemcd></bascomitemcd>
    <lotctrlf default="n"></lotctrlf>
    <lotctrlnum default="0"></lotctrlnum>
    <relitemmsgnum default="0"></relitemmsgnum>
    <hazmatnum default="0"></hazmatnum>
    <strydf default="s"></strydf>
    <keyitemf default="n"></keyitemf>
    <ctrlitemf default="n"></ctrlitemf>
    <talleyindiv></talleyindiv>
    <textfld2></textfld2>
    <numfld1 default="0"></numfld1>
    <numfld2 default="0"></numfld2>
    <glacctcd default=""></glacctcd>
    <stkitemrptf default="y"></stkitemrptf>
    <lifopolnum default="0"></lifopolnum>
    <lifosampf default="n"></lifosampf>
    <pricetabname default=""></pricetabname>
    <invcstperc default="0.00">
    <str1></str1>
    <str2></str2>
    <str3></str3>
    </invcstperc>
    <invcritfac
    default="0.00"><str1></str1><str2></str2><str3></str3></invcritfac>
    <invglnum
    default="0"><str1></str1><str2></str2><str3></str3></invglnum>
    <invlngrngfac
    default="0.00"><str1></str1><str2></str2><str3></str3></invlngrngfac>
    <invminq default="1">
    <str1></str1>
    <str2></str2>
    <str3></str3>
    </invminq>
    <invmaxq default="2">
    <str1></str1>
    <str2></str2>
    <str3></str3>
    </invmaxq>
    <minmaxtab default="DO_NOT_ORDER">
    <str1></str1>
    <str2></str2>
    <str3></str3>
    </minmaxtab>
    <invmingpperc default="49">
    <str1></str1>
    <str2></str2>
    <str3></str3>
    </invmingpperc>
    <invordq
    default="0"><str1></str1><str2></str2><str3></str3></invordq>
    <price1><str1></str1><str2></str2><str3></str3></price1>
    <price2><str1></str1><str2></str2><str3></str3></price2>
    <price3><str1></str1><str2></str2><str3></str3></price3>
    <price4><str1></str1><str2></str2><str3></str3></price4>
    <price5><str1></str1><str2></str2><str3></str3></price5>
    <price6><str1></str1><str2></str2><str3></str3></price6>
    <price7><str1></str1><str2></str2><str3></str3></price7>
    <price8><str1></str1><str2></str2><str3></str3></price8>
    <aisle default="XXXXX">
    <str1>AA01</str1>
    <str2></str2>
    <str3></str3>
    </aisle>
    <bin><str1></str1><str2></str2><str3></str3></bin>
    <shelf><str1></str1><str2></str2><str3></str3></shelf>
    <invstdcst><str1></str1><str2></str2><str3></str3></invstdcst>
    <manminmax><str1></str1><str2></str2><str3></str3></manminmax>
    <text2><str1></str1><str2></str2><str3></str3></text2>
    <numer1><str1></str1><str2></str2><str3></str3></numer1>
    <numer2><str1></str1><str2></str2><str3></str3></numer2>
    <keyword default=""></keyword>
    <note default="">get this
    loaded!!!!!!!!!!!!!!!!!</note>
    </record>
    </active>
    </Files>
    Here's the code I have so far:
    <?xml version="1.0" encoding="utf-8"?>
    <Application xmlns="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:local="*">
    <XML id="feedData" source="index.xml"/>
    <DataGrid dataProvider="{feedData..active.record}"
    x="324" y="138" width="500">
    <columns>
    <DataGridColumn id="SubmittedBy" headerText="Submitted
    By" dataField=""/>
    <DataGridColumn headerText="Item" dataField="itemcd"/>
    <DataGridColumn headerText="Description"
    dataField="desc"/>
    </columns>
    </DataGrid>
    </Application>
    What I want to know is how to access and put into the "
    Submitted By" column
    <Files><active><record><head><level1><name>
    Any help would be great since I'm stuck.

    After a little digging and a couple cups of coffee, I managed
    to pull some data extracting from xml into a datagrid. I can access
    attributes, node values, etc...
    One thing I did notice, is that you have to refresh the
    application if you have dynamic data constantly being updated. So
    here is some code to help some of you out:
    First some sample XML (index.xml):
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <records>
    <active name="John" id="1234" location="New York">
    <job>Architect</job>
    <address>111 Salisbury Rd</address>
    </active>
    <inactive name="Chris" id="5432" location="California">
    <job>Web Designer</job>
    <address>888 Orchard Rd</address>
    </inactive>
    </records>
    Code with two tabs one name (
    Active), other named (
    Inactive):
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:local="*" pageTitle="Test App"
    creationComplete="srv.send()">
    <mx:HTTPService id="srv" url="
    http://www.domain.com/index.xml?rand=math.random();"
    resultFormat="e4x" useProxy="false" showBusyCursor="true" />
    <mx:XMLListCollection id="xActive"
    source="{srv.lastResult.active}" />
    <mx:XMLListCollection id="xInActive"
    source="{srv.lastResult.inactive}" />
    <mx:script>
    <[[
    private function RefreshData():void{
    xActive.refresh();
    xInActive.refresh();
    ]]>
    </mx:Script>
    <mx:TabNavigator>
    <mx:Canvas label="Active" width="100%" height="100%"
    id="canvas1" initialize="RefreshData();">
    <mx:DataGrid id="activeData" dataProvider="{xActive}"
    selectedIndex="0" editable="true" enabled="true">
    <mx:columns>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@name" headerText="Name"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@id" headerText="ID"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@location" headerText="Location"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="job" headerText="Job"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="address" headerText="Address"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    <mx:Canvas label="Inactive" width="100%" height="100%"
    id="canvas2" initialize="RefreshData();">
    <mx:DataGrid id="inactiveData" dataProvider="{xInActive}"
    selectedIndex="0" editable="true" enabled="true">
    <mx:columns>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@name" headerText="Name"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@id" headerText="ID"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="@location" headerText="Location"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="job" headerText="Job"/>
    <mx:DataGridColumn textAlign="center" resizable="false"
    dataField="address" headerText="Address"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Application>

  • How to access XML elements by name in Extendscript??

    I'm almost done the script that I've been working on, but something has been nagging me since I started. When I did start, I looked at the JS Tools Guide CS5 that comes with the extendscript ide to check how to access XML elements, children, attributes etc. It says this:
    The XML object represents an XML element node in an XML tree. The topmost XML object for an XML file
    represents the root node. It acts as a list, which contains additional XML objects for each element. These in
    turn contain XML objects for their own member elements, and so on.
    The child elements of an element tree are available as properties of the XML object for the parent. The
    name of the property corresponds to the name of the element. Each property contains an array of XML
    objects, each of which represents one element of the named type.
    So basically it converts the XML into JSON. And you can access the properties like so:
    <book category="COOKING">
         <title lang="en">The Boston Cooking-School Cookbook</title>
         <author>Fannie Merrit Farmer</author>
         <year>1896</year>
         <price>49.99</price>
    </book>
    The Javascript statement bookstoreXML.book; returns the entire list of books.
    The statement bookstoreXML.book[0]; returns the XML object for the first book.
    The statement bookstoreXML.book[0].author; returns all authors of the first book.
    A couple pages down it talks about Retrieving contained elements using children(), elements(), descendants().
    So now I look through the XML Object properties and I see that I can use:
    xmlObj.child (which) which A String, the element name, or a Number, a 0-based index into this node’s child array.
    or
    xmlObj.descendants ([name])
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    or
    xmlObj.elements (name);
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    This is an excerpt of an XML I was working with:
    <ROW xmlns="http://www.filemaker.com/fmpdsoresult"
         MODID="16"
         RECORDID="11128">
       <Sign_Type>251.dr</Sign_Type>
       <fm:Location xmlns:fm="http://www.filemaker.com/fmpdsoresult" xmlns="">5-5024</fm:Location>
       <Line1>Zone
    Floor
    3
    Patient Rooms
    R532 - R436 even
    Patient Rooms
    R522 - R446 even
    Xavier Elevators
    Zone
    Patient Rooms
    R537 - 5757 odd
    Main Elevators
    Zone</Line1>
    </ROW>
    Extendscript will not give me an anything when I try to access elements by name. Instead I have to access by index, which works, but I'd rather search for names!
    Actually the console log returns: <![CDATA[]]>
    What am I doing wrong!?

    First, those E4X XML objects are definitely no JSON (plain data) - they have a multitude of methods, even for tasks that would easily be implemented as property (e.g. the length() function), and they also bind xml element and attribute names onto the objects, allowing to target a multitude of XML nodes with a single statement. Or did you mean your script with that "it"?
    Anyway, as you found out the ExtendScript XML object handles namespaces mostly by hiding them from you.
    You could play around with global namespace settings, see the JavaScript tools guide.
    You could also explicitly specify a namespace. This works for me:
    $.writeln(myXML["fm:Location"]);
    For simple use I had most success with a brute force approach that just strips the namespaces.
    function removeAllNamespace(xml)
              var ns =new Namespace();
              var d=xml.descendants();
              for (var i=0;i<d.length();i++)
        d[i].setNamespace(ns);

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Problem: Storing binary data in Xml Cdata section

    The objective : Tranport image using xml
    1. I convert the image to input stream.
    2. store it in an array.
    3. encode the string using Base64 library and get a string
    4.then i store it in xml CDATA section.
    the code snippet is
    public class ImgToXml01 {
         public static void main(String[] args) throws IOException
              File inputFile = new File("C:\\Arup\\ImgXml\\read\\Sample.jpg");
              FileInputStream in = new FileInputStream(inputFile);
              String str="";
              int c;
              while ((c = in.read()) != -1) {
              str+= ""+c;
              String val = util.Base64.encode(str);
              System.out.println(""+val);
              OutputStream fout = new FileOutputStream("img.xml");
              OutputStreamWriter out = new OutputStreamWriter(fout);
              out.write("<?xml version = \"1.0\" encoding = \"ISO-8859-1\"?>\r\n");
              out.write("<Image>\r\n");
              out.write("[CDATA["+val+"]]");
              //out.write("]]>");
              out.write("</image>\r\n");
              out.close();
    When i retrieve it i write the code:
    import org.xmldb.api.base.*;
    import org.xmldb.api.modules.*;
    import org.xmldb.api.*;
    import org.w3c.dom.*;
    import java.io.*;
    import org.xml.sax.SAXException;
    import oracle.xml.parser.v2.*;
    public class CdataToImage01 {
         public static void main(String[] args) //throws IOException
         try{
         String uri="c:\\Arup\\ImgXml\\img1.xml";
         String data="";      
         File file = new File(uri);
         FileInputStream fis = new FileInputStream(file);
         BufferedInputStream in = new BufferedInputStream(fis);      
         DOMParser parser = new DOMParser();
         parser.parse(in);      
         Document doc = parser.getDocument();
         Node r = doc.getElementsByTagName("Image").item(0);          
         NodeList kids = r.getChildNodes();
         if ( kids != null )     {
              for ( int i = 0; i < kids.getLength(); i++ ) {
                   if ( (kids.item(i).getNodeType() == Node.TEXT_NODE) ||
                             (kids.item(i).getNodeType() == Node.CDATA_SECTION_NODE)) {
                             data=kids.item(i).getNodeValue();
              String data1 = util.Base64.decode(data);
              File outputFile = new File("Sample.jpg");
              FileOutputStream out = new FileOutputStream(outputFile);      
              byte[] buff = data1.getBytes();
              InputStream inn = new ByteArrayInputStream(buff);
              int c;
              System.out.println(buff.length);
              while ((c = inn.read()) != -1) {
              out.write(c);
              inn.close();
              out.close();
         catch (SAXException e) {
              System.err.println(e);
              e.printStackTrace();
         catch (Exception ex){
              System.err.println("Exception occured " + ex.getMessage());
              ex.printStackTrace();
    But i am not getting the appropriate result .I get a corrupted image.
    FROM
    ARUP GHOSH

    String str="";
    int c;
    while ((c = in.read()) != -1) {
    str+= ""+c;
    }Your problem is here.
    Let's suppose you just have a trivial 3-byte file containing the bytes 27, 55, and 126. Your program will convert that into the string "2755126". Then you base-64 encode it, etc etc, then you base-64 decode it and (hopefully) produce the same string "2755126". Converting this string to bytes and writing it to a file produces a 7-byte file containing the bytes 50, 55, 53, 53, 49, 50, and 54. Not the same at all. You could prove this to yourself by putting in some debugging statements.
    I don't know how to suggest a fix because it looks to me as if your base-64 utility takes a String as its input. It should take an array of bytes, or an InputStream.
    PC&#178;

  • ERROR Could not create DOM from control.xml

    Hi All,
    I am installaing 4.7EE on Sun Solaris 5.9 SPARC with Oracle and JDK version is 1.4.2_08. When i am running sapinst, sapinst GUI opens and after when i am selecting the Central installtion and i click on Next it giving error message that
    WARNING Could not read file control.xml. Please make sure that you called SAPinst with the correct control file (the control file is given to SAPinst as its first command line parameter or as value of the command line property SAPINST_CONTROL_URL)
    ERROR Could not create DOM from control.xml
    How to solve this error. I have searched in SDN but i am unable to get the solution.
    Mahesh C

    Hi Kiran,
    I have given all permissions to the control file. But these control files are in different places /SAPINST/UNIX/SUNOS_64/PATCOL640/WEBAS630 and ORA, DB2, DB6, IND, INF, ADA in these folders i can c the Control.xml files. But i have given all read write and execute permissions but still its getting the same error. I have downloaded the same IM for 3 times and tried.. But the result is the same.
    Is there any other way of work around for this...
    Thanks
    Mahesh C

  • Access XML attributes

    How can I access XML attributes in LiveCycle using JavaScript and XPath.
    I've tried using:
    mynodesFormData.item(i).Name.attributes.getNamedItem("someattr");
    Thanks,
    Issa

    I figured it out.
    I was simply able to use:
    mynodesCRFormData.item(i).Name.englishName.value
    mynodesFormData.item(i).Name.attribName.value;
    where attribName is the name of the attribute and Name the name of the element.
    Thanks,
    Issa

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

Maybe you are looking for

  • New Shuffle, Old Computer

    I bought a new shuffle today after my old one wore out after three years. I have ITunes downloaded onto my computer so can I just plug in my new Shuffle and fill it with my old library or how do I get to my library using this new Shuffle? Thanks

  • Error in OAF Page Running

    Hi All,      I created one sample and starting OAF page which displays only the brand logo.      But when I am trying to Run the page it is creating an error as      An error was encountered when running      "JDeveloper\jedevhome\jdev\myclasses\JRAD

  • BEx Analyzer Report error - microsoft office excel is waiting for another

    Hi, I am running a query from BEx Analyzer, it is throwing the error as " microsoft office excel is waiting for another application to complete an ole action " Here in variable screen, I am trying to give input for the variables, then it is throwing

  • How to make Smaller Pdf Files?

    Hello. Previously I had asked a question on how to fit multiple pages into ONE pdf file. My questions was answered by advising me to download a program from Monkeybread Software, which I did, and which worked fine. I now have a new problem. I have ab

  • Can't preview webpage in firefox

    Hello, i've been using firefox to preview my webpages in dreamweaver for some time now and for some reason it won't open the page in firefox. If i use explorer or safari it works fine. Any suggestions as to why it might not be loading? thanks