How can i generate session.xml file?

hello
i am a beginner of toplink,i find that in my project,i must provide two xml format files,they are "session.xml" and a project xml file,to make the toplink works well,the project descriptor can be generated by using the mapping workbench,but how can i generate the "session.xml",now,what i can do is to modify the sample file that come with the toplink installation,i wonder if there is a graphic tool that can be used to generate it?
thanks for any helps!

Currently there is no UI support for creating or modifying sessions.xml. The DTD is provided in both the documentation as well as in the installed files (<TOPLINK_HOME>\core\sessions_4_5.dtd). The examples should also contain a variety of sessions.xml file to assist you.
Doug Clarke
Principal Product Manager, Oracle9iAS TopLink
Oracle Corporation

Similar Messages

  • How to automatically generate build.xml file in eclipse?

    Hello every body,
    I am learning about ANT. e.g I have writen a very simple programme which displays output "no worries". But how can I compile it with ANT and how can I generate build.xml file using eclipse.

    This is not really a Java issue but rather is an Eclipse issue. You may wish to look for their support sites or forums.

  • How I could generate an XML file from a report in version 4.0B

    Good morning,
    How could I generate an XML file from a report? Please note that I am using version 4.0B
    I don't have access to
    Billy Vital

    Hi,
            In the Class CL_XML_DOCUMENT,
                 we have a method  EXPORT_TO_FILE to download an XML file.

  • How can (parse) i use XML file with missing EndTag

    hi,
    i have an application which writes an "XML file".
    another application should read that XML file, build an DOM and
    access the nodes with xpath.
    my problem. if the first application is not finished there are tags
    missing. e.g. </xml>. but the seconds application cannot wait until the first application finishes it task.
    if i now read the XML file the parser cannot load it because the end tags are missing.
    my question:
    how can i deactivate the check or how can i read the XML file and access it via XPath (my application is using at the moment XPath to access the nodes and i dont want to change that)
    as parser i am using XERCES
    alex

    As far as I know, you can't do this - xml must be well formed (this is sort of a bedrock of xml). There may be some work around's, but I'm not aware of any - and they would most likely be hacks.

  • How can I pass a xml file to the webservice?

    Hello friends,
    How can I pass the XML file to any webservice API ?
    I have all the inputs of API in to the XML file.
    Please note:- I don't intend to do any .NET or Java coding to populate the data in the objects .Instead I plan to input the data to the webservice direcly from the XML file required schema.
    If necessary I can use Oracle Bpel process manager for it.
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]

    Well, I've used it (or rather: tried it); did not/could not find the many options to export at a nearly lossless conversion for HD footage (hence my disclaimer "don't know"). Here is a screenshot of the Handbrake options:
    And here are the choices and settings from MPEG Streamclip:
    Maybe not empirical, but enough for me to have an opinion.

  • How can i write a XML file with oracle data ?

    How can i write a XML file using PL/SQL.
    Can i do as follows.
    1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W')     ;
    2.write all the required tag and value using UTL.put_line
    that is enough. Is not, please guide me to write.
    gk

    Having Oracle 9i.
    One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
    1. l_str := ' "E27" '
    or
    2. l_str := ' E27 '
    UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);          
    1 case : in XML file : "E27"
    In 2 case : E27
    When we write a XML file through editors , we have to define the constant within quote . is it?      
    Which one can i use ? Or any other way is there ..
    Thanks and Regards
    gopi

  • My report contains a BLOB (image), why it can't generate an XML file?

    Hi guys,
    I created a report (Purchase Order) and it has a Signature field.
    which is a BLOB column of an image (.JPEG) of the signature of the Purchase Order Approver.
    When i run the report in the report builder its working and it shows the image of the signature.
    BUT when i try to generate xml file to use it for the XML Publisher, it generates an xml file with error. which can't be loaded into the .rtf file.
    i Googled around and it seems that there are limitations in XML Publisher that can not load a BLOB or LONG RAW fields.
    So Please guys i need your help! what can i do now ?
    They need the Purchase Order in a custom PDF format, which i can only make it with XML Publisher.
    Best Regards,

    Hello,
    For questions about BI Publisher (Formelly XML Publisher) :
    BI Publisher
    Regards

  • How can i transfer the xml files between different systems?

    hello
    the appearance of xml enable the inter-communication between differences systems.but
    i don't know how,such as following scinario:
    in the client side,we use the console that is written by using c#,if i finish
    filling the text boxes that are within the console,click the submit button,the
    console will generate a xml format document.i want the other application that
    is written by using jsp and servlet and deployed in weblogic server to receive
    the xml document,then process the document.
    but i don't know how i can transfer the xml files between the two applications
    that is written in different languages? can i use http protocol?
    thanks for any helps!

    Yes, you can use the HTTP protocol as a transport for the XML message, this
    is basically what the HTTP binding for SOAP does. The key is using a
    packaging mechanism that different applications will understand, otherwise
    only your own applications will know how to extract and process the XML
    messages you send between them.
    "zbcong" <[email protected]> wrote in message
    news:3e68318e$[email protected]..
    >
    hello
    the appearance of xml enable the inter-communication between differencessystems.but
    i don't know how,such as following scinario:
    in the client side,we use the console that is written by using c#,if ifinish
    filling the text boxes that are within the console,click the submitbutton,the
    console will generate a xml format document.i want the other applicationthat
    is written by using jsp and servlet and deployed in weblogic server toreceive
    the xml document,then process the document.
    but i don't know how i can transfer the xml files between the twoapplications
    that is written in different languages? can i use http protocol?
    thanks for any helps!

  • How can I generate a map file with LabVIEW?

    We wish to use a product which inserts code into our executable to prevent tampering with it by crackers.  The program, however, takes the executable file, as well as the map file (which is commonly generated by c++ compilers) and uses the map file to determine where in the exe the critical routines that need protection are at.  I can not, however, determine how to create such a map file for a LabVIEW generated executable.  Is there a special build option I need to invoke?

    Yes, I'm familar with NI's licensing technology, having talked with someone (you, Dennis, I believe) about it before.  The problem we have is our software is sold to factories in China where there are no internet connections.  We have a physical key 'dongle' which must be present in order for the executable to be willing to run.  However, it appears that people are taking the executable  which LabVIEW creates and they are editing it, probably by using a a debugger and tracing to the the code which checks for the dongles presence and bypassing it.  To my knoweledge, NI's products don't do anything to prevent this, right?
    We found a company which sells a product that encryptes, checksums, etc... an executable file, but it needs to know the layout of functions in the exe in order to determine which areas to focus the obfuscation on.  They were sort of matter of fact when they said it needs the exe and the map file, as if they expected any language which produced an exe could produce a map file.

  • How can I save a XML file with JAXP1.1?

    Dear All.
    I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1.
    How can I do? thank you.
    Many person give me a idea the com.sun.xml.tree.XmlDocument, but I can't find the class in API document or JAXP1.1's packages. why?
    what is it? How can i use it?
    thank you very much.

    The way to save an XML Document is using a Transformer.
    To have access to a transformer use the packages :
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Then for saving your Document Object (named dXml) get a Transformer Object with the TransformerFactory Object :
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    Now you have got your Transformer Object, to save your Document Object use the method :
    Document dXml = getMyDocument(); // this is your Document Object.
    OutputStream osSave = getMySaveStream(); // this the OutputStream you need to save your Document.
    try
    t.transform(new DomSource(dXml), new StreamResult(new OutputStreamWriter(osSave)));
    finally
    osSave.close();
    And your Document was now saved.

  • How can I return an xml file to normal print?

    I typed out a list of CD and saved it but it is filed in xml format and I don't know how to return it not normal print so that I can print it out.  As you may realise I am not very computer literate! Please can someone help.Thanks

    coda, textwrangler, textedit should all be able to open and display xml files
    but there is no direct print or word proccessor route from xml it's a broad format it's
    just tags and how those tags are read and write are up to the program which writes and read the file in question
    so you may end up having to fish out the text you want to print from inside X different tags in the file
    xml can be seen as a text version of .dat which is the binary counterpart

  • How can I skip the XML file's space & "\n" when using a DOM?

    This is my xml file below:
    <?xml version="1.0" encoding="UTF-8"?>
    <inventory>
      <item>
        <sku>3965</sku>
        <describtion>widget</describtion>
        <quality>108</quality>
      </item>
      <item>
        <sku>5478</sku>
        <describtion>gadget</describtion>
        <quality>101</quality>
      </item>
      <item>
        <sku>4575</sku>
        <describtion>sprocket</describtion>
        <quality>106</quality>
      </item>
    </inventory>between the <inventory> and the<item>,there is one "\n" and tow "space" ,
    then between the <item> and the <sku>,there is ...
    on and on...
    and this is my java code:
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    public class DomDemo {
      DocumentBuilderFactory dbf = null;
      DocumentBuilder df = null;
      Document doc = null;
      public DomDemo() {
        try {
          dbf = DocumentBuilderFactory.newInstance();
          dbf.setIgnoringElementContentWhitespace(true);
        catch(FactoryConfigurationError fce) {
          fce.printStackTrace();
        try { 
          df = dbf.newDocumentBuilder();
        catch(ParserConfigurationException pce) {
          pce.printStackTrace();
      public void printXML(Node node) {
        short nodeTypeValue;
        String nodeType = null;
        Node currentNode = null;
        nodeTypeValue = node.getNodeType();
        nodeType = getNodeType(nodeTypeValue);
        System.out.println("NodeType:" + nodeType);
        System.out.println("NodeName:" + node.getNodeName());
        System.out.println("NodeValue:" + node.getNodeValue());
        for(currentNode = node.getFirstChild(); currentNode != null; currentNode = currentNode.getNextSibling()) { 
          printXML(currentNode);
      public String getNodeType(short nodeTypeValue) {
        String nodeType = null;
        switch(nodeTypeValue) {
          case Node.DOCUMENT_NODE: 
            nodeType = "DocumentNode";
            break;
          case Node.ELEMENT_NODE:
            nodeType = "ElementNode";
            break;
          case Node.ATTRIBUTE_NODE:
            nodeType = "AttributeNode";
            break;
          case Node.TEXT_NODE:
            nodeType = "TextNode";
            break;
          default:
            nodeType = "OtherNode";
        return nodeType;
      public static void main(String[] args) {
        if(args.length == 0) {
         System.out.println("Usage:java DomDemo filename");
         System.exit(1);
        String file = args[0];
        DomDemo dd = new DomDemo();
        Document doc = null;
        try {
          doc = dd.df.parse(file);
        catch(Exception e) {
          e.printStackTrace();
        dd.printXML(doc);
    }when run the class, the result is below:
    NodeType:DocumentNode
    NodeName:#document
    NodeValue:null
    NodeType:ElementNode
    NodeName:inventory
    NodeValue:null
    NodeType:TextNode
    NodeName:#text
    NodeValue:
    NodeType:ElementNode
    NodeName:item
    NodeValue:null
    NodeType:TextNode
    NodeName:#text
    NodeValue:
    It contains a TextNode and its value is " " and a "\n".
    I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
    How can i solve it?

    I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
    Add a DTD to the XML document for setIgnoringElementContentWhitespace feature.

  • Please, I need help - How can I generate a text file with Word format?

    Hello friends at www.oracle.com ,
    is it possible for me to create a text file - that is, with TEXT_IO.fopen, and so on - that's already formatted as a Word document?
    We have a Forms program here, where it's needed to generate a text file with .RTF format, 8 centimeters margin, Times New Roman font, with size 7.
    Best regards,
    Franklin Goncalves Jr.

    Hello Shay,
    sincere thanks for your answer. And, to answer your last question, I'm using client-server model.
    Since I couldn't create this .RTF file by using built-ins like TEXT_IO, I tried to generate an .RTF file using Reports, passing the parameters DESTYPE, DESNAME and DESFORMAT, as shown below.
    add_parameter (pl_id, 'DESTYPE', text_parameter, 'FILE');
    add_parameter (pl_id, 'DESNAME', text_parameter, 'c:\franklin.rtf');
    add_parameter (pl_id, 'DESFORMAT', text_parameter, 'RTF');
    However, the just generated .RTF file is uncomprehensible. After opening the file at Microsoft Word, I can see the following message at the top of file:
    This file was created by Oracle Reports. Please view this document in Page Layout mode.
    ... and informations doesn't appear as desired.
    If I can't generate such text format by using TEXT_IO, and if generating an .RTF file through Reports shows me an incomprehensible result, how can I export the selected result to an .RTF file?
    When Reports is opened, choosing Generate to file -> RTF doesn't export anything.
    Thanks, and best regards,
    Franklin Goncalves Jr.

  • How can i register my xml file when i have no xsd ?

    For given xml data.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
    <metadata>
    <idinfo>
    <citation>
    <citeinfo>
    <origin>MRF</origin>
    <pubdate>20040512</pubdate>
    file is large this is a sample.
    I am inserting using xmltype without registering schema.
    using this method,it is working fine.
    CREATE TABLE xml_table OF XMLType;
    INSERT INTO xml_table
    VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'),
    nls_charset_id('AL32UTF8')));
    Can you suggest a way to register above xml using below mentioned method given in samples?
    BEGIN
    DBMS_XMLSCHEMA.registerschema('http://www.oracle.com/person.xsd',
    '<schema xmlns="http://www.w3.org/2001/XMLSchema"' ||
    ' xmlns:per="http://www.oracle.com/person.xsd"'
    etc. and
    CREATE TABLE foo OF XMLType
    XMLSCHEMA "http://www.oracle.com/person.xsd" ELEMENT "person";
    Can I register schema for my xml file which does not have xsd format this way, if yes how??
    Please suggest.

    The main purposes of registering a schema, depending upon how you register it, are to create objects within Oracle to have the XML stored in and to use to validate XML against.
    If you are trying to validate the XML, then you need to register the DTD from http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd. (If possible, I would suggest to convert the DTD to an XSD before registering it given that DTDs are outdated now)
    You can find examples of registering schemas in the FAQ at the {forum:id=34} forum. Assuming your DB version meets the requirements, any registration questions should be posted in that forum. You can also search that forum for registerschema and find many examples as well.

  • How can I serve crossdomain.xml file on a specific port?

    Let me introduce my problem step by step:
    I was using a socket connection on the address www.mydomain.com:1925 to provide a chat service for my users. When I moved to cloudflare, I could not connect to port 1925 directly because of the fact that my requests were reaching my origin server over cloudflare and the port was changing.
    How did I solve it? I created a subdomain chat.mydomain.com whose DNS settings point to my origin server not cloudflare. I bypassed cloudflare by this way and I connected my chat service by using chat.mydomain.com:1925 on the browser. So far so good.
    Here is the problem. I am also using Flash and AS3. It is the core of my game on the site. Chat is working on html and my game in flash is in some part of my website. In flash, I was sending scores of players using again a socket connection on www.mydomain.com:1925 by a different namespace.(Since swf's host and url's host matched, I didn't have any problem I think).Since I have changed the domain to chat.mydomain.com:1925, Flash started to request a crossdomain.xml on chat.mydomain.com:1925. There is a crossdomain.xml file on chat.mydomain.com however I cannot serve it from chat.mydomain.com:1925. Here is my code:
    Security.loadPolicyFile("https://chat.mydomain.com/crossdomain.xml");
    var urlLoader:URLLoader = new URLLoader ();
    var url:String = "https://chat.mydomain.com:1925/socket.io/1/";
    var request:URLRequest = new URLRequest(url);
    request.method = URLRequestMethod.POST; 
    urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    urlLoader.addEventListener(Event.COMPLETE, completeHandler);
    urlLoader.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
    urlLoader.load(request);
    Since flash cannot find crossdomain.xml by getting 404, the requests in my code do not work. How can I solve this problem? How can I use the origin chat.mysite.com:1925?

    You're going to have to host it in a way that lets you serve HTTP/S content (at least the crossdomain.xml) on port 80 or 443 respectively.
    The Flash Player Security Whitepaper has an excellent breakdown of the requirements for crossdomain policy stuff:
    White paper: Adobe Flash Player 10 security | Adobe Developer Connection

Maybe you are looking for