JDeveloper v.11.1.1.3.0 How to search in XML with XPath with NameSpace ?

Hello!
In JDeveloper v.11.1.1.3.0 i try to serch xpath expression, but i cant find where to type a NameSpace aliases ?
Becose a NameSpace can by very long its good to be an alias somewhere ...\

HI Satish,
Your question is not able to understand. i guess you are looking for  building project with ant tool for deployment.
plz find the below links
Building Projects with Ant
Using Maven In JDeveloper 11.1.2: Build ADF application with Maven using Ant ojdeploy
One size doesn't fit all: Using ojdeploy and Ant for creating ADF library JARs
Thanks
Nitesh

Similar Messages

  • How to save as XML with some predefined extensions

    hi All,
    In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
    How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
    awaiting for your mail
    Thank you
    Regards
    MKumar

    In an other post I found my solution thanks to "Peggy" :
    Save As… has returned with Mountain Lion. Hold down the Option/alt key while clicking on the File menu & there it is! It also has a default keyboard shortcut.
    Thank you Peggy

  • How to validate an XML with its XSD in jdk1.4.2_09?

    Hi all,
    Kindly Tell me how to validate an Xml against an XSD in JDK1.4.2_09....
    I was able to do it in jdk1.5 using the Validation class available in java.xml.validation package...
    But the Task for me is to do in jdk1.4.2 since my application server runs on jdk1.4.2... changin to jdk1.5 will result in failure of main application...
    sample code will be useful...
    thanks in advance.
    Regards,
    Sundararamaprasad.

    HI,
    Thanks for the suggestion.... The Thing is when i compiled and executre my code it really got execute well when i ran it in the Command Prompt after settiongup appropriate classpath and path... but when i executed the same thing in the server it did not get executed though the application server also run on top of the same JDk.....I've check it out..anyhow the link gave me a very good learning...Thanks for the valuable suggestion..... :)
    Regards,
    Sundararamaprasad.

  • HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING  ?

    i am creating the xml file
    i need to validate the xml with DTD to confirm is it valid or not ?
    with out parsing...
    could you tell me how ?
    Durga

    without parsing u cant do it..

  • How use xml with namespaces

    I have the following xml which is output from Oracle Bpel.
    <OglRapportPerAdresnrResponse xmlns="http://www.itude.com/technology/Ogl/RapportPerAdresnrResponse">
    <AdresGegevens>
    <Adresnr>54321</Adresnr>
    <Straatkode>12345</Straatkode>
    </AdresGegevens>
    </OglRapportPerAdresnrResponse>
    If i remove the namespace info everything works fine but with the namespace info the output is empty if i insert e.g. <Adresnr> into a template. The field browser shows everything fine and also the value but when rendering a PDF it disappears. I read in the user guide that i need to declare the namspace in a form field like <?namespace:namespace name= namespace url?> but how do i do that with the above namespace notation where the namespace name is empty ?
    Regards,
    Andre

    Hi Tim,
    I found part of the solution but i am still stuck when i need to use <?for-each?> tags. When i use the following XML:
    <OglRapportPerAdresnrResponse xmlns="http://www.itude.com/technology/Ogl/RapportPerAdresnrResponse">
         <AdresGegevens>
              <Adresnr>8391</Adresnr>
              <Straatkode>11070</Straatkode>
         </AdresGegevens>
         <Basisgegevens>
              <paramPResult xmlns="urn:generated.ws.kgb.itude.com">
                   <paramAdresnr>8391</paramAdresnr>
                   <paramGegevenstype>GEBRUIK</paramGegevenstype>
              </paramPResult>
              <paramPResult xmlns="urn:generated.ws.kgb.itude.com">
                   <paramAdresnr>8391</paramAdresnr>
                   <paramGegevenstype>STADSDEEL</paramGegevenstype>
              </paramPResult>
         </Basisgegevens>
    </OglRapportPerAdresnrResponse>
    I read the xml file in Word. I then have access to the fields but when i select AdresGegevens/Adresnr the output is not rendered. The namespace is a default namespace for that element. I found out that if i define a namespace like <?xmlns:bpel=http://www.itude.com/technology/Ogl/RapportPerAdresnrResponse?> and then access the AdresGegevens/Adresnr through <?bpel:Adresnr?> it works!
    I then defined a second namespace <?xmlns:bpel2=urn:generated.ws.kgb.itude.com?> and tried to render the paramPResult tags with:
    <?for-each:paramPResult?>
    <?bpel2:paramAdresnr?>
    <?bpel2:paramGegevenstype?>
    <?end for-each?>
    But the above does not work. Any ideas?
    Regards,
    Andre Jochems

  • How best to sync xml with db changes?

    What is the best way to have changes to the db schema reflected
    to the <connection>.xml?
    Does this information have to be updated manually?
    null

    Not automatic is probably good BUT will there be some
    method/utility/wizard to sync the XML with a changed schema?
    Maybe a diff like editor?
    Or are you saying that, after initial generation, all changes to
    the database schema will require those changes be propogated to
    the XML files by hand?
    Having to propogate all changes by hand sounds like a maintenance
    nightmare. It also sound like it would require the JDeveloper
    programmer to be knowledgeable of and duplicating the efforts of
    the DBA's.
    R.Parr
    Temporal Arts
    JDev Team (guest) wrote:
    : Giles and Randall,
    : In 2.0, the XML files generated by the Infobus Wizard are
    : read-only, so the only way to have them pick up changes to your
    : schema is to re-generate the form via the Wizard, or as Giles
    : says, but re-creating the rowsets.
    : In 3.0, things are a little different. The XML file resides in
    a
    : separate project with your business logic. The XML file is
    : editable in 3.0, but JDev does not automatically update the XML
    : file based on changes to the schema objects it is based on.
    : Laura
    : giles (guest) wrote:
    : : i've had this problem, the only quick way i see to update the
    : : xml file is to re-create your rowsets using the wizards.
    : : Randall J. Parr (guest) wrote:
    : : : What is the best way to have changes to the db schema
    : : reflected
    : : : to the <connection>.xml?
    : : : Does this information have to be updated manually?
    null

  • How to validate an xml with a schema w/o specifying the schema in the xml

    I have done xml validation with xml schemas, where the xml points to the xsd to use. However, I would like to not have to specifiy the xml schema in the xml document (and can't ensure that the xml coming to us has that in it). How do I, in the java code, tell it what schema to use in validation?
    Brian

    static final String schemaSource = argv[0];
    static final String JAXP_SCHEMA_SOURCE =
    "http://java.sun.com/xml/jaxp/properties/schemaSource";
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    factory.setAttribute(JAXP_SCHEMA_SOURCE,
    new File(schemaSource));

  • Trying to figure out how to use my xml with a tree component

    Hi All,
    I am trying to use a tree control for the first time and
    having a bit of difficulty. I have a Domino server that will
    generate XML for a specific view of information. The view looks
    just like what a tree control would look like. I wish I could paste
    a screen print . . .
    It looks like this:
    +/- ...01/31/2007
    ..+/- Steven Rieger
    ..........Company
    Name...Project-Number...Task-Name.....Total-Hours...Sat...Sun...Mon...Tue...Wed...Thu...F ri
    The Date and Name are collapsible .
    When I get the generated xml it's got a lot of crazy
    information in there that I don't need. I'm hoping someone can look
    at the xml below and provide some insight into how to parse it to
    achieve the look above.
    Thanks for your help!!!!
    - <viewentry position="1.1" noteid="80000008" children="2"
    descendants="6" siblings="30">
    - <entrydata columnnumber="1" name="$16"
    category="true">
    <datetime>20071026</datetime>
    </entrydata>
    - <entrydata columnnumber="7" name="TSTotHours">
    <number>53.5</number>
    </entrydata>
    - <entrydata columnnumber="8" name="TSHours_1">
    <number>6</number>
    </entrydata>
    - <entrydata columnnumber="9" name="TSHours_2">
    <number>9</number>
    </entrydata>
    - <entrydata columnnumber="10" name="TSHours_3">
    <number>6.5</number>
    </entrydata>
    - <entrydata columnnumber="11" name="TSHours_4">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="12" name="TSHours_5">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="13" name="TSHours_6">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="14" name="TSHours_7">
    <number>8</number>
    </entrydata>
    </viewentry>
    - <viewentry position="1.1.1" noteid="8000000C"
    children="2" descendants="2" siblings="2">
    - <entrydata columnnumber="2" name="$15"
    category="true">
    <text>Steven Rieger</text>
    </entrydata>
    - <entrydata columnnumber="7" name="TSTotHours">
    <number>40</number>
    </entrydata>
    - <entrydata columnnumber="8" name="TSHours_1">
    <number>0</number>
    </entrydata>
    - <entrydata columnnumber="9" name="TSHours_2">
    <number>4</number>
    </entrydata>
    - <entrydata columnnumber="10" name="TSHours_3">
    <number>4</number>
    </entrydata>
    - <entrydata columnnumber="11" name="TSHours_4">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="12" name="TSHours_5">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="13" name="TSHours_6">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="14" name="TSHours_7">
    <number>8</number>
    </entrydata>
    </viewentry>
    - <viewentry position="1.1.1.1"
    unid="8625721300797D8686257383001826AE" noteid="B4E"
    siblings="2">
    - <entrydata columnnumber="3" name="$178">
    <number>0</number>
    </entrydata>
    - <entrydata columnnumber="4" name="TSPCompany">
    <text>101955 - Acme Company, Inc.</text>
    </entrydata>
    - <entrydata columnnumber="5" name="TSPProject">
    <text>P03036 - CAC 07/08</text>
    </entrydata>
    - <entrydata columnnumber="6" name="TSPTask">
    <text>10134 - Import from Access to Notes</text>
    </entrydata>
    - <entrydata columnnumber="7" name="TSTotHours">
    <number>24</number>
    </entrydata>
    - <entrydata columnnumber="8" name="TSHours_1">
    <text />
    </entrydata>
    - <entrydata columnnumber="9" name="TSHours_2">
    <text />
    </entrydata>
    - <entrydata columnnumber="10" name="TSHours_3">
    <text />
    </entrydata>
    - <entrydata columnnumber="11" name="TSHours_4">
    <text />
    </entrydata>
    - <entrydata columnnumber="12" name="TSHours_5">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="13" name="TSHours_6">
    <number>8</number>
    </entrydata>
    - <entrydata columnnumber="14" name="TSHours_7">
    <number>8</number>
    </entrydata>
    </viewentry>

    If the depth of the structure is constant, you can do it in a
    single function call. If you need to go down an unknown number of
    nesting levels, your function will need to be recursive.
    XML.children() gives you an XMLList of the child nodes. You
    can for-loop over this XMLList. Inside the for loop, add thexml you
    want to the new XML object.
    Tracy

  • How to bind dynamic xml with Java objects without xsd

    have a question, and hope someone here can help me.
    In my current project, I will get a xml file, containing some information of each user, and map them into a set of user objects.
    For each user, there are some fixed attributes, such as name, phone#, age, position, etc. The problem is, client can customize, and add new attibutes, such as address, favorite color, so there will be no xsd for the xml.
    What I want to do, is map fixed attributes to user object attributes, for example, name attribute to User.name, and they will have corresponding getters, and setters, but for custom attributes, I want to add them to a HashMap in User object, for example, use string "ADDRESS" as the key, and address as the value.
    Is there any way I can do this? Thank you very much for any help you can provide.

    It would not be too hard to do in regular code.
    First, make a HashSet with the Strings for the names of the known attributes that will be processed with setters.
    Then, get the NamedNodeMap via getAttributes(). That will give you all attributes -- both the ones you will handle with your setters and the ones you will handle via a HashMap.
    Then, loop through the NamedNodeMap. For each attribute, get the name and value. If the name is in the HashSet of known values, process it with a list of
    if ( attName.equals( "name" ))
        whatever.setName( value );
       continue;
    }If it is not in the HashSet, then set the value into your HashMap with the name and value.
    There is no standard way to do this.
    Dave Patterson

  • How to extract  XML with namespace?

    Hi all,
    Below is the XML i have :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.test.com/Support/Services/test1/2012" xsi:schemaLocation="http://schemas.test.com/Support/Services/test1/2012 Support.test1.v1.xsd">
    - <Request>
    <Memid>10</Memid>
    <Actid>32</Actid>
    <Pax>3</Pax>
    <Flt>2012-DEC-10</Flt>
    <Username>WebUserNameTest</Username>
    </Request>
    <Request>
    <Memid>1</Memid>
    <Actid>3</Actid>
    <Pax>2</Pax>
    <Flt>2012-DEC-12</Flt>
    <Username>WebUserNameTest</Username>
    </Request>
    </Transaction>
    I want to extract the element values :
    The below code will help me when i have no namespace , what must be done in order to work with namespace and etract element value
    v_string_xml :=
    ' //Request[' || TO_CHAR (counter_xml) || ']/Memid/text()';
    v_ssp_table (v_ssp_table.COUNT).memid :=
    p_xml_in.EXTRACT (v_string_xml).getnumberval ();
    v_string_xml :=
    '//Request[' || TO_CHAR (counter_xml) || ']/Actid/text()';
    v_ssp_table (v_ssp_table.COUNT).actid :=
    p_xml_in.EXTRACT (v_string_xml).getnumberval ();
    v_string_xml :=
    '//Request['
    || TO_CHAR (counter_xml)
    || ']/Pax/text()';
    v_ssp_table (v_ssp_table.COUNT).pax :=
    p_xml_in.EXTRACT (v_string_xml).getnumberval ();
    v_string_xml :=
    '//Request[' || TO_CHAR (counter_xml) || ']/Flt/text()';
    v_ssp_table (v_ssp_table.COUNT).flt :=
    p_xml_in.EXTRACT (v_string_xml).getstringval ();
    v_string_xml :=
    '//Request['
    || TO_CHAR (counter_xml)
    || ']/Username/text()';
    v_ssp_table (v_ssp_table.COUNT).username :=
    p_xml_in.EXTRACT (v_string_xml).getstringval ();

    declare
      v_xml xmltype := xmltype( '<?xml version="1.0" encoding="UTF-8" ?>
    <Transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.test.com/Support/Services/test1/2012" xsi:schemaLocation="http://schemas.test.com/Support/Services/test1/2012 Support.test1.v1.xsd">
    <Request>
    <Memid>10</Memid>
    <Actid>32</Actid>
    <Pax>3</Pax>
    <Flt>2012-DEC-10</Flt>
    <Username>WebUserNameTest</Username>
    </Request>
    <Request>
    <Memid>1</Memid>
    <Actid>3</Actid>
    <Pax>2</Pax>
    <Flt>2012-DEC-12</Flt>
    <Username>WebUserNameTest</Username>
    </Request>
    </Transaction>' );
    begin
      for r_xml in ( select *
                     from xmltable( xmlnamespaces( default 'http://schemas.test.com/Support/Services/test1/2012' )
                                   , '/Transaction/Request'
                                   passing v_xml
                                     columns memid number path 'Memid'
                                           , actid number path 'Actid'
                                           , pax number path 'Pax'
                                           , flt varchar2(100) path 'Flt'
                                           , username varchar2(100) path 'Username'
      loop
        dbms_output.put_line( r_xml.memid );
        dbms_output.put_line( r_xml.actid );
        dbms_output.put_line( r_xml.pax );
        dbms_output.put_line( r_xml.flt );
        dbms_output.put_line( r_xml.username );
      end loop;
    end;

  • How to call PDF Report with parameters in jdeveloper 10.1.3

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

  • How to get built.xml for ear file in jdeveloper?

    Hi,
    I am using JDeveloper to create EAR file for my ADF Fusion Application. I think Jdeveloper use ant to create EAR file. I know how to get built.xml for my war file.
    Can anyone tell how to get that built.xml that create EAR file in Jdeveloper.?

    This blog explains:
    http://adfhowto.blogspot.com/2011/03/ojdeploy-deploying-adf-application-from.html
    Based on the blog, I simply copied an existing project "deploy" target definition and augmented the project's build.xml with a new target "deployApp" that omits the Project parameter to ojdeploy. This causes ojdeploy to build the workspace-level deploy profile instead. I also omitted the output directory parameter (default is app's /deploy folder) and assume that there is only one application deployment profile (i.e. the default for profile parameter is the '*' wildcard). You can augment the build.properties file if you need to get fancier than that.
    <target name="deployApp" description="Deploy Complete YourFoo Application"
    depends="init">
    <taskdef name="ojdeploy"
    classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask"
    uri="oraclelib:OJDeployAntTask"
    classpath="${oracle.jdeveloper.ant.library}"/>
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
    executable="${oracle.jdeveloper.ojdeploy.path}"
    ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
    ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
    <ora:deploy>
    <ora:parameter name="workspace"
    value="${oracle.jdeveloper.workspace.path}"/>
    <ora:parameter name="profile"
    value="${oracle.jdeveloper.deploy.profile.name}"/>
    <ora:parameter name="nocompile" value="true"/>
    </ora:deploy>
    </ora:ojdeploy>
    </target>

  • How do I generate XML File Using JDeveloper 9.0.3

    Hi All
    I want to generate a XML file against the data in one of my Oracle table,,,, This is the first time I am doing this Task, so please let me know whether I am going through the correct path, or if not appreciate if you could put me to the correct system of doing this please���..
    OK , Well I am working to a publishing company in Australia and we have Oracle 8i (Release 3 ) database and I have Oracle JDeveloper (9.0.3 -Preview ) version in my personal computer.
    I have a Table(ONIXT4) with three Columns( ISBN,Author,Price) in Oracle as follows:
    ISBN     Author     Price
    2512456321     Peter     14.50
    7445854127     Ray      21.75
    What I want to generate a XML File using JDeveloper as below with respect to data in above Table.
    <ISBN>2512456321</ISBN>
    <ProductInfor>
    <Author>Peter</Author>
    <Price>14.50</Price>
    </ProductInfor>
    <ISBN>7445854127</ISBN>
    <ProductInfor>
    <Author> Ray </Author>
    <Price>21.75</Price>
    </ProductInfor>
    I created the database connection within JDeveloper to Oracle those working fine,, my major problem is,, the Tag <ProductInfor>, since this is not a Column Name of the Table I don't know how should I incorporate this with the file.
    What I did so far with the JDeveloper:
    1.Create the Workspace and the Project
    2.File -- New -- XML -- XSQL
    3.Then I Selected Query from the Component Palette,, Property Values were NOT changed, and gave 'Select * from ONIXT4'
    Whole Untitled3.xsql file look likes below
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    <page xmlns:xsql="urn:oracle-xsql" connection="Connection1">
    <xsql:query max-rows="-1" null-indicator="no" tag-case="lower">
    Select * From OnixT4
    </xsql:query>
    </page>
    Then the Result comes as:
    <?xml version="1.0" encoding="windows-1252" ?>
    - <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    - <page>
    - <rowset>
    - <row num="1">
    <isbn>2512456321</isbn>
    <author>Peter</author>
    <price>14.5</price>
    </row>
    - <row num="2">
    <isbn>7445854127</isbn>
    <author>Ray</author>
    <price>21.75</price>
    </row>
    </rowset>
    </page>
    How do I format the outcome to obtain the my requirement??
    Welcome all comments of donig this ....

    To format your XML to the requiered output you'll use a stylesheet and XSLT
    As it says in your output:
    - <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    A nice tutorial on XSLT is available on the XML technology center in OTN:
    See Transforming XML with XSLT
    http://otn.oracle.com/tech/xml/learner.html

  • How to edit weblogic.xml in Jdeveloper web project

    Hi, All,
    I created a web application in Jdeveloper11.1.1.1 and deployed to weblogic server 10.3, I found there is weblogic.xml under WEB-INF folder in war file.
    I try to add something in weblogic.xml, but the problem is I cannot find weblogic.xml in Jdeveloper.
    How to edit weblogic.xml in Jdeveloper? Thanks in advanced.
    Best Regards,
    Bill

    The weblogic.xml file is generated at deploy time if it doesn't exist in your application. To create it specifically in your application at design time for editing, select the appropriate project then the New option, from the New Gallery select General -> Deployment Descriptors -> Weblogic Deployment Descriptor, and in the resulting dialog select the weblogic.xml file. It will be added to the project -> Web Content -> WEB-INF directory.
    Cheers,
    CM.

  • How to integrate Crystal Report  with oracle JDeveloper 11g

    Hi,
    How to integrate Crystal Report  with oracle JDeveloper 11g
    Regards ,
    Amol

    I dont think that you can integrate Crystal Reports with JDevelpoer but you can use runtime libraries to your project to get crystal report functionality
    To know more please go through supported platforms
    [Supported Platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504d0204-681e-2b10-2381-853d88974cfc]
    Regards,
    Tej

Maybe you are looking for

  • Itunes 10.6 crashes Windows XP SP2

    I have tried uninstalling & reinstalling via instructions from this forum. It still crashes my entire system, requiring a restart. I have no plugins or security software installed. In desperation I installed Spotify. It plays my music fine, but in ge

  • Error message when trying to archive and install back to 10.5.6 from 10.5.7

    KB article tells me you cannot install an OS on a computer that has a newer version of the OS... is there a way around this? i want to go from 5.7 to 5.6. thank you

  • Not able to apply for leave after deduction interval.

    Hi, our client is having leave type which is valid from 1st April 2010 to 31st March 2010 and deduction interval also from 1st April to 31st march 2010. now employees are not able to apply for the leave of April month of 2011 where do i have to chang

  • View web pages locally?

    I'd like to view a website from local storage, using the Browser (not the HTML Viewer), is that possible? I transferred the site to a USB flash drive and plugged it in, thinking I could access it something like this: file:///usb/index.html But if tha

  • EJB Invocation from B2B CallOut

    Hi, I tried to invoke an Session EJB deployed in oracle app server from B2B. I compiled the callout class in java version 1.4. The home class and remote classes are addded to the classpath which is of version java 5. When i tried to test the same in