Universe Builder on XML file

Hello Experts,
We have XIR3.1 SP4 and our repositories are on oracle 10g.
I'm trying to build a universe on top of Data Services. I exported the datastore to an XML file from the DS Client tool.
I opened the Universe Builder, selected the Metadata Sources and pointed to the XML file.
The name of the XML file appears in the space of Universe Builder, with file type as "CWM_File. But I cannot select "Create Universe" option. It seems to be grayed out.
I have tried importing the xml file into different Metadata Sources, like CWM Olap 1.0, Data Integrator etc but still the Create Univesre option is grayed out.
Am I doing anything wrong? Is it even possible to build a universe like this?
Please help.
Thanks in advance..

Hi,
Here's the XIR2 guide http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_universe_builder_en.pdf
and the XI3.1 guide http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_universe_builder_guide_en.pdf
This is very little use of Uni Builder, so you may want to work with Support engineer to get confirmation. (i.e. OSS ticket)
Regards,
H

Similar Messages

  • Building an XML file

    I'm trying to build an XML file in Java to persist data for an application between sessions. I'd like to build a structure like this
    <Files>
    <Entry>somefile.txt</Entry>
    <Entry>otherfile.txt</Entry>
    </Files>
    How can I do this using JDK 1.4? I've figured out how to generate it with attributes:
    <Files>
    <Entry entry=somefile.txt/>
    <Entry entry=otherfile.txt/>
    </Files>
    But that's not the way I need to do it. Can anyone make a suggestion?
    Thanks.

    You need to create Text nodes and append them to your Entry nodes. Say you have a Document, doc:
    Element files = doc.createElement("Files");
    doc.appendChild(files);
    Element Entry = doc.createElement("Entry");
    files.appendChild(entry);
    Text text = doc.createTextNode("somefile.txt");
    entry.appendChild(text);Output:
    <Files>
    <Entry>somefile.txt</Entry>
    </Files>
    Hope that helps.

  • How to build a xml file dynamically with given data.

    hi there
    i need to create a writer that can create a xml with some given data. what is the procedure of creating a xml file? if it is possible, please post some samples, thank you.

    I would reccomend JDOM, although it is not the only way(DOM is another), i have found it the easiest document model to work with. http://www.jdom.org
    the code is as easy as:
    Document doc = new Document();
    Element root = new Element( "element-name" );
    root.setAttribute( "id", "1234" );
    doc.setRootElement( root );
    etc etc

  • Building big XML file from scratch - Urgent

    Oracle 8.1.7.3 on windows NT platform
    What is the best way to generate a quiet big XML file from multiple tables ?
    I have information stored in many relational tables from which I need to generate a XML flat file either stored in a CLOB field or in a text file in a system directory. This XML file will be then used
    as an input to generate a report either in HTML using XSLT, or in a PDF file using apache-fop or in a MS Excel file using SoftArtisan ExcelWriter.
    My XML file has many levels in it structure, I mean that it is composed of one root element with 2 children, each children has a 3 children. One on these 3 children has 2 children and so on. Actually there are more or less 10 nested levels.
    To generate this XML file, I tried to use XSU for PL/SQL with the nested cursor() feature plus XSLT to transform the raw XML file to my requirements.
    But obviously there are some limitations using this method. Particularly, if the inner cursor returns an empty set I get exhausted resultset java error... A TAR confirmed that limitation.
    So I had to give up this method to use basic nested PL/SQL cursors. Each fetched row is then inserted into a table (varchar2) with a sequence number so that with a cursor like select xml_chunk from my_table order by sequence, I get the whole XML file that I save either in a flat file or in a CLOB (using append method).
    This method works fine, but it takes time and it's not flexible at all as I have to construct each XML tag. I guest this way of proceeding is not the more efficient...
    Using DOM method won't be better as I still need PL/SQL cursor to select each level of my XML structure and in addition I might for sure encounter a problem of memory.
    So what solutions would you suggest to generate this XML file. It must be quiet fast. The XML file can be up to 2Mo big. My system is actually a kind of on-the-fly reports generation. I mean that the XML file needs to be created with up-to-date data many times during the working hours !
    Quick answers or suggestions would be greatly appreciated. It's very urgent !!
    Thanks

    I looks like the best way is to using the SAX processing for your application? Do you know the DTD or XML schema of your output XML document?
    Would you send me the sample code for the method "to use XSU for PL/SQL with the nested cursor() feature plus XSLT to transform the raw XML file" to reproduce the problem?

  • Ant pre-build..xml file is giving error

    Hi
    Actually i'm trying to run a tutorial orderbooking on Jdev 10.1.3 (where in i'm using SOA 10.1.3.1. ) This tutorial is of BAM wherein it requires 127.orderbooking tutorial to be deployed normally. once , it got deployed successfully but in BPEL console there was error of wsdl in invoke activity.
    For the same i tried fixing the errorr , now it's pointing in pre-build.xml when i deployed it 2nd time. error is
    Basedir C:\bb\CreditRatingService does not exist .
    i want to know what has to be given for ant dir in prebuild.xml.
    kindly revert back
    regards
    Basedir C:\bb\CreditRatingService does not exist

    One word...make
    Edna the LudditeTwo words: make...s-u-c-k-s.
    Not really, just kidding. But I never liked the
    sensitivity to tabs, etc. Ant is far better, IMO.
    I sure like how file dependencies were more obvious with make. (Of course java just suffers from that without any build system.)
    And given that at least some programmers start out by using ant as a gestalt to build everything rather than providing functionality for building pieces (and then using those to do the build all) it complicates builds over time. It wasn't easy to do that with make at all.

  • XML file builder - how to embed Import information?!

    Hey Experts,
    I'm building a xml file and couldn't figure it out:
    1. How to embed this line
    *<IMPORTFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="KPMG_test_Import.xsd">*
    Because when I do this:
            Element root = doc.createElement("IMPORTFILE");
                doc.appendChild(root);the result is simply *<IMPORTFILE>*
    2.
    this code
                   DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
                Document doc = docBuilder.newDocument();result in:
    *<?xml version="1.0" encoding="UTF-8" standalone="no"?>*
    How can I ignore the standalone="no" (have only *<?xml version="1.0" encoding="UTF-8"?>*
    THANKS for any pointers!

    Hello,
    by default when you have a xml form on KM, if you click on it, the "Show Form" is opened, if you choose "Edit" on the context menu the "Edit Form" is opened.
    If you want to access any other forms of your project you must define on the XMLForms Renderer Settings, located on
    Systerm Administration > System Configuration > Knowledge Management > Content Management > User Interface > Settings > Resource Renderer Settings > XML Forms Renderer Settings
    There create a renderer set the XML Forms Transformation value to your "Edit Form B"
    then go to:
    Systerm Administration > System Configuration > Knowledge Management > Content Management > User Interface > Settings > Layout Set
    create a new Layout Set and set the Resource Renderer value to renderer you created.
    (btw easiest way to create resource renderers and layout set is duplicating an existing one)
    Finally, create an iView (I´d advise KM Navigation one for this case) to access your form using the layout set created
    yours,
    Rafael

  • Creating an XML File

    I'm using this code to build an XML file and to write it on a file:
        DBConnect(); //connection to an Access DB
        StringBuffer sql = new StringBuffer();
        sql.append("SELECT * FROM atleti ORDER BY id");
        try{
          rs = st.executeQuery(sql.toString());             
          Document doc = XMLTool.parse("myXMLFile.xml");   
          NodeList nl = doc.getElementsByTagName("giocatori");
          Node node = nl.item(0);
            //Node root = doc.createElement("giocatori");
          while(rs.next()){
            Node n = doc.createElement("giocatore");
            Node n2 = doc.createElement("id");
            Node t2 = doc.createTextNode(rs.getString("id"));
            n2.appendChild(t2);
            n.appendChild(n2);
            Node n4 = doc.createElement("cognome");
            Node t4 = doc.createTextNode(rs.getString("cognome"));
            n4.appendChild(t4);
            n.appendChild(n4);
            Node n3 = doc.createElement("nome");
            Node t3 = doc.createTextNode(rs.getString("Nome"));
            n3.appendChild(t3);
            n.appendChild(n3);
            Node n5 = doc.createElement("codicefiscale");
            Node t5 = doc.createTextNode(rs.getString("codicefiscale"));
            n5.appendChild(t5);
            n.appendChild(n5);
            Node n6 = doc.createElement("tesserasanitaria");
            Node t6 = doc.createTextNode(rs.getString("tesserasanitaria"));
            n6.appendChild(t6);
            n.appendChild(n6);
         Node n7 = doc.createElement("cartaidentita");
            Node t7 = doc.createTextNode(rs.getString("cartaidentita"));
            n7.appendChild(t7);
            n.appendChild(n7);
            Node n8 = doc.createElement("luogonascita");
            Node t8 = doc.createTextNode(rs.getString("luogonascita"));
            n8.appendChild(t8);
            n.appendChild(n8);
            Node n9 = doc.createElement("datanascita");
            Node t9 = doc.createTextNode(rs.getString("datanascita").substring(0,10));
            n9.appendChild(t9);
            n.appendChild(n9);
            Node n10 = doc.createElement("indirizzo");
           Node n11 = doc.createElement("residente");     
              Node t11 = doc.createTextNode(rs.getString("residente"));
              n11.appendChild(t11);
           n10.appendChild(n11);
           Node n12 = doc.createElement("via");     
              Node t12 = doc.createTextNode(rs.getString("indirizzo"));
              n12.appendChild(t12);
              n10.appendChild(n12);
           Node n13 = doc.createElement("cap");     
              Node t13 = doc.createTextNode(rs.getString("cap"));
              n13.appendChild(t13);
              n10.appendChild(n13);
         n.appendChild(n10);
            Node n14 = doc.createElement("telefono");
           Node n16 = doc.createElement("fisso");     
              Node t16 = doc.createTextNode(rs.getString("telefonofisso"));
              n16.appendChild(t16);
              n14.appendChild(n16);
           Node n15 = doc.createElement("cellulare");     
              Node t15 = doc.createTextNode(rs.getString("telefonocellulare"));
              n15.appendChild(t15);     
              n14.appendChild(n15);      
         n.appendChild(n14);
            Node n17 = doc.createElement("email");
            Node t17 = doc.createTextNode(rs.getString("email"));
            n17.appendChild(t17);
            n.appendChild(n17);
            Node n18 = doc.createElement("squadra");
           Node n19 = doc.createElement("categoria");     
              Node t19 = doc.createTextNode(" ");
              n19.appendChild(t19);
              n18.appendChild(n19);
           Node n20 = doc.createElement("numero");     
              Node t20 = doc.createTextNode("0");
              n20.appendChild(t20);     
              n18.appendChild(n20);      
         n.appendChild(n18);
            node.appendChild(n);
            //node.normalize();
          //System.out.println(node);
          FileWriter fw = new FileWriter("OutputFile.xml");
          fw.write(node.toString());
          fw.flush();
          fw.close();I have 2 problems:
    a) The output file is writed all on one line and I would like to have it indented so it will be more readable and "cool".
    b) I have this error "null Text data??" and I don't know its mind!
    Could anybody help me?

    hi,
    for a commercial grade app , u should rather
    have a reusable method.
      public static void createXfile(Document doc, String filePath)
         FileOutputStream fos =null;
         try{
              File f = new File(filePath);
              OutputFormat of = new OutputFormat("XML","ISO-8859-1",true);
              of.setIndent(1);
              of.setIndenting(true);
              fos = new FileOutputStream(f);
              XMLSerializer printer = new XMLSerializer(fos, of);
              printer.asDOMSerializer();
              printer.serialize(doc);
              fos.close();
         catch(Exception e){
              //u wont reach this place until u messup something
              // real bad
              Logger.log("XUtil----------"+e.getMessage(), Logger.ERROR);
       dont go for transformer just for printing DOM.
    HTH
    vasanth-ct

  • Buiding xml file using SAX parser of JAXP

    Please send me xml building using the sax parser.This is the urgent requirement ,iam not geeting how to solve this problem.so please anybody can help with one best example

    You don't build an XML file with a parser. A parser reads an XML file and converts it to some internal representation. Try reading this tutorial:
    http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/

  • Make a sort with ODI while generating XML File

    Hi all,
    I made a package whith several interfaces and a treatment.
    Each interface targets a table in my XML schema and the final treatment is a CreateXMLFile.
    Everything goes well, my XML file is generated :D
    Now I'd like to make a sort in an XML element. I know how to order the elements between them but can't find a way to sort a specific element. Excuse my poor english, I'm not really clear...
    My XML is built like this :
    <root>
    <questions>
    <question>
    <questionnumber>1</questionnumber>
    </question>
    <question>
    <questionnumber>2</questionnumber>
    </question>
    <questions>
    <root>
    So my problem is to make the questionnumber ordered.
    I tried to modify the IKM SQL Incremental Update to add a ORDER BY in the "Insert new rows" step.
    The generated code is executed with success... but in the end, my XML file is not sorted :S
    So first question, do you have an idea to be able to view the data in my XML schema tables ? This schema is stored in the memory engine and not in an external base. I ask that because when you try to execute the query "select * from XMLSchema.XMLTable" in the Operator, it appears you get the datas you had when the schema had been reversed. Idem when you try to view the datas in datastore. So first of all I'd like to do this control to be sure my order by is taken into account.
    Second question, do you know how the Odi XML driver builds the XML File with the command CreateXMLFile, because I think that my XML table is well sorted but that the CreateXMLFile doesn't repect this order. I checked the driver tutorial but couldn't find any help on that subject.
    So if anyone has got an idea to help me, I would appreciate a lot.
    Thanks,
    Thierry

    Still searching but without success

  • Best way to validate and xml file against a schema?

    As the subject states, I want to validate my xml file against a given schema....
    Currently my code looks like this:
    InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData)); // my xml file
    DOMParser parser = new DOMParser();
    parser.parse(ipSource);
    Document doc = parser.getDocument();
    I see that there is a setFeature method on DomParser.... but from what I read that doesnt support
    xml schema's, just DTD's. So what is the best way to validate with schema's?
    Any help would be appreciated

    This is the other way I tried doing it.... the problem with this way is I am building my xml file through DOM
    operations... and I haven't figured out how to add the schema line to the xml file through DOM manipulations.
    Has anyone done this bofore?
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(false);
         factory.setValidating(true);
         InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData));
         DocumentBuilder builder = factory.newDocumentBuilder();
         doc      = builder.parse(ipSource);
         return doc;
    catch(Throwable t)
         System.out.println("parse error: " +t);
    return doc;
    }

  • Changing an existing XML-File

    Hello everybody,
    is there any way to change an existing xml file (adding an xml element, for example), without copy the hole file?
    I've found kxml2 which can parse the xml files or build new xml files, but it doesn't support changing...
    Thank you
    Micha

    Pradeep thank you for your response. it was helpful. However, I also found the responses to both my questions.
    i. The null pointer exception was due to using a complex query I was using in the LOV query. I tried a simple query and that worked fine.
    ii. For modifying the user defined attributes one can consult the following forum post:
    OIM 11g - Change UDF Field Type form String to LOV
    Thanks

  • Updating .xml files through JAVA?

    Hi all,
      I am Krishna..
    I need to basically parse the content of the XML form and do a text replace. The Promotions that are created by the users will also reference images. These references are stored in the XMLforms (which are basically XML files).  When the Promotions are being 'submitted' the file path within the XMLForms should be updated with the target location.
    <b>Example:</b>
    Source Location where Promotion was created:
    /myForms/filesystem/Partner Promotion/user1_folder/
    Target Location where the Promotion is to be copied:
    /myForms/filesystem/Submitted Promotions/user1_folder/
    The Promotion XMLForm should be parsed for occurrences of  “/myForms/filesystem/Partner Promotion/user1_folder/” and replaced
    with “/myForms/filesystem/Submitted Promotions/user1_folder/”
    Problem is that, i am unable to build the XML file:
    try {
         String rpathString = "/documents/Test/promotions/Contacts.xml";
         com.sapportals.portal.security.usermanagement.IUser user =
              WPUMFactory.getUserFactory().getEP5User(request.getUser());
         IResourceContext ctxt = new ResourceContext(user);
         RID rid = RID.getRID(rpathString);
         IResource resource =
              ResourceFactory.getInstance().getResource(rid, ctxt);
         //read the xml file
            SAXBuilder builder = new SAXBuilder();
           <b>Document doc = builder.build(new File(resource.getName()));</b> <i>//getting exception at this line</i>
            Element root = doc.getRootElement();
            List list = root.getChildren("contact");
            Iterator iter = list.iterator();
            while(iter.hasNext()) {
              Element e = (Element)iter.next();
              String name = e.getChild("name").getText();
              response.write("<br>name:"+name);
              String address = e.getChild("address").getText();
              response.write(":::address:"+address);
    } catch (Exception e) {
       response.write(e.getLocalizedMessage());
       e.printStackTrace();
    I have also tried with
    new File("http://<server>:50000/irj/go/km/docs/documents/Test/promotions/Contacts.xml");
    and
    new File(resource.getAccessURI());
    .. but i don't get it.
    <b>PS:</b> i have added <b>jdom.jar</b> file in the build path
    Plz help . .. Thanking you in advance!
    Regards,
    Krish.

    Hi Krish,
    The <i>File</i> class doen't apply here.
    xmlforms are resources, represented by the class <i>IResource</i>.
    I am working with DOM, rather the SAX, but I guess same could work here.
    The idea is to get the <i>InputStream</i> of the resource, and use it in the builder:
    myResource.getUnfilteredContent().getInputStream().
    The writing should then be done by IResource's updateContent.
    Usefull javadoc:
    http://www.ajvic.es/irj/portalapps/javadocs/km/com/sapportals/wcm/repository/iresource.html
    Hope that helps,
    Yoav.
    EDIT:
    Corrected 'setContent' to 'updateContent'

  • Appending multiple xml files to single xml file using File channel?

    Hi Experts,
    I would like to get some pointers around xml files append.
    My sender application will send around 1000 messages through SOAP per day. But the target application needs single xml file formed by consolidation of all these 1000 files.
    I tried with txt files and the receiver file channel could append the txt files. However, since xml files allow only one root node, I am not able to achieve the requirement.
    Is there any option we can do to get the result?
    The target file location is UNIX folder. Do we need to create any shell script to run from the channel for appending the file?
    Do we need to use any XSLT mapping to strip the xml declaration tags and append the files. Once the single file is ready, using another file channel with XSLT mapping, insert a dummy root node and xml declaration tags to build an xml file?
    Any thoughts to get the result will be much appreciated.
    Thanks
    Ray..

    Hi,
    You have two options
    1)Using Receiver Sender File channel select mode append it does the job.
    Option 2:
    Using BPM we cann collect all messages per day and club them as a one message, in this case create Target data type root node occurance 1 to unbounded. so it cal hold multiples SOAP messages in only XML messages.
    search in sdn for BPM collect pattrersn,its very simple .
    Option 3:
    Create scheell script in OS level and write a logic to append all files planced in FTP.
    Regards,
    Raj

  • Build-impl.xml issue

    Had a working project but now the app will not deploy.
    I keep getting failures at the nbdeploy tag of the build-impl.xml file
    below:
    "<target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/>
    <target name="run-deploy" depends="jsCreatorDist">
    <nbdeploy debugmode="false" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}"/>
    </target>
    it says "Application WebDemo is already deployed on other targets."
    Anyone have any idea?

    I had the same problem when building and deploying a project with NetBeans IDE. As I found it is a problem about web.xml ant context.xml files. I modified context.xml as i added antiJARLocoking ="true". And I found multiple declarations for some servlets in web.xml and removed them.
    May be these help you.

  • "Build.xml file not exist"

    Hey Guys,
    i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But when i run ant command in the command prompt(C:\ANT>ant)will generate error state that "build.xml" file can't be found. Have i done any wrong thing here? Can anybody give a way that i can easily install apache ant on winows.
    It would be greatly appriciated if u can send me some advice to over come this problem.
    Best Regards
    Mohan

    build.xml is the default build file assumed by ant. You have to provide a build file to control what you expect from ant to do.

Maybe you are looking for