Best approach to create Package Structure and .content.xml

I am aware that we have a schem.xsd for generic package content.xml creation and neither do vault.xml and other associated xml files in the META-INF folder of the package.
I want to know if there is some recommended approach to build the package and xml files, specifically content.xml programmatically on the file system. I know that we can use package manager (API not the GUI/screen) but that comes into picture when the folder structure and xmls files are created. I am interested to know a standard procedure of acceptable procedures to build the structure. I have seen folks use JDom/SAX etc to build this and even velocity to try it out using templates but that looks largely as a workaround. Can anyone help with some inputs on this?

We've been successful at using ANT as a Build tool to run XSLT 2.0 using the Saxon XSL processor.  We have processed both CSV and XML files into packages.  This started out pretty simply, but grew more complex than initially thought.  There are a lot of subtlties that can be overlooked in the package format.  Also if your filters aren't right it will happily delete a lot of data.  Thankfully it appears uninstalling can recover these most times, but I'd recommend testing packages on a throw away instance.
I've posted an example Ant + XSL that goes from CSV > XML > Many XML Files > CRX Package Zip: https://github.com/odu/crx-package-xsl-example.  There is also some info on some of the complexities of a package mentioned on that page that may be helpful, even if Ant / XSL isn't your route.
Can you share more about your use for building a package, what format is the source data in, etc?  This example is really only useful for batch loading.

Similar Messages

  • Best Approach to create LDAP structure in OID

    We are currently in the process to create LDAP schema and structure in OID 11g. This schema and structure in OID will be then used by Oracle products such as OIM, OES, OAM and others to perform user authentication, coarse grained authorization, fine grained authorizaiton, attribute mappings, etc.
    I wanted to know if there is any Best Practices approach/guidelines we can use to define this schema and structure now so we don't encounter any obstacles and limitations while using OIM, OAM and OES.
    Will appreciate quick response.
    Thanks!

    I understand that the LDAP structure design depends on the business goals and requirements and we are defnitely building the schema in that lines. But the thing we want to make sure is how flexible are the products like OIM, OAM and OES to provide user authentication(if the user is deep down in the tree), authorization (if the user needs to be authorized to services having attributes deep down in the tree), mapping complex relationships and permissions in conjunction with OID.
    I think the other way of asking this question would be what we should take into consideration while designing the LDAP structure in OID as the backend LDAP store and what things we should leave whille designing LDAP structure in OID that could be considered while designing the authentication, authorization process in OIM, OAM and OES.
    Our goal is to keep the LDAP structure simple and flexible but at the sametime use OAM, OES and OIM at their best capabilities to serve our purpose without lot of customizations required.
    Thanks!

  • Problem creating package structure and where is my .class file??????

    Working on Tomcat I have my folder structure like this...
    webapps
    ->app_root
    ->WEB-INF
    ->classes
    ->src
    -> .java files
    ->META_INF
    In the command prompt i compile using this
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    and in my java files I have the package structure mentioned as
    package com.acme;
    after compiling i expected this to happen for me.
    webapps
    ->app_root
    ->WEB-INF
    ->classes (in WEB-INF)
    ->com (in classes)
    ->acme (in com)
    -> .class files (in acme)
    ->src (in WEB-INF)
    -> .java files(In src)
    ->META_INF
    The funiest part for me started he when i compiled the file
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\one.java
    It compiled successfully without giving me any error but no package structure was created and THERE IS NO one.class file anywhere in my system.....Then how did it compile my file and where is the .class file.
    I think am worng somewhere but unable to locate it.
    Can somebody pull me out of thiss stuf??? Need to do it fast.
    Thanx.

    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    The command you posted does not have a source file specification. You are telling the compiler to put the .class files in src\*.java but you are not specifying any .java files. It looks like your command should be javac -d . src\*.java

  • Best Approach to create Security / Authorization Schema for an APEX Apps

    Hi,
    I am planning to create a Security / Authorization Schema for an APEX Application.
    Just want to know what is the best approach to create the security feature in APEX, so that it should be re-used in other APEXApplications too..
    I am looking for following features...
    1. users LOGIN and then user's name is stored in APEX_USER...
    2. Based on the user, I want to restrict the Application on following levels.
    - TABS
    - TABS - Page1 (Report
    - Page2 (Form)
    - Page2 (Region1)
    - Page2 (Region1, Button1)
    - Page2 (Region1, Items,....)
    AND so on.....basically depending on user....he will have access to certain TABS, Pages, Regions, Buttons, Items...
    I know, we have to create the Authorization Schema for this and then attach these Authorization Schema to the different Level we want.
    My Question is, what should be the TABLE structure to capture these info for each user...where we will say...this USER will have following access...AND then we create Authorization Schema from this table...
    Also what should be the FRONT end, we should have to enter these detail...
    SO, wondering, lot of people may already have implemented this feature....so if guys can provide the BEST Approach (re-usable for other APEX Application)....that will be really nice..
    Thanks,
    Deepak

    Hi Raghu,
    thanks for the detial info.
    so that means..I should have 2 table...
    master table (2 columns - username, password)
            username    password
       user1       xxxx
       user2       xxxx2nd table (2 columns - username, chq_disp_option)
    - In this table, we don't have Y/N Flag you mentioned..
    - If we have to enter all the regions/tabs/pages in the Applications here or just those regions/tabs/pages for which are conditionally diaplayed.
    - so that means in all the Pages/Regions/tabs/items in the entire Application, we have to call the Conditionally display..
    - suppose we have 3 tabs, 5 pages, 6 regions, 15 items..that means in this table we have to enter (3+5+6+15) = 29 records for each individual users..
              username    chq_disp_option
       user1       re_region1
       user1       re_region2
       user1       tb_main
       user1       Page1
       user1       Page5
       ----        ----     - how you are defining unique name for Regions..i mean in static ID or the Title
    - is the unique name for tab & item is same as the TAB_NAME (T_HOME) & Item Name (P1_ITEM1) or you are defining somewhere else.
    Thanks,
    Deepak

  • Best approach to creating a TOC for product catalog using data merge

    What is the best approach for creating a TOC for a product catalog (over 1,000 items) using Data Merge?
    The TOC would contain the product Categories. 
    So for example, Category A items could go from pages 1 - 3, and Category B items would start at pg 4, but if new items were added to Category A, then Category B may start from pg 6. 
    From the Data Source, there are 5 Data Fields I've chosen to be displayed.  If this were a regular digital print document, I could use the Paragraph Style method for creating a TOC, but if I make any one of the Data Fields a certain Paragraph Style and use that for the TOC, it'll populate the TOC with that Data Field for all the items. 
    Any suggestions?

    Peter Spier wrote:
    TOC is not interactive in the ID file, though it can be in a PDF that you export (there's a checkbox to create PDF bookmarks). You might want to think about using Cross-references (rather than hyperlinks, I think) to build the TOC. You have to do it manually, but once done it should maintain itself, whereas a TOC is built automatically, but must be regenerated after you edit the doc.
    One caveat witih TOCs created from cross-references: Although changing the text of an x-ref source paragraph (for example from "Patatas and tamatas" to "Tomatoes and Potatoes,"and/or when the source paragraph flows to the next or previous page) update automatically or when invoking "Update cross-references," MOVING a cross-reference source paragraph to a location before or after another source paragraph, does not change their sequence in the pseudo-TOC. You'll need to manually move the reference in the pseudo-TOC to the correct position in the sequence of cross-refs. So, put the task of checking the order of x-refs in the pseudo-TOC on your before hand-off check list.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • What is the best way to create E-Flyers and insert to Microsoft Outlook??

    What is the best way to create E-Flyers and insert to Microsoft Outlook??

    http://kb.mailchimp.com/article/how-to-code-html-emails
    Once created, the HTML document cab be placed in the Stationery folder.
    On a PC it's here.
    "C:\Program Files\Common Files\Microsoft Shared\Stationery"

  • ORACLE_HOME Directory Structure and Content description

    Can anyone show me the Oracle document or website which lists the
    ORACLE_HOME Directory Structure and Content description for windows platform.
    Oracle 10g R2.
    Thank you,
    Smith

    http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/ofa.htm#CBBEDHEB

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Best approach to creating layouts and design pages for windows store 8.1 applications?

    Hi Everybody,
    Actually I want to design pages for windows store 8.1 applications which are compatible for all windows phone with different resolutions. I want best approach for designing pages, currently I am using * type divisions and designing the pages rather than
    that is there any best approach?

    Here is another some helpful docs:
    Laying out an app page
    Laying out your UI (HTML)
    Laying out your UI (XAML)
    Navigation design patterns
    Choosing a layout (HTML)
    Command design patterns
    Guidelines for advertising
    Guidelines for multiple windows
    Guidelines for projection manager
    Guidelines for resizing windows to tall and narrow layouts
    Guidelines for scaling to pixel density
    Guidelines for window sizes and scaling to screens
    Hope helps.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Best approach -To create RTF template having more than 50 tables.

    Hi All,
    Need your help.I am new to BI publisher. Currently we are using BIP 11g.
    I want to develop.rtf template having lots of layout and images.
    Data is coming from different tables (example : pulling from around 40 tables). When i tried to pull data from 5 tables by joining tables. It takes more time using data model in BI publisher 11g saved in xml and used in word doc.
    Could you please suggest best approach  weather i need to develop .rtf template via data model or query to generate a report.
    Also please suggest / guide me .
    Regards & Thanks in advance.

    it's very specific requirements
    first of all it's relate to logic behind
    as example 50 tables are related ? or 50 independent tables ? or may be 5 related and another independent ?
    based on relation of tables you create sql statement(s)
    how many sql statement(s) you'll have lead to identify ways to get data, as example, by package or trigger etc
    kim size of resulting select statement(s)
    if size say 1mb it's must be fast to get report but for 1000mb it can consume many time
    also kim what time it's not only to select data but to merge data and template
    looks like experimenting and knowing full logic of report is only ways to get needed output in projection of data and time

  • Best approach to create a security environment in Java

    I need to create a desktop application that will run third party code, and I need to avoid the third party code from export by any way (web, clipboard, file io) informations from the application.
    Somethig like:
    public class MyClass {
        private String protectedData;
        public void doThirdPartyTask() {
            String unprotedtedData = unprotect(protectedData);
            ThirdPartyClass.doTask(unprotectedData);
        private String unprotect(String data) {
    class ThirdPartyClass {
        public static void doTask(String unprotectedData) {
            // Do task using unprotected data.
            // Malicious code may try to externalize the data.
    }I'm reading about SecurityManager and AccessControler, but I'm still not sure what's the best approach to handle this.
    What should I read about to do this implementation?

    Whilst code without any permissions (as supplied through the ProtectionDomain by the class' ClassLoader) cannot access network, file and system clipboard, this does not mean it is entirely isolated.
    Even modern cryptographic systems are surprisingly vulnerable to side-channel attacks.
    Where an untrusted agent has access to sensitive data, it isn't very feasible to stop any escape of that data. Sure, you can block off overt posting of the data, but you cannot reasonably block off all covert channels.
    Steganographic techniques are a particularly obvious way to covertly send sensitive data out amongst intended publications.

  • What is the best practice for creating master pages and styles with translated text?

    I format translated text all the time for my company. I want to create a set of master pages and styles for each language and then import those styles into future translated documents. That way, the formatting can be done quickly and easily.
    What are the best practices for doing this? As a company this has been tried in the past, but without success. I'd like to know what other people are doing in this regard.
    Thank you!

    I create a master template that is usually void of content, with the exception I define as many of the paragraph styles I believe can/will be used with examples of their use in the body of the document--a style guide for that client. When beginning a new document for that client, I import those styles from the paragraph styles panel.
    Exception to this is when in a rush I begin documentation first, then begin new work. Then in the new work, I still pull in those defined paragraph and or object styles via their panels into the new work.
    There are times I need new styles. If they have broader applicability than a one-off instance or publication, then I open the style template for that client and import that style(s) from the publication containing the new style(s) and create example paragraphs and usage instructions.
    Take care, Mike

  • Best way to create a Template, and create "replace" where imported items ..

    I would look to create a Template where I have photos that will be dropped into precreated "replace" areas and once imported, they will automatically be resized at a predetermined size I have chosen. I also want to preset all alignemnts: align top, distribute space horizontally. I am looking for the best way to create a drag & drop Template. I will make sure all images are the same size before importing them into Motion 2, if this helps.
    As alwways thank you for reading and reply to my post,
    Sebastian

    sebastian:
    first thing you could look for is the canned motion "replace me" graphics. they're grey with numbers in circles (1, 2, 3, etc) kinda like you'd see in an old movie countdown. they shoudl be buried somewhere in the Motion graphics content libraries. i'd use these as your placeholder graphics, name them "replace me #1" in the layer view.
    second, if the sizing is important, you might have to place a pre-sized rectangular mask on each of the replacement objects. otherwise, when you drag an object onto layer object to replace it, the object will be resized to match the incoming object's aspect ratio and ruin your alignments.
    PowerMac G5 2.5GHz   Mac OS X (10.4.5)  

  • Stepwise approach for creating Organization Structure in SRM

    Hi Experts,
    Pls do share how we go ahead about creating Organisation Structure in SRM.
    I want to get following things clear:
    1.Once all the components like company codes, purchasing org, purchasing grps, users have been created.... How do we start with creating org structure....... which element in org str  hierarchy we create first.... n so on...
    2. In a organisation structure, we do have diff companies, n company has departments.... and department has users...... I want to know how do Purchasing groups and purchasing org we create get assigned to this.
    3. What is the significance of Department attribute?? Is it related to MRP Controller of MM.
    -Dhananjay

    Hi,
    Pl refer http://help.sap.com/saphelp_srm50/helpdata/en/b4/9de8cc7d4b11d2b423006094b92d37/content.htm for details.
    Regards,
    Nikhil

  • What is the Best Approach for System Defined Fields and Default values

    Hi ,
    Please let me know that what can be the best approach for providing a Default value for the System defined fields when creating a User and How can we hide the System defined fields at the time of User creation

    You cannot provide default values for any attributes defined in the FormMetaData.xml file. You can only provide default values for fields defined in the User Defined Fields and supply a default value.
    You can using entity adapters to populate some of the values, but you must supply an Organization because there is an entity adapter that you cannot modify that verifies the organization name.
    -Kevin

Maybe you are looking for

  • HELP: I just need to import my photos!

    I just got my MacBook a couple weeks ago and am trying to import all my old photos to iPhoto. I have all my photos organized in folders on a couple CDs. But when I try to "Import" (through the iPhoto menu) or drag-and-drop the photos into iPhoto, I g

  • Scheduled delivery date according to customer calendar

    hi all, i maintained a customer calendar with only friday as work day, and assigned it to customer in uploading point in customer master data. when creating sales order, the system checks the customer calendar with the date proposal from sales order

  • Hyperlink not working properly in FlashPayer

    1. Does anyone know how to keep the hyperlink in FlashPayer? 2. How to select the target windows? New Windows (_blank), current frame, parent frame?

  • Better keep on using Oracle or the new PostgreSQL?

    Hi, I hope this is the right Oracle Forum for my question. In the the company I work in, we've been using Oracle for many years. For a new project the company would like to use the open source PostgreSQL (that I've never used it). For going on using

  • Simple date range logic

    how to find that my date range not falls in between the specified date ranges, is there any function module for that..         A                 B                                     C  <---- > <---- > <---- >         Myrange