Multiple XML files for one application

I have an application I wrote for my company and they all use the same application, but depending on there department they need to access a different XML file on the server. How do i code it so that the user has to input a code the first time they open the application in there phone and then it will know what XML file to pull from. Any help in how to structure this would be great. I am using the HTTP service call.

Each logger can have its own file I think. Check the log4j documentation.

Similar Messages

  • Multiple xml files in one application?

    Is it possible to split up the xml code
    and let different session info objects
    use different xml files in one application?
    null

    Krasimir,
    Actually, my last reply might have been a little misleading. If you use ADF libraries then your task flows should be packaged correctly and should just work. I created a very simple test as follows:
    1. Created a new project. In adfc-config added two view activities, pageb1 and pageb2, and some navigation between them. Created the .jspx files for these view activities.
    2. Deployed my project as an ADF library and exposed the library in the resource palette (using a file system connection).
    3. Created a new application containing a project (project1). In project1, created a simple flow in adfc-config.xml with pagea1 and pagea2.
    4. Added my ADF library to project1.
    5. Now, by expanding the ADF library in the navigator (select Show Libraries from the dropdown menu on the Projects toolbar) I can see the adfc-config file in my library, and see that it is now under META-INF.
    6. I can run the adfc-config in my library and the adfc-config in my project - both work fine. I can also access any of the view activities in either flow by accessing the URL directly.
    Do these basic steps work for you? Let me know if any of it is not clear.
    Blaise

  • Multiple log4j.xml files for single application.

    Hi All,
    How to use multiple log4j.xml files for single application?
    I do have a pluggable application modules. ie, If I add a jar I will get some functionalities. Like that i do have many jars.
    Log4j.xml also will be present in that jar only. So if I add multiple jar files like this, I will get multiple log4j.xml files. What should I do?

    Each logger can have its own file I think. Check the log4j documentation.

  • Mutiple mapping XML files for one datasource

    One of our projects raised the following question. Any help would be greatly appreciated.
    "Can we have mutiple ToplinkMappings.xml files for one database? The reason we are looking at it is, our toplinkMappings.xml file size is keep growing in size(right now 2.2MB), we are getting into issues while comparing with the previous versions. The PVCS diff tool and beyond compare tools are not able to interpret the corresponding blocks of code on both the versions properly."
    Haiwei

    Hi Haiwei,
    Yes, you can have multiple deployment.xml files in a session. Take a look at Configuring Multiple Mapping Projects.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Loading multiple XML files into one XMLList

    I am working on an app where I will load a list of recipes.  Each recipe is an XML file.  I would have an XML file that lists the filenames that need to be loaded.  I am assuming in can use one HTTPService and loop through this list, and set the url and do myService.send() until all the xml files have been loaded and concatenated into one xml list. True?
    My main question here is how do I load each XML file and add it to the same XMLList?
    Assume each XML file's root tag is <recipe>.  I want to create an XMLList with the root  <recipes> with each <recipe> as a first child.
    Thanks.

    Why don't you use the Data centric workflows which will help you to deal with multiple XML files as AS objects? Something like this
    1. Create a HTTPService using Data menu -> Connect to HTTPService
    2. create a operation getRecipe and enter your URL example URL: http://myserver/recipe?name=recipename
    3. Use Configure Return Type to tell that this method returns a Recipe class
    4. Use DataBinding to bind the result of this to a DataGrid
    Call the following in a loop and
    recipeName = myRecipes+ // All of your recipe names, Recipe is a ArrayCollecition
    Recipe.setAt(i) = Svc1.getRecipe(recipeName);
    At the end you would have a Recipe[]
    This is one of the ways you could work instead of having a XMLListCollection and use e4x etc. to go through your collection.
    Let us know if this helps, or you are looking for something else.
    Thanks
    -Sunil

  • Using multiple XML files for drill-down

    I have an XML file which populates a graph showing months of the year.  I have 12 other XML files which have data for each day of the month running from 1 - 31.
    What I would like to do is use the 12 XML files to drill down for each of the months on my graph, but am struggling to get it to work.
    The XML that populates the graph is in the following format :
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item month="Jan" value="536102" />
         <item month="Feb" value="484570" />
         <item month="Mar" value="155840" />
    and the other XML files are in the following format:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item Timestamp="24/04/2010" Value="4178" />
         <item Timestamp="25/04/2010" Value="8075" />
         <item Timestamp="26/04/2010" Value="14611" />
    Would it be simpler to combine all the XML into one file?
    Sorry that this is a bit vague, but if you could help me that would be appreciated. Let me know if you require any more information.
    Thanks.

    You can only import a single XML file. You may have an xml file that has multiple occurances of data but it must be a single xml file.
    So you woudl have to find a way to combine all of those xml files into one then do the import.
    Paul

  • How to Merge multiple XML  files in one file ( Env: XML Publisher 5.6.2)

    All,
    I have recently started working on XML publisher and have developed 3 reports in last 2 days using XML Publisher and integrating them with Concurrent programs.
    This is a great tool.
    I have got another requirement, where i need to use xml file generated by multiple run of same report with various parameters and then merge all xml file to a single report. Developing the whole custom process will take very long time and sure will have bugs in it. Instead i was thinking to use xml file generated by Oracle report itself.
    Report "US Gross to net summary" generates xml output in standard output directory and then show output in PDF file. I have 7 such file generated for each payroll. I want to merge output of xml into a single xml so that i can create single report having data from all 7 xml files showing me All payroll output in a single report.
    Can someone please guide me , how can i read xml file data from the output directory of a seeded concurrent program and how to manipulate data in it.
    Thanks
    Ankur

    Hi Tim,
    Thanks for replying. I have looked for "PDFBookBinder class" in xml publisher user guide for ver 5.6.2. I didn't get any reference of this text. Can you please guide me to a tutorial/link where i can get more information about this class.
    Also, i originally thought of similar to your second logic, as my design basis. Oracle process generates the xml file in output directory which i can get. What i didn't get is how do i "pick them up and merge" using publisher. Also, is there way to do this merging process using pl/sql ? Can you please give little more information on your second approach.
    My original plan of action is that i will create a report set in which i will call oracle seeded report for all 7 payrolls in a sequential manner. Then using the child requests of the report set i will get to 7 xml files generated by seeded oracle process. Then the piece i am not sure of , i will use those 7 files to generate a single xml file having payroll name as tree top for each output. Once single xml is ready, i can easily design a template and register the process to generate output as Excel.This process will not require me to actually change any data or do any calculation. It will only reformatting the feilds we see and abiity to see all 7 payroll at one time rather then entering these numbers manually into an excel to do analysis.
    Please provide your feedback, if you think above plan is not feasible or need corrections.
    Best Regards,
    Ankur

  • Combining Multiple XML Files into One File

    Hey Everyone,
    So I am creating a program that takes in a bunch of arrays and stores them into a single xml file. I am finding out that my lag time to add these arrays to an xml file is getting worse with each array I put into it. I am placing over 5000 arrays into this file. This isn't working how I wanted it to so I have decided I will have to make multiple arrays to be able to obtain all of my arrays without having to sit here all day. I would like to have a VI that will take all of these xml files and put them together into one xml file. Does anyone have any ideas how this could be done?
    Thanks,
    Dustin

    We need to set a few groundrules for your data:
    1. XML, maybe or maybe not LV schema
    2. You will be generating multiple tests, in your example file it is always a 2D array with 2 rows and 1 column, is this for real or just an artifact of this example.  I was suspecting that you would have multiple length arrays.
    3.  What is the timescale of your data taking?  If I am doing a relatively short, easy to repeat test, I take my chances with failures and gather all the data and write it at the end.  If it is a long, difficult measurement I tend to write in intervals (not necessarily every test, but typically every 5-10 minutes).
    If your data is fixed size, like the example file, you can append your individual arrays into one large 2D array in a couple of different ways and write the single array to the XML file.  This is more compact.  If it is not the same size, I was suggesting that you append only the new XML text to the end of the file as you go along.  At the end you finish up by writing the closing tag.  If there is a problem before that, the XML file is not readable, but easily fixed by simply adding the closing tag.  You can even get fancy by keeping track of the offset of the start of the closing tag and start overwriting the new XML+close tag at that point.  This means the file is readable even during the intermediate steps, but you are not writing the whole thing.
    I can help with an example or two once you specify the data requirements a little more.

  • Efficient way of searching multiple xml files for multiple entries

    As I�m quite new to using xml in java I can't figure out how to solve my problem.
    I've got about 20 xml files, each about 500-1000kB big. each files contains about 500 questions, each with a unique ID.
    A user had to be capable of entering any number of ',' separated id's, and the program needs to show the user the questions.
    Using a SQL server this would be easy, but in this situation I can't. As this had to be a small program I can't add a 10MB jar file either, nor can I ask the users to install an additional program.
    Creating a brute search will be easy, but searching 20MB of xml files multiple times will be hard even for a modern PC.
    So my question is: What will be the most efficient way of searching these files?
    Hope that someone will be kind enough to respond :)
    Rick

    I'd still go with a database. There are databases that are significantly more light-weight than MS SQL Server.
    More concretely there are databases that run completely in memory. HSQLDB is one, Java DB (formerly Derby) is another one.
    I'd parse the XML files once, add them to the database and query from there later on.
    If even that is to complicated for you, then you could simply parse the XML files once and put the Questions into a HashMap with the ID as the key.

  • Generate multiple XML files from one Invoices file in AR Selected Invoices

    I have converted our Oracle EBS 11i Selected Invoice RAXINV.rdf to XML and created a template for XML Bursting. I'm bursting fine at the:
    /ZRAXINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_CF_NO/G_CF_NO. My question is since I'm writing out my pdf output invoices to the filesystem on Sharepoint; I also need to archive the XML part of each invoice broken down by the same group as .//LIST_G_CF_NO/G_CF_NO. When I convert the rdf to XML it produces one XML file from which I created the templates.
    My requirement is to archive both the individual invoices from the templates and the corresponding XML pieces on Sharepoint so that we will be able to search and link the xml to the pdf written out to the filesystem on Sharepoint.
    Any idea how should go about this requirement will be much appreciated.
    Thanks,
    Leo

    So how does it take this file
    file>
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    </file>
    and create these three different one?
    1.)
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    2.)
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    3.)
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    Is it not going to just grab each element after the file tag? I'm just confused about that.

  • How to import multiple XML files into one inDesign document without copy/paste ?

    I use InDesign CS6, and I have several XML files with the same structure. Only the data are different.
    I created  an Indesign layout with some tagged placeholder frames on merge mode, for automated layout.
    Today for each XML file I have to create a new InDesign document to import the XML. Everything works fine. Then in order to have all Indesign layouts one after the other into a single Indesign layout, I have to use the copy/paste function.
    I mean for example, copy the contents of all documents to the first one. Or add pages of other documents to the first one, then delete spaces between each page.
    So my question is the following:
    How to repeat this process without copy/paste function, knowing that the
    number of XML files could be unknown.
    Thank you very much for your answer.

    Yes, effectively I would like to catalogue the files into one collection so i can save as one PDF and Print as one.:)
    I know I could save each AI as a pdf them then merge the pdf's together in acrobat, but I have nearly 100 files so would feel more comfortable seeing them all together before print / saving.
    My concern is that if I insert them in Ai, will the file resolution reduce? and will the ai still be editable and would it update the indesign file?
    Thanks for the quick reply

  • Multiple audio files for one flash video

    My company is developing a presentation software program that
    is flashed-based. We are developing a series of videos that will be
    converted to flash video. We will also be recording multiple audio
    tracks for different languages that we want to swap out and sync to
    the video (like the different audio language tracks on a DVD). Does
    anyone know if you can encode the video and audio to seperate
    tracks and then swap out the audio with another and still synch it
    to the video?
    We want to try and avoid encoding video for all the language
    tracks to save space. If we could have one video file and then
    multiple audio files that can be synched with the video file,
    rather than having to encode video and audio for each language,
    this would save a lot of room. Can anyone think of a way we could
    accomplish this using flash and flash video?

    nope, Keynote doesn't have "triggers" though I figure this has to be on Apple's radar as it's been brought up every time a new version comes out.
    I suppose one work around would be to make a slide for each sound, and have the sound play when you go to that slide. Then make your table a series of buttons that go to each "sound slide" (you can make link buttons, just not triggers). It would give you the effect of clicking to play the sound, it's just that instead, Keynote would be jumping to a slide and playing a sound. All the slides would LOOK the same, and you wouldn't use transitions between them. The effect would get you what you want, it just takes longer to build.

  • Multiple configuration files in one application in struts using jDeveloper

    I am using Jdeveloper 9.0.3 using this i tried to create two struts-config.xml file with different names and configured them in the web.xml files( struts 1.1 feature)
    as
    <init-param>
                   <param-name>config</param-name>
                   <param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-reg.xml</param-value>
              </init-param>
    but i am getting parsing error for this. Please tell me how it can be done in Jdeveloper

    I have been trying to do something similar, but I keep receiving the following exception:
    java.lang.NoSuchFieldError: appConfig
    at oracle.jbo.html.struts11.BC4JRequestProcessor.processContent(BC4JRequestProcessor.java:148)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:233)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    My web.xml looks like:
    <servlet>
    <servlet-name>bc4jaction</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
    </init-param>
    <init-param>
    <param-name>BC4JDefinition</param-name>
    <param-value>Struts</param-value>
    </init-param>
    <!--<init-param>-->
    <!-- <param-name>config</param-name>-->
    <!-- <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>-->
    <!--</init-param>-->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/documentservices</param-name>
    <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

  • Multiple output files for one report

    I would like to dump out multiple files (PDF and delimited) from one single report refresh.
    I'm using rwcli60. How do I do this ?

    Hi
    Thanks for the information. Its nice to know.
    However, if I understand it correctly, it is basically for directing the same report output to different targets.
    For me, it may be the same report, but the output will be different based on some logic I have in the before report trigger. For me it is like running the report 3 times.
    Example - From parameter screen - one parameter with 4 options
    1. Top 10 students in IT
    2. Top 10 students in Fin
    3. Top 10 students in Acc
    4. All
    The output of these report may come from the same table. But the criteria is set in the lexical parameter in the before report trigger.
    If user selects all, I want the output for the all the first 3 options. I am not worried about the output being emailed. This is equivalent to running the report 3 times for the first, second & third option respectively.
    Any help helps:).

  • How to Set Up Multiple Muse Files for One Site

    I'm creating a massive web site, currently over 900 pages, heavy on images and file downloads. Currently the file size is 700 MB and growing. Muse starting moving PAINFULLY slow (just pasting a text box is taking over 15 minutes, all while the rainbow ball spins), but with smaller muse files everything works great. Due to the slow down, I want to be able to break up the file into sections but not sure how to export and upload the site to work properly.
    Is it as simple as deleting the extra sitemaps/index pages?
    If needed, working on iMac, OSX 10.9.2; 2.7 GHz Intel Core i5; 8 GB ram.
    Thank you in advance for any help.

    Hi Andria,
    Please refer to the reply by Zak in this post, Re: How large of a site can muse handle?
    You can use the above thread for any follow up questions that you might have.
    - Abhishek Maurya

Maybe you are looking for