Extract and save xml to file system nodes

Hi all

I'm looking for some great ideas for how best to extract a complete xml file xml nodes and save each in a path specified in the file system, by incremented for each file... file name File1, 2, 3, 4.

I have a process in workbench that takes an xml as input file (XML full below). The complete solution, I'll have an unknown number of child nodes to record.

Full XML file with two records. Is in a process variable "xmlComplete" - type = xml:

==================

< archiveIndexRecords >
< indexRec >
< i1 > 7173 < / i1 >
< i2 > 1405781111 < / i2 >
< i3 > 71709999999 < / i3 >
< / indexRec >
< indexRec >
< i1 > 6226 < / i1 >
< i2 > 1405782222 < / i2 >
< i3 > 71708888888 < / i3 >
< / indexRec >
< / archiveIndexRecords >

You want to save each book of the child (< indexRec >) on the file system. Lets say C:\temp\records\file1.xml (..) (2 xml etc.) and with a content as.

< indexRec >
< i1 > 7173 < / i1 >
< i2 > 1405781111 < / i2 >
< i3 > 71709999999 < / i3 >
< / indexRec >

...

What type of solution would you advice? A script executed with loop or a loop of setValue steps?

Hope for the grand entrance. do not hesitate to ask for more information if needed, thank you

Yours,

Thomas Groenbaek

Hello

You need create a loop in your process on Workbench. First count nodes and assign a variable of integer type.

/process_data/@number = count(/process_data/xmlComplete/archiveIndexRecords/indexRec)

Then you need to get the data from the first node to write to the disk.

/ process_data/FirstNode = / process_data/xmlComplete/archiveIndexRecords/indexRec [number (/process_data/@i)] (I did another variable of integer type that is 1 as default.)

When you get the data from the first node set a document variable and write down on the disc. Then add 1 to the variable i and control it with the number variable (number of nodes). Decide for the next record or not.

You can find an example of how creating loops in below link.

http://muratkuru.com.tr/?p=106

Murat

www.muratkuru.com.TR

Tags: Adobe LiveCycle

Similar Questions

  • How to read the data of BLOB and save to the file system

    Hi friends.

    I have called DEMO table there image stored as a BLOB. now my requirement is to know how to read the data of BLOB and saved in the file system. is there a procedure
    to read the blob object and stored in the file system. pls suggest me with an example.
    Thank you

    HI - don't know what version you have, but have a read through this:

    http://www.Oracle-base.com/articles/9i/ExportBlob9i.php

    Hoek link is to import the blobs in the db, it is export, to a file.

  • Blob file extraction and storage in the file system

    To reduce the size of the database, I want to launch a program to run submit a page that contains a control file download, which will extract the BLOB file in Pb and store it in the operating system.

    Any suggestions on how I can accomplish this?

    Karthik,
    The thread of the forum is to have downloaded blob by using the browser and do not do has the server OS.

    And the second link (the only SQL) uses a library based on java called PLSQL OS COMMAND. It comes with a lot of features to fetch/modify/set file system files, run the script and return the output script and could be recommended for someone who makes those extensively. It would probably be an overdose for this purpose (and in addition need to java and grants to users and directories privileges).

  • What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    Hi fcrawford,

    You can use Acrobat Pro 11 or Std to accomplish this.

    Please visit: http://acrobatusers.com/tutorials/extracting-pages

    Kind regards

    Rave

  • Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi Eli Marto,

    I'm sorry, but it is not possible to extract text from a PDF file using the player.

    It can be done using Adobe Acrobat.

    Ref: export the comments AND highlighted text?

    Kind regards

    Ana Maria

  • Extract and save all the channels of the PXI-5105 with 4 M of edge detection... Help!

    Dear collegaues!

    Please help me to improve my request, exhibit attached and sorry for my English.

    So my task is to extract and save all the channels (eight) of the PXI-5105 with 4 M of detection of peaks and sample rate 4 M with loop 1 sec...

    Entered all my channels are wiring detectors NaI with 0, 5... 1 microsec pulse (really) width and 0 kHz at not more than 40 kHz freq.

    Why I chose the registration of 4 M and the sampling frequency of 4 M namely? Answer is that I tested previously PXI-5105 40 kHz generator and pulse width 0.5 microsec. It works great and detection of peaks indicate 40000 pulses/s for me. If I set lower than 4M record and sample rate of 4 M, it is without work. In my honest opinion record 4 M and the frequency of sampling of 4 M are parameters very min.

    In the detection of peaks time present only 6 working channels... When I connected to diagram more 6 "detector.vi peak" - I see the error "...". out of memory... ».

    Advise me please, what needs to be done to it, it's all working well.


  • HP7520: How to scan 2 pages with the automatic document feeder and save to a file?

    How can I scan 2 pages with the automatic document feeder and save to a file?  (Right now, it happens that 2 separate files)

    I have a HP7520, & again, I wish scan 2 pages into a single jpeg file.

    Thank you

    Well, in general JPEG format does not support several concept as a document page. Thus, each image in the JPEG file is saved in a single file. If you are considering of reduction of 2 images in 1 paper size (example: A4), you may need some image editor to do

    If you are looking for a mulit-page image format, TIFF can be a format suitable to use.

    https://en.Wikipedia.org/wiki/TIFF

  • Change .txt and write to the file system

    Hello!

    I created composite simple soa with BPEL process that read the .txt file and write to the file system.

    txt file have this structure:

    < ns1:Record - 1 >

    < ns1:Field - > 123 ABC < / ns1:Field - Somename>

    < / ns1:Record - 1 >

    < ns1:Record - 1 >

    < ns1:Field - unnom > 34 < / ns1:Field - Somename>

    < / ns1:Record - 1 >

    . . .

    < ns1:Record - n >

    < ns1:Field - unnom > 432 < / ns1:Field - Somename>

    < / ns1:Record - n >


    For example the input file are < ns1:Record - 1 > appears twice and < ns1:Record - 2 > appears three times in the file.

    In the output file, I want that < ns1:Record - 1 > occurs three times and < ns1:Record - 2 > occurs four times - more initial registration amount 1

    How is it possible to do? Thank you.

    Hello

    Good to know that your problem is solved.

    Your solution to the problem (copy methods and insertAfter bpel) seems to be very well and works as planned including the edge cases. Rather than use the counters, you could use the "count" in clause () method in .

    (Ex: $Invoke1_Write_InputVariable.body / ns3:Record - 1 [count($InputVariable.body/ns3:Record-1)])

    The snippet of Java code that you plan to use works very well when the records are sorted (ascending). You could do the same thing in bpel code too, but I prefer to implement the same using the method described above.

    Hope that my updates have been useful for you.

    See you soon.

  • I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    If the encoding is ASCII? Laughing out loud

    Be well...

  • Image: poster of local disk, download server and display the server file system

    Hello

    I use jdev 11.1.2.4.0...

    The requirement is that users want to upload images to their local drive for the drive on the server and they would like display of server disk images later.

    We do not want to save the images in the database. I'm not sure what should be the solution; However, I intend to...

    1 create a table to keep information from images - image_id, image_location (server drive), image_filename

    2. create a page where users can enter image information and specific file on a local disk name (I think I'll use inputFile component) and provide the Preview button to display an image on the screen before saving. To record data is to save the information in the database and copy an image file on the disk on server (the location for image files is predefined.)

    3. create another page where users can browse the database information and display an image for a selected record getting from the server.

    I need suggestions on...

    1. how to display an image on the page of the local drive?

    2. how to copy a file on a local disk to a server?

    3. how to display an image on the page of the drive on the server?

    Thank you.

    NAT

    See:

    http://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-1/

    http://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    http://tompeez.WordPress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-3/

    When Timo records the images in the database, you save it in the file system (examples on how to do this Java are available much if you just Google for it). Similar to Timo you then use the tag image to display pictures. The difference is that you can directly add the URL of the database table.

    The advantage of using a database to host images, it's that you're not although dependent on files server structures

    Frank

  • Rescue and Recovery backup not file system - without error message

    I use, since 1985 the first IBM, Lenovo then. I was very happy, my next Lenovo will be bought next spring.

    But I'm just very disappointed. Daily tracks of rescue and recovery on the local disk, which later are copied to a backup drive.

    The program has never shown an error on the screen and still run perfectly-, I thought!

    A few days ago, I got a Windows error for the first time. There are a lot of missing files.
    I restored the system on the R & R and reboted. But cannot start.
    With a boot disk, I booted the system and could now see that all the Windows directory was empty!

    Unfortunately, I can not in R & R files see what files and directories contain a backup? Or can you?

    Question 1:

    So I would like to know how if someone can enlighten me.

    Then I started to investigate on what had happened. In c:-Library SWSHARE I found some files that I see is connected to R & R.
    In the engine.log file, I see R & R has written a large number of error lines, of which a part is reproduced below. File dates to 2011 and there are errors all the way

    Question 2:
    Why the program not onscreen when R & R run display errors, so that the user knows there are errors?

    Now I'm sitting at the bottom with a long nose, after 2 days and nights, trying to find a solution and restored the system several times and do not know how the file system works will come back on my PC so normally again.

    Be more happy if someone can tell me how to solve this problem.

    Here is a selection of error lines:

    Thu 17 Oct 08:41:59 ENGINE 2013: failed to send an IOCTL_FFDRIVER_ENCRYPT_OFF
    Thu 17 Oct 08:43:38 engine 2013: br_funcs.exe - version is '04.17.20a.00 '.
    Thu 17 Oct 08:43:40 engine 2013: CopySAM called with pwszDestination = "C:\RRbackups\common".
    Thu Oct 17 08:43:44 engine 2013: out of CopySAM with dwRet = 0 x 00000000
    Thu 17 Oct 17:00:09 engine 2013: br_funcs.exe - version is '04.17.20a.00 '.
    Thu 17 Oct 17:00:09 engine 2013: DeleteSISAndExclude (delType 1, drive letter C, Destination 'C:\RRbackups', level 12)
    Thu Oct 17 17:01:25 engine 2013: DeleteSISAndExclude out with return code 0 x 00000000
    Thu Oct 17 17:01:59 2013 engine: br_funcs.exe - version is '04.17.20a.00 '.
    Thu Oct 17 17:01:59 2013 Verbatim: WriteDriveContents (DriveLetter ='C:', Dest = 'C:\RRbackups', level = 13, SleepCount = 0, DeviceType = 1, dwOptFlags = 0 x 00000001)
    Thu Oct 17 17:05:48 2013 Verbatim: 0x00000010883e6399 - space required before compression
    Thu Oct 17 17:05:49 2013 Verbatim: 0x00000001ef30e1bf - estimated space required after compression
    Thu Oct 17 17:05:49 2013 Verbatim: 0x0000001dae2dd000 - currently available disk space
    Thu 17 Oct 17:07:27 2013 Verbatim: can't get exclusive lock for the entire file 'C:\Documents and Settings\Bendt Skov.DK\Application Data\Mozilla\Firefox\Profiles\gbkxfkqd.default\cookies.sqlite-shm' - WinRC = 0x00000000
    Thu 17 Oct 17:07:30 2013 Verbatim: can't get exclusive lock for the entire file 'C:\Documents and Settings\Bendt Skov.DK\Application Data\Mozilla\Firefox\Profiles\gbkxfkqd.default\healthreport.sqlite-shm' - WinRC = 0x00000000
    Thu 17 Oct 17:07:31 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\Bendt Skov.DK\Application Data\Mozilla\Firefox\Profiles\gbkxfkqd.default\parent.lock" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu 17 Oct 17:07:33 2013 Verbatim: can't get exclusive lock for the entire file 'C:\Documents and Settings\Bendt Skov.DK\Application Data\Mozilla\Firefox\Profiles\gbkxfkqd.default\places.sqlite-shm' - WinRC = 0x00000000
    Thu 17 Oct 17:07:34 2013 Verbatim: can't get exclusive lock for the entire file 'C:\Documents and Settings\Bendt Skov.DK\Application Data\Mozilla\Firefox\Profiles\gbkxfkqd.default\webappsstore.sqlite-shm' - WinRC = 0x00000000
    Thu Oct 17 17:08:28 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\Bendt Skov.DK\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:08:30 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\Bendt Skov.DK\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat.LOG" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:02 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\Bendt Skov.DK\NTUSER." DAT' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:09 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\Bendt Skov.DK\ntuser.dat.LOG" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:15 engine 2013: CreateFileW failed for the file 'C:\Documents and Settings\Application Data\Microsoft\Windows\UsrClass.dat.LOG LocalService' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:16 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\LocalService\NTUSER. DAT' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:17 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\LocalService\ntuser.dat.LOG" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:18 engine 2013: CreateFileW failed for the file 'C:\Documents and Settings\Application Data\Microsoft\Windows\UsrClass.dat.LOG Settings' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:19 engine 2013: CreateFileW failed for the file ' C:\Documents and NetworkService NTUSER. DAT' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:20 engine 2013: CreateFileW failed for the file "C:\Documents and Settings\NetworkService\ntuser.dat.LOG" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:09:25 Verbatim 2013: cannot save short name of "C:\hiberfil.sys" - WinRC = 0x00000020
    Thu Oct 17 17:09:25 engine 2013: impossible to attributes of record for the file "C:\hiberfil.sys" - WinRC = 0x00000020
    Thu Oct 17 17:09:47 2013 Verbatim: cannot save short name of "C:\pagefile.sys" - WinRC = 0x00000020
    Thu Oct 17 17:09:47 engine 2013: impossible to attributes of record for the file "C:\pagefile.sys" - WinRC = 0x00000020
    Thu Oct 17 17:11:50 engine 2013: CreateFileW failed for the file "C:\Program Files\Bitdefender\Bitdefender\onaccess.dat" and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:19:49 motor 2013: jump from the C:\Program Files\Bitdefender\Bitdefender\onaccess.dat file at the request of the user
    Thu Oct 17 17:23:10 engine 2013: CreateFileW failed for file ' C:\Program Files\Common Files\Bitdefender\Bitdefender threatens Scanner\smartdb - ntfs.db' and the reason was not a sharing violation - Windows RC = 0 x 00000020
    Thu Oct 17 17:33:13 engine 2013: jump to the folder C:\Program Files\Common Files\Bitdefender\Bitdefender threat Scanner\smartdb - ntfs.db at the request of the user
    Thu Oct 17 17:37:08 2013 engine: BackupFile failed - unable to "C:\WINDOWS" BackupRead - GetLastError() returns 0x00000020
    Thu Oct 17 17:37:08 2013 engine: unable to BackupFile directory C:\WINDOWS - dwRet = 0 x 00000516
    Thu Oct 17 17:37:09 2013 Verbatim: can't get exclusive lock for the entire file "C:\Documents and Settings\Bendt Skov.DK\Local Settings\Application Data\Microsoft\Outlook\outlook.pst" - WinRC = 0x00000000
    Thu Oct 17 17:37:13 2013 Verbatim: can't get exclusive lock for the whole of the file "C:\Documents and Settings\Bendt Skov.DK\Local Settings\Application Data\Microsoft\Outlook\Personal folders (1) .pst '-WinRC = 0 x 00000000"
    Thu Oct 17 17:37:15 2013 Verbatim: can't get exclusive lock for the entire file "C:\Privat\bendtskov-hotmail Arkiv.pst" - WinRC = 0x00000000
    Thu Oct 17 17:37:16 Verbatim 2013: can't get exclusive lock for the entire file "C:\Privat\morkebjerg-hotmail Arkiv.pst" - WinRC = 0x00000000
    Thu Oct 17 17:37:17 2013 Verbatim: WriteDriveContents exit with return code 0 x 00000000
    Thu Oct 17 17:37:25 engine 2013: br_funcs.exe - version is '04.17.20a.00 '.
    Thu Oct 17 17:37:25 engine 2013: CopySAM called with pwszDestination = "C:\RRbackups\common".
    Thu Oct 17 17:37:26 engine 2013: out of CopySAM with dwRet = 0 x 00000000
    Thu Oct 17 22:34:38 engine 2013: br_funcs.exe - version is '04.17.20a.00 '.
    Thu Oct 17 22:34:39 engine 2013: CopySAM called with pwszDestination = "C:\RRbackups\common".
    Thu Oct 17 22:34:42 engine 2013: out of CopySAM with dwRet = 0 x 00000000


  • How to create and save the Excel file at the dam using java

    I'm trying to create an excel spreadsheet and save it in the dam. I am able to create Excel in the dam, but no data is it than excel. I use the following codes to create.

    String filename = "updatedMetadata.xls";

    FileOutputStream fos = new FileOutputStream (filename);

    Workbook WritableWorkbook is Workbook.createWorkbook (new File (filename));.

    WritableSheet writableSheet = workbook.createSheet ("update metadata", 0);

    Label = null;

    label = new Label (0, 0, "Header1");

    writableSheet.addCell (label);

    label = new Label (0, 1, "tête2");

    writableSheet.addCell (label);

    label = new Label (0, 2, "Header3");

    writableSheet.addCell (label);

    label = new Label (0, 3, "Header4");

    writableSheet.addCell (label);

    label = new Label (0, 4, "Header5");

    writableSheet.addCell (label);

    label = new Label (0, 5, "Header6");

    writableSheet.addCell (label);

    label = new Label (0, 6, "Header7");

    writableSheet.addCell (label);

    label = new Label (0, 7, "Header8");

    writableSheet.addCell (label);

    label = new Label (1, 0, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 1, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 2, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 3, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 4, "Col. val" "");

    writableSheet.addCell (label);

    label = new Label (1, 5, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 6, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 7, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 0, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 1, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 2, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 3, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 4, ' Col. val "" ");

    writableSheet.addCell (label);

    label = new Label (2, 5, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 6, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 7, "col val");

    writableSheet.addCell (label);

    Workbook.Write ();

    Workbook.Close ();

    ResourceResolver resourceResolver = request.getResourceResolver ();

    AssetManager Manager = resourceResolver.adaptTo (AssetManager.class);

    InputStream is = this.getClass () .getResourceAsStream ("/ content/dam/company/fileFolder /" + filename);

    Element element = manager.createAsset ("/ content/dam/company/fileFolder /" + name of file, is, "application / vnd.ms - excel", true);

    File is created in the path "/ content/dam/company/fileFolder / '.

    The file name is "updatedMetadata.xls".

    Thanks in advance

    Mahesh Narayanan

    I found it myself. I share the code so that in the future someone else can use it.

    String filename = "updatedMetadata.xls";

    ExcelFile to the file = new File (filename);

    Workbook WritableWorkbook = Workbook.createWorkbook (excelFile);

    WritableSheet writableSheet = workbook.createSheet ("update metadata", 0);

    Label = null;

    label = new Label (0, 0, "Header1");

    writableSheet.addCell (label);

    label = new Label (0, 1, "tête2");

    writableSheet.addCell (label);

    label = new Label (0, 2, "Header3");

    writableSheet.addCell (label);

    label = new Label (0, 3, "Header4");

    writableSheet.addCell (label);

    label = new Label (0, 4, "Header5");

    writableSheet.addCell (label);

    label = new Label (0, 5, "Header6");

    writableSheet.addCell (label);

    label = new Label (0, 6, "Header7");

    writableSheet.addCell (label);

    label = new Label (0, 7, "Header8");

    writableSheet.addCell (label);

    label = new Label (1, 0, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 1, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 2, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 3, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 4, "Col. val" "");

    writableSheet.addCell (label);

    label = new Label (1, 5, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 6, "col val");

    writableSheet.addCell (label);

    label = new Label (1, 7, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 0, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 1, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 2, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 3, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 4, ' Col. val "" ");

    writableSheet.addCell (label);

    label = new Label (2, 5, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 6, "col val");

    writableSheet.addCell (label);

    label = new Label (2, 7, "col val");

    writableSheet.addCell (label);

    Workbook.Write ();

    Workbook.Close ();

    ResourceResolver resourceResolver = request.getResourceResolver ();

    AssetManager Manager = resourceResolver.adaptTo (AssetManager.class);

    InputStream stream = new FileInputStream (excelFile);

    Element element = manager.createAsset ("/ content/dam/company/fileFolder /" + name of file, is, "application / vnd.ms - excel", true);

  • Hello!! need for a loop and save the .mov file

    Hello!! I have a .mov file which is 1 sec long and I need to loop and save it as 2mins long. No idea of the first use is even allow me to open the .mov help file!

    > even allow me to open the .mov file

    What is your computer, and what version of quicktime you have installed?

    MOV is a wrapper, which is inside YOUR package - exactly what is on the INSIDE of the video you are editing?

    A report with details of codec your file, use the following programs... A screen capture works well for people to SHOW what you do https://forums.adobe.com/thread/1070933 for screenshot instructions

    Free programs to get information on PC/Mac http://mediaarea.net/en/MediaInfo/Download files

  • Store images, css and javascript on a file system or database?

    Hi all

    I use 11g R2 and Apex 4.1.1

    By doing a search around, I found all sorts of ways to access the global files in your environment to the apex. I found 3 scenarios.

    (1) place your files in the workspace (database) and access it via #WORKSPACE_IMAGES #.
    (2) place your files in the directories is (void)
    (3) use a separate http server to access your file system


    For the first solution, this comes with a problem: when you have several css and jquery ui theme ties css to a subdirectory "images". I can't seem to make the subdirectories under #WORKSPACE_IMAGES #. For example: #WORKSPACE_IMAGES #/ images

    The second solution requires dba SYSTEM connect and store files on the system. This is not very practical when you are developing.

    The third solution seems to be the most used one (when I googled around), but our administrators do not want to set up a separate web server for this project. I have to work with what I have which is the APEX server and the database.


    Now, I have a question:

    Is it possible to let another user that the SYSTEM to connect to the East, but only to a subdirectory on is (that is, / i/themes/workspaceName) so the developer can not mess with files from base to apex or the themes themselves?

    Otherwise, I have to download every css and images one by one to the workspace and change all paths relative used in css, which is a pain...

    By using this option, all my files are stored in the database, which is considered safer than when they are on a directory on the server itself.

    Thanks in advance,
    Dennis

    Hi Dennis,

    You DBA should be able to do the following.

    (1) create a new subdirectory in the directory images on XDB (it can use WebDAV or FTP to do)
    (2) create a new database for you user (see http://www.oracle-base.com/articles/9i/xmldb-9i.php) or grant an existing user

    GRANT connect, resource, xdbadmin TO ...;
    

    (3) you can use WebDAV or FTP to transfer files to this new directory of void and do not have to use the SYSTEM

    It would be possible to avoid the xdbadmin role and use the ACLs on directories, but I am not sure XDB. But I don't know that your DBA should be able to understand this.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Edit and save XML files

    Hi all

    I want to add some values in xml files. for example, my files wml is like this:

    
        
    
    

    I want to add a 'trip' through qml. How can I do this?

    I wanted to do the same thing before, but you cannot add data to your xml file according to the native blackberry documentation

    "The XmlDataModel does not support add or insert values.

    from here

    https://developer.BlackBerry.com/native/documentation/Cascades/UI/lists/XmlDataModel.html

    Try checking the JSON format, I did not any program that uses data models, then perhaps other experienced developers have other solutions

Maybe you are looking for