XInclude: setting base folder (of filesystem)

Hello,
I want use Xinclude feature with J2SE 1.5/5.0 and it seems to work. Problem is, that I load the "master" document from an InputStream - physical loading from file happens elseware. My XIncludes within this master XML are "local" - i.e. no folder names.
Problem ist that when the parser tries to resolve the includes it has no idea of where the files to include are - so it uses the current folder from where the app startet.
Is there a possibility to specify the base folder form where includes are to load, e.g. w/ DocumentBuilderFactory.setAttribute()?
Thanks for any hint, regards,
Timo

Do you know if this
might also work for XML files that do reside within a
Jar File?It should. I forget exactly what a JAR URL looks like but if you write a little test program that calls this.getClass().getResource(...) for your XML file in a JAR, it will return what you're looking for.
But why not just pass the XML document's URL directly to the parser? That would be more straightforward.

Similar Messages

  • Setting a folder size??

    Hi there,
    This is my first time to install OCS; the doc says that the TMP env. variable has to refere to a directory with 300mb of free space; originally, how can I create or set a folder size on windows??
    thanks alot.

    If you have a disk thay offers a filesystem with 10 GB and you create a directory in this dilesystem than it could contain up to 10 GB (which includes your 300 MB).
    So, in essence just create a directory in a filesystem (or disk in Windows) that is large enough to contain the 300 MB.
    cu
    Andreas

  • DML Error logging table in Set base mode

    Hi all,
    In ETL data errors can be handled thru error logging table. Like this example given in the document-
    INSERT /*+ APPEND PARALLEL */
    INTO sales SELECT product_id, customer_id, TRUNC(sales_date), 3,
    promotion_id, quantity, amount
    FROM sales_activity_direct
    LOG ERRORS INTO sales_activity_errors('load_20040802')
    REJECT LIMIT UNLIMITED
    In this example bulk loading is possible even in the presence of errors. The data errors will go in table 'Sales_activity_errors'.
    I want to generate this kind of coding in OWB in set base mode. For that i have to create a error logging table in target schema. How can I reference this table in a mapping? can it be done by shadow table? It's a very important feature in ETL for bulk loading. Is it available in OWB in set based mode?
    Guyzz please check this out and help me..
    Regards,
    Sumanta

    Hi,
    I am not sure if the DML error logging method is avaliable to be used in OWB 10g R2. You can use the data rule method. Create the data rules on the target table. Deploy it from OWB. Create your mappings and then execute them. Two insert statements will be generated. One for loading the target table for loading records where no rules are violated. The other for loading the <target table>_ERR for loading records where one or more error rules are violated.
    Both these statements do a bulk loading. So your purpose will be solved.
    Again you can use the splitter method that has already been mentioned.
    Regards
    -AP

  • How to set share folder for mac 8.6 in windows

    I know how to set share folder for mac 8.6 in windows xp. I installed the NetBIOS. But i still can not found windows share file in mac 8.6. Need to install 'DAVE'?

    I want to setup file sharing. Then, I will setup share printer for mac8.6. I tried to config File Sharing control panel. But it do not scuccessful. Do have you way to solve file sharing and share printer problem. Not use NetPresenz.
    I follow the website to setup file sharing. But I is not successful.
    the website:
    http://homepage.mac.com/car1son/os9xnet_nfilesharing.html
    I go to appletalk control panel to connect via choose ethernet bulit-in. It appear a error. The error is 'An error occurred attempted to use Ethernet bulit-in. Make sure your network connection are correct.'
    Thank you very much for your help.

  • Error #2032 attemting to set base rates

    When I select "set base rates" I immediately get a dialog box with  "RSL error 1 of 2  Error #2032"  with no further explanation.  I turned off (complertely) Windows Firewall - problem persists.  No further hints as to what's up.  Win 2K8 R2 w/ vChargeback 2.5 installed. Single vCenter "attached" (vCenter userid/password and DB user/pass seems to have been accepted...)
    KB shows no hits for this issue, and the dialog box explains nothing... Anyone have any hints?
    Many thanks (is there a master manual describing these errors - 2032 likely means SOMETHING??)

    Sorry for the long delay - other project priorities bumped this one. (and thanks for the help)
    Flushing browser cache resulted in same issue - I checked ALL the boxes EXCEPT "Preserve Favorites Website Data", so cookies, temp internet files, history, etc. were ALL cleared.  Still get dialog box with:
    "RSL error 1 of 2" centered in the "Base Rate Calculator" box, with a small "Error #2032" at the bottom of the dialog.
    Looking at logs - more later.

  • Help: how to set the permission for  filesystem folder

    I have been created a Windows FileSystem repository. and I can access it when I am Administrator.  but I can not access it using another user. How can I make these user can access that folder?
    thanks, best regards
    George

    You need to do the user mapping of the user to their windows id and password.  Make sure it is in the format DOMAIN/username.  Your administrator can see them because they are a special user called a system principle.
    Paul

  • Set base URL, fixing addressing problems

    I have a cool Flash slide show script that uses PHP to take
    images from an image folder:
    /img/
    getimglist.php
    slides.php
    slides.swf
    It works great in a test folder, but I can't get the
    <object> code to work anywhere else in the site. The source
    line looks something like this:
    src="slides.swf?imglist_fn=getimglist.php&img_path=img&interval=3000&w=200&h=100"
    I've tried adding the full paths including
    http:// before the files and the img folder, but
    without luck. I've tried several other variations. I'm getting
    desperate.
    Why doesn't this work? Is there a way to set a base URL
    somewhere? If it works within the folder, is there really no simple
    way to get it work on another page in the site?
    getimglist.php has this bit of code:

    I have a cool Flash slide show script that uses PHP to take
    images from an image folder:
    /img/
    getimglist.php
    slides.php
    slides.swf
    It works great in a test folder, but I can't get the
    <object> code to work anywhere else in the site. The source
    line looks something like this:
    src="slides.swf?imglist_fn=getimglist.php&img_path=img&interval=3000&w=200&h=100"
    I've tried adding the full paths including
    http:// before the files and the img folder, but
    without luck. I've tried several other variations. I'm getting
    desperate.
    Why doesn't this work? Is there a way to set a base URL
    somewhere? If it works within the folder, is there really no simple
    way to get it work on another page in the site?
    getimglist.php has this bit of code:

  • In an Excel template file, can I set the Folder Path in the SaveAs Dialog box?

    I have an Excel template file (xltm) and, with help from the forum, I now have a Workbook_BeforeSave subroutine to save the template as a macro enabled file (xlsm).  I’m so thankful for that help from Edward in the forum.
    I also want to set the default folder location to save the file. I really only need it when the template is saved as a new xlsm file, because if they open the xlsm file, it’s usually opened from the default folder path so any save would normally go back
    to where the file was opened.  However, with a template (even if the template is in the default folder) the Saved template reverts back to the user’s documents folder.
    Is there a good way to do this?
    I tried to modify the Workbook_BeforeSave code like this:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Dim FolderDir As String
    Dim FileNameVal As String
    FolderDir = "Z:\save\data\place\"
    If SaveAsUI Then
    If Dir(WorkBookFolder, vbDirectory) <> "" Then
    Application.DefaultFilePath = WorkBookFolder
    End If
    FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Cancel = True
    If FileNameVal = "False" Then 'User pressed cancel
    Exit Sub
    End If
    ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    Application.EnableEvents = True
    End If
    End Sub
    But there are a lot of checks that would need to be done.
    I'm not sure how to only default the folder saved only when they open the template, but not change it when they just open an already saved Excel file created by the template (with all the active content, macros, etc.).
    Alan Edwards

    Hi Alan,
    store the path\filename in the 1st argument:
    FileNameVal = Application.GetSaveAsFilename("C:\*.xlsm", "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Andreas.

  • Is it possible to manually setup a Folder Redirection Policy on SBS 2008 for one user? Also are you able to set up folder redirection on a different server than you have SBS 2008 on?

    I have a SBS 2008 DC I would like to be able to change the Folder Redirection to a different server.  I also would like to be able to test with one user.  I read on the forums that it is best to use the wizards for SBS2008.  The only problem
    I have with using the wizards is that I am unable to test and I am also unable to use a network share for my redirection location.  

    Hi,
    I am sure you would get some help from :
    http://blogs.technet.com/b/sbs/archive/2010/10/08/folder-redirection-in-small-business-server-2008.aspx
    https://social.technet.microsoft.com/Forums/en-US/448583ca-471e-4a0c-9d26-aa9181e73962/folder-redirection-changing-location?forum=smallbusinessserver
    User setting can be found:
    Windows SBS Console > Shared Folders and Web Sites > Shared Folders - in Tasks panel click on Redirect folders for user accounts to the server.
    Under Folder Names Select folder(s) you want to redirect (e.g. Documents).
    Under User Accounts select accounts you want to have folders redirected.
    Click OK
    Binu Kumar - MCP, MCITP, MCTS , MBA - IT , Director Aarbin Technology Pvt Ltd - Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How do I set the folder to which temporary files are saved?

    As of now, whenever I click "Open with..." when downloading a file, a copy of that file saves to my desktop and never gets cleared. I'd like to set the temporary folder so I can manually clear it periodically, but the only file management option I seem to have is to set downloads to always save in a certain folder--which does not appear to include "temporary" files. How can I change the destination folder for temporary downloads? And why does Firefox download and save the files before opening them? I don't want to save every PDF I read online, yet this seems to be the default setting in order to open files.

    You probably need to set that temp folder in the Safari Preferences to set them for other programs.
    Safari > Preferences > General > Save Dowloaded Files To
    You can also set the Boolean pref browser.helperApps.deleteTempFileOnExit to true on the about:config page.
    See also http://kb.mozillazine.org/about%3Aconfig

  • Set default folder for save

    If I am saving an email attachment, Reader XI defaults to miles down in the internet cache, with every attachment. I would love to set it to default to Documents instead (as you can with Office programs) - much quicker navigation to correct folder. Is this possible?

    apparently Adobe doesn't give a sh!t about it's users. The possibility to change default behaviour has been removed with the introduction of version 10 and hasn't come back since. For over 3 years people are complaining about this on the forum and are being offered poor workarounds (create a shortcut in your temp folder pointing to your desktop? for fck sake!)
    Adobe employees will tell you 'default system behaviour' ******** and basicly tell u to go finger ur bu.thole.
    I use to buy their products (adobe creative suite) but the fact they don't give 2 sh!ts about their customers made me pick another vendor.
    Best solution i can offer u is just use ANY of the 10.000 other freeware utilities that do offer the basic functionality u'd expect.

  • Best practice for making changes to Oracle apps business views and BAs/fold

    HI
    The oracle BI solution comes with pre-defined Business Views- database views and Business Areas and folders. If we want to customize those database views or BAs and folders what will be the best practice in order to avoid losing it during any upgrades.
    For ex Oracle out-of box Order Management BA that we are using heavily needs some additional fields to be added to Order Header and Order Lines folders and we also want to add some custom folders to this BA.
    If we do the changes to the database views behind this BA would they be lost during the upgrade or do we have to copy(duplicate) those views, updated them and create a custom BA and folders against those views.
    Thanks

    Hi,
    If you are adding new folders then just add them to the Oracle Business Area. The business area is just a collection of folders. If the business area was changed in an upgrade the new folder would not be deleted.
    If you want to add fields to the existing folders/views then you have 2 options. Add the field to the defining base view (these are the views beginning OEBV and OEFV) and then regenerate the business views. This may be overwritten if the view is upgrade but this is unlikely.
    Alternatively, copy the view to create a new version and then map the old folder to the new view and refresh. You may need to re-map the folder if the folder is upgraded, but at least you have a single folder used by both Oracle and custom reports.
    Rod West

  • How to set "Output folder" and "Outputfolder URL" in Flasbuilder 4b1 for combined Java/Flex project with WTP?

    Hi,
    how can I set the "Output folder" and "Output folder URL" in Flasbuilder 4b1?
    In Flexbuilder 3 I can do this under Project Properties/"Flex Build Path" 
    Under "Flex Build Path" in F4b1 I can see the settings, but they are not editable.
    A message says "The output folder settings for server projects are on the Flex Server Property Page" but under "Flex Server" there is nothing (yet) I can change/set?!
    Is there a workaround?
    Thanks for any pointers!
    Martin Zach

    Yes I'm using Flash Builder b1, build 235740. But your settings panel looks different to mine (see attached).
    Just a thought. When you created the Flex project, did you choose a server technology at that point already? I just remember from Flex Builder 3 that if you didn't choose a server technology when you created the Flex project then it was a pain in the ** to add it later. It involved editing the .flexProperties file manually if I remember correctly.

  • Home page set to folder does not open links in multiple tabs. Only opens one and only partially.

    Hi there,
    In 'Tools / Options' my Home page set to a folder but does not open multiple links in tabs. It only opens the first link and only partially opens the page.
    The 4 pages I am trying to open are:
    http://www.live365.com/index.live
    http://www.facebook.com/login.php
    http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1193340789&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855
    http://webmail.123-reg.co.uk/index.php

    Hi this did not work either.
    Also when I tried to log into this forum the browser just kept taking back to the login page. There were no errors, it was as if it was stuck in a loop. The page refreshed but moved no where. My user name and password were there but nothing happened. It took a reboot to allow access.
    This seems to be something I have noticed. When a page reopens on start up or from a link it will not load the page properly causing errors.
    Also on a similar note the new Firefox is not remembering passwords. Specifically to hotmail.
    Cheers,
    Ash.

  • How to set default folder view to "list"

    Hi guys,
    This is regarding Tiger. I poked around in the Finder forum to no avail. Have any of you come up with anything that would force the default folder view to "list" view?
    Um, folders, they are found in the gui.
    Thanks for any thoughts, scripts, plists, insults welcome, have a Merry Christmas!

    "all windows"
    Unfortunately that did not work.
    While in the Finder from the menu bar go to Finder > Preferences > General tab. See the item "Open new windows in column view" Whatever that is affecting I suppose would be the place to start hacking away on. I haven't investigated that. Would have been nice if Apple added list view in there.
    I'll see if I can poke around a bit and find what file gets affected by setting that option. I'll post if I find something.

Maybe you are looking for

  • Validating xml input against schema's registered in database

    Hi, We have an application that stores a massive XSD document (with cyclical references between schemas) in a VARCHAR2 column of a table. The XSD is loaded everytime an xml input needs to be parsed. The problem is that the XSD is very huge, and maint

  • Unable to connect HP PC or Macbook Pro wirelessly to Laser jet pro P1102w

    I got a new HP computer & am not able to connect wirelessly to the printer.  I also lost the printer connection to my  Macbook pro and when I deleted it, cannot find it to reinstall.  The network light blinks but wont stay on.  When I was just having

  • Interest In ThinkPad Yoga 2

    Hi, I am interesting in ThinkPad Yoga 2  When it will release? Base on ThinkPad Yoga 1, I want to make a suggestion. - 500GB or more HDD + at least 18 GB SSD {For the Intel Smart Response Technology} Option - 512 GB SSD Option

  • HT1338 my macbook will not install updates

    My computer will check for updates then it makes a list of available updates and even looks like its going to install them but after a few minutes pass it just say that it was unable to update I have a hp that i use alot so I probably missed some pre

  • Phase

    Comment mesurer et/ou afficher (graphiquement) une phase pour un signal PSK, exemple : visualiser une constellation pour un signal BPSK, QPSK, ... Merci de votre reponse.