Regd: getting xpath variables by reading xsd of  webservice

Hi All,
I have a requirement like reading xmlschema of wsdl file and getting the xpaths out of it. How to get the xpaths by reading wsdl file. Please help me.
Thanks in advance.
Regards,
chandra sekhar

what are the "xpaths" that you are trying to get? maybe an example would make it more clear.
and wsdl/schemas are normal xml, you can read them with any standard xml parser.

Similar Messages

  • Can an embedded Flash SWF save and get a variable with Reader?

    My SWF content contains text in different languages.  The user selects a language and it appears.
    Is there a way to store this setting locally so that the correct language appears when the pdf is reopened?
    I only need a two-letter string, like "EN," "FR," "ZH," etc. and the SWF does the rest.
    I've tried calling multimedia_saveSettingsString from the SWF Actionscript, and I've tried setting an Acrobat global variable and setPersistent using Actionscript and local .js files. It works in Acrobat, but not Reader on a users system.
    I also tried using a separate pdf form to store a global variable, and then attempted to get that variable using the SWF Actionscript.
    Could the be an issue with security settings or Acrobat properties?
    I'm not a virtuoso at this, so script examples would help.
    (Windows 7; Actionscript 3; Acrobat 9 and XI are available; Adobe Reader 9 is in the installed base, but I may be able to switch to a higher version of Reader)
    I asked a similar question in the Acrobat Javascript community, but got no responses. I reworded it here with additional detail
    Thanks.

    Here's the section from my example that's linked to the Save and Load buttons. evalText, infoText and replyText are the three TextArea fields.
    Note that it's important to send a string, but return an object and cast it back into a string. EI.call() has no clue what's being sent back from JavaScript.
    // button handlers
    butSave.addEventListener(MouseEvent.CLICK, doSave);
    function doSave(e:MouseEvent):void {
        var rtn:Object = ExternalInterface.call("multimedia_saveSettingsString",evalText.text);
        if (rtn == null) {
            infoText.appendText("Save: REPLY = null");
        } else if (rtn.toString() == "") {
            infoText.appendText("Save: REPLY = empty string");
        } else replyText.appendText("Save: reply = " + rtn.toString());
    butLoad.addEventListener(MouseEvent.CLICK, doLoad);
    function doLoad(e:MouseEvent):void {
        var rtn:Object = ExternalInterface.call("multimedia_loadSettingsString");
        if (rtn == null) {
            infoText.appendText("Load: REPLY = null");
        } else if (rtn.toString() == "") {
            aT(infoText,"Load: REPLY = empty string");
        } else replyText.appendText("Load: reply = " + rtn.toString());

  • Cannot Get Text Variable to Read Metadata

    Hi,
    I am having an issue loading XMP Metadata into a text variable. I have tried the following procedure on two computers and no result (Windows 7, InDesign 5.0 and 5.5)
    Here is the basic procedure:
    1. Create a new InDesign Document.
    2. Navigate to FILE > FILE INFO
    3. When the XMP data appears, place the word "Test", “Test1”, “Test 2”, and “Test 3” in the Document Title, Author, Author Title, and Description fields and push OK. See Screenshot.
    4. Make a text box.
    5. Place the text insert cursor in the text box then go to the menu and open TYPE> TEXT VARIABLES > DEFINE.
    6. Once the dialog box opens, select NEW...
    7. Name the New Text Variable "Author" and select "METADATA CAPTION" for TYPE: and "AUTHOR" for METADATA: then push OK.
    8. Press the INSERT button to place the new "Author" text variable into the text box.
    Every time I get a <no intersecting link> indication. Can someone help me figure out what I’m doing wrong here?

    Thanks Steve, you are right on. Was hoping that the Metadata information could be absorbed into the file somehow like you can do in MS Word with the document properties for Title, Date, Revision ect. I now will change my plans and I will put the document information on the Title Page and cross-link it to my headers and footers.
    Thanks for the help.

  • Empty variable/expression result. xpath variable/expression expression

    Hi,
    I am new to BPEL, I have created one Process and trying to Call Procedure with the help of Invoke Process Activity. Database Procedure having one input parameter and one output parameter. When i am trying to execute deployed webservice it gives me error like
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 94218a8977e86d41:78a12598:12e474197b6:-7f6f. Please check the process instance for detail.</faultstring>
    </Fault>
    Server Trace for this: From Audit Instance
    receiveInput
    [2011/02/21 17:07:04] Received "inputVariable" call from partner "client"More...
    - <inputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    - <ns1:DBAdaptorParam2ProcessRequest xmlns:ns1="http://xmlns.oracle.com/DBAdaptorParam2">
    <ns1:input>wwww</ns1:input></ns1:DBAdaptorParam2ProcessRequest></part></inputVariable>
    Assign_in
    [2011/02/21 17:07:04] Updated variable "Invoke_DBService_DBAdaptor2_Service_InputVariable" More...
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/">
    <PARAM1>wwww</PARAM1></InputParameters></part>
    </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    Invoke_DBService
    [2011/02/21 17:07:04] Invoked 2-way operation "DBAdaptor2_Service" on partner "DBAdaptor2_Service".less
    - <messages>
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/"><PARAM1>wwww</PARAM1>
    </InputParameters></part>
    </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    - <db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/"><PARAM2>wwww Extra added</PARAM2></db:OutputParameters></part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    </Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    </messages>
    Assign_out (faulted)
    [2011/02/21 17:07:04] Error in evaluate <from> expression at line "87". The result is empty for the XPath expression : "/ns2:OutputParameters/ns2:PARAM2".less
    oracle.xml.parser.v2.XMLElement@7cc53
    [2011/02/21 17:07:04] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns2:OutputParameters/ns2:PARAM2" is empty at line 87, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns2:OutputParameters/ns2:PARAM2" is not empty.
    </summary></part></selectionFailure>
    I am not able to fix this issue please help me out.
    Thanks in Advance
    Thanks,Abhijit

    Hi,
    Thanks for reply.
    For the development guideline i had followed "http://www.erpschools.com/apps/oracle-applications/articles/Fusion-Middleware/SOA/BPEL/BPEL-Database-Adapter-Part-2/index.aspx" this document. Instead of using "select" query, here I am using database procedure to get output.
    For this I am giving input as "Abhijit" and database procedure "GETCONCATESTRING" is returning value as "Abhijit Extra added",
    but finally i am getting this error:
    Invoke_DBService
    [2011/02/22 12:55:08]
    Invoked 2-way operation "DBAdaptor2_Service" on partner "DBAdaptor2_Service".
    - <messages>
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/">
    <PARAM1> Abhijit </PARAM1> </InputParameters> </part> </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    - <db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/ *GETCONCATESTRING* /">
    <PARAM2> Abhijit     Extra added </PARAM2></db:OutputParameters></part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    </Invoke_DBService_DBAdaptor2_Service_OutputVariable></messages>
    Please Guide me to use Receive Activity for output.
    Edited by: 815926 on Feb 21, 2011 11:41 PM
    Edited by: 815926 on Feb 21, 2011 11:42 PM

  • How can I get the variable with the value from Thread Run method?

    We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
    How can I get the variable with the value?
    This is sample code:
    public class SampleSynchronisation
         public static void main(String df[])
    sampleThread sathr= new sampleThread();
    sathr.start();
    System.out.println("This is the value from the run method "+sathr.x);
    // I should get Inside the run method::: But I get only Inside
    class sampleThread extends Thread
         public String x="Inside";
         public void run()
              x+="the run method";
    NB: if i write the variable in to a file I am able to read it from external method. This I dont want to do

    We want to access a variable from the run method of a
    Thread externally in a class or in a method. I presume you mean a member variable of the thread class and not a local variable inside the run() method.
    Even
    though I make the variable as public /public static, I
    could get the value till the end of the run method
    only. After that scope of the variable gets lost
    resulting to null value in the called method/class..
    I find it easier to implement the Runnable interface rather than extending a thread. This allows your class to extend another class (ie if you extend thread you can't extend something else, but if you implement Runnable you have the ability to inherit from something). Here's how I would write it:
    public class SampleSynchronisation
      public static void main(String[] args)
        SampleSynchronisation app = new SampleSynchronisation();
      public SampleSynchronisation()
        MyRunnable runner = new MyRunnable();
        new Thread(runner).start();
        // yield this thread so other thread gets a chance to start
        Thread.yield();
        System.out.println("runner's X = " + runner.getX());
      class MyRunnable implements Runnable
        String X = null;
        // this method called from the controlling thread
        public synchronized String getX()
          return X;
        public void run()
          System.out.println("Inside MyRunnable");
          X = "MyRunnable's data";
      } // end class MyRunnable
    } // end class SampleSynchronisation>
    public class SampleSynchronisation
    public static void main(String df[])
    sampleThread sathr= new sampleThread();
    sathr.start();
    System.out.println("This is the value from the run
    method "+sathr.x);
    // I should get Inside the run method::: But I get
    only Inside
    class sampleThread extends Thread
    public String x="Inside";
    public void run()
    x+="the run method";
    NB: if i write the variable in to a file I am able to
    read it from external method. This I dont want to do

  • How can I get the variable with the value from Thread's run method

    We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
    How can I get the variable with the value?
    This is sample code:
    public class SampleSynchronisation
         public static void main(String df[])
    sampleThread sathr= new sampleThread();
    sathr.start();
    System.out.println("This is the value from the run method "+sathr.x);
    /* I should get:
    Inside the run method
    But I get only:
    Inside*/
    class sampleThread extends Thread
         public String x="Inside";
         public void run()
              x+="the run method";
    NB: if i write the variable in to a file I am able to read it from external method. This I dont want to do

    Your main thread continues to run after the sathr thread is completed, consequently the output is done before the sathr thread has modified the string. You need to make the main thread pause, this will allow sathr time to run to the point where it will modify the string and then you can print it out. Another way would be to lock the object using a synchronized block to stop the main thread accessing the string until the sathr has finished with it.

  • Is it possible to get a variable if I only know the variable by it'

    Is it possible to get a variable if I only know the variable by it's string name?
    In my case I would like to call Resources.GetStringToDisplay("TEXT_0") and get the string "bla bla 0"
    public class Resources {
    public string GetStringToDisplay(String s)
    {          //how can I to return the value of one variable
    return ............;
    public static String TEXT_0="bla bla 0";
    public static String TEXT_1="bla bla 1";
    public static String TEXT_2="bla bla 2";
    public static String TEXT_3="bla bla 3";
    Thanks

    NO you can not get Variable value by camparing string value in J2ME (because J2ME is not supporting reflection package). But you can do one thing to get same functionality.
    public static String TEXT_0="TEXT_0@bla bla 0";
    public static String TEXT_1="TEXT_1@bla bla 1";
    public static String TEXT_2="TEXT_2@bla bla 2";
    public static String TEXT_3="TEXT_3@bla bla 3";
    public string GetStringToDisplay(String s)
    if(TEXT_0.startsWith(s) )
    return TEXT_0.substring (TEXT_0.indexOf('@')+1, TEXT_0.length());
    else if(TEXT_1.startsWith(s) )
    return TEXT_1.substring (TEXT_1.indexOf('@')+1, TEXT_1.length());

  • How do I get a variable, or object from ABAP STACK.

    Hey Gurus,
    How do I get a variable, or object from ABAP STACK.
    Example: I start my FM. I can see in the ABAP STACK the variable I need. I can see the object; I could use to get my variable. I need to use it in my FM; however I need to reference it in the run time. How do I do that?
    Is there a method I can use for reading ABAP STACK?
    Do I just use command: get reference of u2026?
    Does anyone have an example code?
    Basis version 7
    Thanks in advance
    Martin

    Ah, you mean you want to access a variable from another program in the call stack, yes?  You can do this using field symbols, but please don't try to change a value while doing this, it could really screw things up. 
    this example, is using two programs, where the second is accessing variables of the first program.  Basically just notice that we are using the program name and the variable name when assigning the field symbol.
    report zrich_0006 .
    tables: mara.
    parameters: p_matnr type mara-matnr..
    data: matnr type mara-matnr.
    data: imarc type table of marc with header line.
    matnr = p_matnr.
    select * from marc into table imarc up to 10 rows
                   where matnr = p_matnr.
    perform in in program zrich_0007.
    report zrich_0007 .
    *       FORM in                                                       *
    form in.
      data: field(50).
      data: xmarc type marc.
      field-symbols: <matnr>.
      field-symbols: <imarc> type marc_upl_tt.
    * Assign an individual variable
      field = '(ZRICH_0006)matnr'.
      assign (field) to <matnr>.
    * Assign an internal table
      field = '(ZRICH_0006)IMARC[]'.
      assign (field) to <imarc>.
    * Write out your data
      write <matnr>.
      loop at <imarc> into xmarc.
        write: / xmarc-werks.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • How to variable exit read table based on selected row on weblayout ??

    Hi All,
    Greeting,
    I have a question regarding IP.
    I have report where I can choose the line. I've already been able to catch the selected row there using ABAP Planning Function.
    The requirement is to change some value from other customized table ( not info cube ) based on selected row.
    So when user's selecting data and pressing a button, the idea is to prompt a variable where they can see the old value, and they can entry the new value. But to query that value, I need to select based on the values the row.
    My Question is how user-exit in variable can read selected row in web planning layout especially it happens when I_step = 1 ?
    Or the other idea is to get the value on that customized table and put it in text web item as the old value. How can I fetch data from table and put it in text web item ?
    Thanks a lot and have a good day,

    Hi.
    My Question is how user-exit in variable can read selected row in web planning layout especially it happens when I_step = 1 ?
    I think there is no way to do it. I_STEP=1 called before the report shows the data.
    But may be the next approach could help you:
    1. when you select line you can use command for populating variables according to selected line. let's say yohave selected line with costcenterr XXX so you can populate variable (let's say Z_CC) with selected value.
    2. create FOX that reads variable Z_CC value and calls any function module with customized table and variable value (you can use CALL FUNCTION statement within FOX and pass to it variable value).
    This is just an idea of some direction - may be you can take it and develope to required result.
    Regards.

  • How get xsl variable

    How get xsl variable after transformation in java-code?
    Edited by: pasash on Sep 2, 2009 3:43 AM

    Of course after the transformation is complete, its internal state is not accessible to the caller. In particular those variables aren't accessible.
    Perhaps you could explain what you are trying to do? Not the question you asked, the question you incorrectly thought it was the answer to.

  • Getting the variable name

    Hi
    May be a simple question, but I can't figure out how actually.
    When I'm doing this
    var obj:Object = new Object();
    obj.test = "My Test";
    for(var i:* in obj)
         trace(i + " : " + obj[i]);    
    The output is -> test : My Test
    My problem comes when I put an object inside the object
    var obj:Object = new Object();
    obj.test = new Object()
    obj.test.secondTest = "My Test";
    for(var i:* in obj)
         trace(i + " : " + obj[i]);    
    The output is -> test : [object Object]
    So any idea how to get the variable name instead of [object Object], just like the first output but with the second code. I have an object inside an object.
    Thanks

    The following approach will dig it's way in.  I added other variables to the main object just for demo sake...
    var obj:Object = new Object();
    obj.test1 = "test string";
    obj.test = new Object();
    obj.test.secondTest = "My Test";
    obj.test2 = new Object();
    obj.test2.secondTest2 = new Object();
    obj.test2.secondTest2.val = "deeper test";
    function traceObjectVars(obj_arg:Object):void {
          for(var i:* in obj_arg){
                if(typeof(obj_arg[i]) == "object"){
                      traceObjectVars(obj_arg[i]);
                } else {
                     trace(i + " : " + obj_arg[i]);
    traceObjectVars(obj);

  • Getting system Variables

    Hi. I'm creating jsp page, which uses ssl connection. I want to print information of user logged into page, but I can't understand - how to get system variables in JSP page?
    directory httpd.conf file:
    <Files ~ "\.(cgi|shtml|php)$">
    SSLOptions StdEnvVars ExportCertData
    </Files>
    # ExportCertData
    When this option is enabled, additional CGI/SSI environment variables are created: SSL_SERVER_CERT, SSL_CLIENT_CERT and SSL_CLIENT_CERT_CHAINn (with n = 0,1,2,..). These contain the PEM-encoded X.509 Certificates of server and client for the current HTTPS connection and can be used by CGI scripts for deeper Certificate checking. Additionally all other certificates of the client certificate chain are provided, too. This bloats up the environment a little bit which is why you have to use this option to enable it on demand.
    For example, I want to get SSL_CLIENT_CERT variable. How should I do it?

    Did you tried
    System.getProperty("");
    Just check if it works for you.

  • Reading xsd files

    Hi all,
    I want to read xsd file(3 xsd file with namespaces).
    Each xsd file contains namespace uri.
    I want to read these xsd files and i want to get all the child node and attributes of given parent node.
    how to get the information about each and every element's attributs and its child etc.
    Message was edited by:
    b_prasad
    Message was edited by:
    b_prasad

    You could use Stylus Studio for the same

  • How to get xpath of each node?

    I need to read xml data and put it on the browser. I thought frist i will get xpath of all the elements and get its value calling xpath from my another java program.
    Is there any better way to do it ? please suggest me?! In the following code the last element's number is
    getting incremented where i want that to start from [0].
    Can anyone please help me?
    My code as follows:
    book.xml
    <?xml version = "1.0" encoding= "ISO-8859-1" standalone ="no"?>  
    <book>  
        <person>  
              <first>Kiran</first>  
              <last>Pai</last>  
              <age>22</age>  
        </person>  
        <person>  
              <first>Bill</first>  
              <last>Gates</last>  
              <age>46</age>  
        </person>  
        <person>  
              <first>Steve</first>  
              <last>Jobs</last>  
              <age>40</age>  
        </person>  
    </book> 
    [/cdoe]
    My java code as follows:import java.io.File;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Stack;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    * SAX handler that creates and prints XPath expressions for each element encountered.
    * for above book.xml, my program will report
    * //book[0]
    //book[0]/person[0]
    //book[0]/person[0]/first[0]---> This segment is working fine.
    //book[0]/person[0]/last[0]
    //book[0]/person[0]/last[0]/name[0]
    //book[0]/person[0]/age[0]
    //book[0]/person[1]
    //book[0]/person[1]/first[1]->(this is wrong: should be //book[0]/person[1]/first[0])
    //book[0]/person[1]/last[0]
    //book[0]/person[1]/age[0]
    //book[0]/person[2]
    //book[0]/person[2]/first[2]-> (this is wrong: should be //book[0]/person[2]/first[0])
    //book[0]/person[2]/last[0]
    //book[0]/person[2]/age[0]

    Sorry code was in complete:
    import java.io.File;  
    import java.util.HashMap;  
    import java.util.Map;  
    import java.util.Stack;  
    import javax.xml.parsers.*;    
    import org.xml.sax.*;  
    import org.xml.sax.helpers.DefaultHandler;  
    public class SaxCreateXpath extends DefaultHandler {  
        // map of all encountered tags and their running count  
        private Map<String, Integer> tagCount;  
        // keep track of the succession of elements  
        private Stack<String> tags;  
        // set to the tag name of the recently closed tag  
        String lastClosedTag;  
         * Construct the XPath expression 
        private String getCurrentXPath() {  
            String str = "//";  
            boolean first = true;  
            for (String tag : tags) {  
                if (first){  
                    str = str + tag;  
               // first = false;  
                else 
                    str = str + "/" + tag;  
                str += "["+tagCount.get(tag)+"]";  
                first = false;  
            return str;  
        @Override 
        public void startDocument() throws SAXException {  
            tags = new Stack();  
            tagCount = new HashMap<String, Integer>();  
        @Override 
        public void startElement (String namespaceURI, String localName, String qName, Attributes atts)  
            throws SAXException  
            boolean isRepeatElement = false;  
            if (tagCount.get(localName) == null) {  
                tagCount.put(localName, 0);  
            } else {  
                tagCount.put(localName, 1 + tagCount.get(localName));  
            if (lastClosedTag != null) {  
                // an element was recently closed ...  
                if (lastClosedTag.equals(localName)) {  
                    // ... and it's the same as the current one  
                    isRepeatElement = true;  
                } else {  
                    // ... but it's different from the current one, so discard it  
                     tags.pop();  
                     tagCount.put(localName, 0);  
                 //   tagCount.put(localName, 1 - tagCount.get(lastClosedTag));  
            // if it's not the same element, add the new element and zero count to list  
            if (! isRepeatElement) {  
                tags.push(localName);  
            System.out.println(getCurrentXPath());  
            lastClosedTag = null;  
        @Override 
        public void endElement (String uri, String localName, String qName) throws SAXException {  
            // if two tags are closed in succession (without an intermediate opening tag),  
            // then the information about the deeper nested one is discarded  
            if (lastClosedTag != null) {  
                tags.pop();  
            lastClosedTag = localName;  
        public static void main (String[] args) throws Exception {  
            /*if (args.length < 1) { 
                System.err.println("Usage: SAXCreateXPath <file.xml>"); 
                System.exit(1); 
            // Create a JAXP SAXParserFactory and configure it  
            SAXParserFactory spf = SAXParserFactory.newInstance();  
            spf.setNamespaceAware(true);  
            spf.setValidating(false);  
            // Create a JAXP SAXParser  
            SAXParser saxParser = spf.newSAXParser();  
            // Get the encapsulated SAX XMLReader  
            XMLReader xmlReader = saxParser.getXMLReader();  
            // Set the ContentHandler of the XMLReader  
            xmlReader.setContentHandler(new SaxCreateXpath());  
            //String filename = "menuItems1.xml";  
            String filename = "book.xml";  
            String path = new File(filename).getAbsolutePath();  
            if (File.separatorChar != '/') {  
                path = path.replace(File.separatorChar, '/');  
                System.out.println("path="+path);  
            if (!path.startsWith("/")) {  
                path = "/" + path;  
            // Tell the XMLReader to parse the XML document  
            xmlReader.parse("file:"+path);  

  • How do I get "CO" variable 01 to 67 in character format?

    Post Author: Dennis Hernan
    CA Forum: Data Connectivity and SQL
    I have 2 databases. "DBA"."RMS_A0_SEGMENT" & "DBA"."RMS_G0_SEGMENT". The A0 segment has a CNTY variable. We create table B from A only to create SELYEAR & CO. SELYEAR is numeric because it is "2007 as". CO is numeric because it is "CNTY as". The values in CNTY are 1 to 67 numeric. How do I get "CO" variable 01 to 67 in character format?
    Is this standard SQL or would you call it Crysal SQL format? Select "B"."CNTY", "B"."SR", "B"."SEG", "B"."FED_AID",         "B"."TBK_CODE", "B"."PAVE_CYC", "B"."SURFACE",  "B"."LENGTH",         "B".SELYEAR, "C"."KEY_YEAR", "C"."SEG", "C"."SR", "C"."CNTY", "C"."SLDSTATU", "B"."CO" FROM (SELECT "A"."CNTY", "A"."SR", "A"."SEG", "A"."FED_AID",         "A"."TBK_CODE", "A"."PAVE_CYC", "A"."SURFACE",  "A"."LENGTH",         2007 as SELYEAR, CNTY as CO             FROM   "DBA"."RMS_A0_SEGMENT" "A") "B" LEFT JOIN "DBA"."RMS_G0_SEGMENT"  "C"  ON ("B"."SEG" = "C"."SEG") AND ("B"."SR" = "C"."SR") AND ("B"."CNTY" = "C"."CNTY") AND         ("B".SELYEAR = "C"."KEY_YEAR")

    Post Author: Dennis Hernan
    CA Forum: Data Connectivity and SQL
    Here's a simple example: SELECT "A"."A01_CTY_CDE", "A"."DIST_CODE","A"."CTY_NAME", A01_CTY_CDE AS CO NUMERIC(2) FROM SYSADM.CNTY_DIST_XREF "A" I'm trying to create the CO variable numeric(2) from the A01_CTY_CDE which is character(2). The values in A01_CTY_CDE are 1 to 67 character, I need CO to be numeric to merge with another linked table. "I am using the Add Command In Database Expert". I need 4 variables when this is done in the Command Database, A01_CTY_CDE, DIST_CODE,CTY_NAME all charater from the original database "SYSADM.CNTY_DIST_XREF". Also I'm trying & need your help, to create a variable CO with a numberic format, and the values equal to the A01_CTY_CDE variable. Call If you like, Dennis, 717.787.7293.

Maybe you are looking for

  • MacPro 2,1 apparently rebooting itself in the night?

    Hey everyone, I have a Mac Pro 2,1 running Snow Leopard (10.6.8) and almost daily, when I wake it up from sleep it acts like it has rebooted itself at some point during the night (login items showing). I do have it set to wake on LAN, and going back

  • The body of my emails are no longer being displayed...

    ...what gives?  This just started to happen yesterday and applies to all my accounts (gmail, msn, and MS Exchange).  In the preview of the emails on the left when holding in landscape, I can see the preview of the body.  On the right where the entire

  • Handling events in BSP application using WML tag Extensions

    Hello Everyone  ,                         We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library. Can any one of 

  • Oracle apps not loading in Firefox, Windows 7

    Hi, I'm a noob with Oracle R12 and my concern is regarding the setup. When I try to open an application using Firefox, all I get is the Java icon with the progress bar circling as if trying to load something. I get no pop-up nor anything in the progr

  • Role assignment in Guided Procedures

    Hi experts I have created a guided procedure which is having one level approval. This GP is having three actions. 1) Raise request 2) Approval Depending on the initiator the request goes to the corresponding manager for the Approval of the request. F