How to save a DocumentFragment which is not in XML

Hi,
i want to make an export from a view object as CSV-file. To achieve this i have made a stylesheet, that converts a xml to a text format.
DocumentFragment oDF = tNode.transformNode(xslt);
And from here i have the problem: How could i save the DocumentFragment to my harddisk? (Inserting that DocumentFragment in a XMLDocument doesn't work because it is no longer in xml-format)
Thanx,
Marc

Hey Marc,
I'd rather use a code like this:
DOMParser parser = new DOMParser();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(baos);
try
String xslUrl = "yourXSLdocument.xsl";
parser.parse(is); // the xml document input stream
XMLDocument doc = parser.getDocument();
XSLProcessor xp = new XSLProcessor();
try
XSLStylesheet xsl = xp.newXSLStylesheet(new FileInputStream(xslUrl));
xp.processXSL(xsl, doc, pw);
String processedDoc = baos.toString();
System.out.println(processedDoc); // Here you go!
catch (XSLException xsle)
JOptionPane.showMessageDialog(null, xsle.toString(), "XSLException", JOptionPane.ERROR_MESSAGE);
catch (SAXException saxe)
JOptionPane.showMessageDialog(null, saxe.toString(), "SAXException", JOptionPane.ERROR_MESSAGE);
Please tell me is this is addressing your problem...
Thank you

Similar Messages

  • How can i send videoes which are not in camera roll via whatss app to others ?

    hi,
    I am going to know that how can i transfer video which are not in camera roll via whatss app to others ?
    thnaks in advanced.

    Where are the videos?
    If WhatsApp supports sending videos from the Camera Roll only and that is your only option, that is it.
    Contact WhatsApp. They have a website.

  • How to save message when getting "email not responding"

    how to save message when getting "email not responding"

    How could you even know if you have a message if the email account isn't responding?
    Quit the mail app and reboot your iPad.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the mail icon. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. Advice would be much appreciated.

    Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. There is no number pad. Advice would be much appreciated.

    nicholasmitaka-shi wrote:
    This is a Japanese kana input keyboard, A1242, whioch looks quite as usual except that a few functions have no space on the board and have been ommitted. 
    Is the plus sign really not available on your keyboard at the place indicated on this graphic (to the right of the L key)? You might need to use shift or alt/option or shift+alt/option.
    http://en.wikipedia.org/wiki/File:KB_Japanese.svg

  • How to remove the tasks which are not manually recoverable?

    How to remove the tasks which are not manually recoverable?
    I tried performing manual recovery for the BPEL processes but there are few tasks which cant be manually recoverable..
    Could you please tell me how to remove those tasks and also tell me which information in the console is the task_id in the database?

    This article explains how to cleanup bpel process instances, you can find task instance id by searching for data in payload using api.
    Managing a BPEL Production Environment
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/blanvalet.html
    Cheers,
    Rad

  • Motion Tracking: How to link a object which is not the tracked one?

    Hello,
    I have a video, its a landscape and the camera is moving from left to right. I want a flare appearing on the right side. There is one point which is always in the picture, I used this point to track the motion.
    But the problem is, when I want to link optical flares with the tracking point, the flare is always ON the tracking point, but I want it a little bit more on the right side...
    How is it possible to link a Object which is not exactly on the tracking point?

    Usually you would apply the tracking info to a null and then use an expression to tie the position property of whatever you are trying to attach to the null with a simple expression. If you need update the position then you can either add value + to the front of the pickwhip generated expression or, and sometimes this is best, add a second null, parent null 2 to null 1 and then use the a layer space transformation expression on the position property of your effect. The expression looks like this:
    p = thisComp.layer("Null 2");
    p.toComp([0,0,0]);
    If I did not if I did not accurately understand the problem then please post a screenshot of your project with all of the properties for the layers in question revealed.
    Here's what a project would look like:

  • How to recover deleted photos which is not backed up

    how to recover deleted photos from iphone using ITUNES which is not backed up yet ?

    Photos are not in iTunes, but they could be in an iTunes backup if you had run one. However, you say you never backed up, so there would be no way to recover them.

  • How to get a connection which does not participate in the main usertransaction

              Hi All I am on WLS 6.1 sp2 on win2k. I have a requirement which is like this: I
              use connection pools/txdatasources/JTA in my application. Now when a JTA transaction
              (UserTransaction) is active - I want to take a connection from the pool and do
              some operation and commit it independently of the UserTransction commit/rollback.
              Its pretty much like this - 3 components A , B, C (none of them are EJBs) are
              involved in a UserTransactions and all of them access database via a TxDataSource
              (say TD) which points to a connectionpool (say CP). Now I want B to get a connection
              handle which is not participating in the main transaction - so that the operation
              that B does is independent of what happens to the main transaction. Now I know
              I can use TransactionManager api to suspend a UserTransaction and then let B take
              a connection from the pool and commit it and then resume the transaction. But
              is there any easier way out of it? Like if B uses a DataSource instead of a TXDataSource
              - will that give B a connection which is not part of the main transaction? if
              not then whats the difference between DataSource and TXDataSource? Any help is
              appreciated.
              thanks
              Anamitra
              

    I would recommend that you mark the method as NotSupported or
              RequiresNew rather than using DataSource or suspending/resuming
              transactions on your own.
              If anything, it will be much clearer to the next person who maintains
              your code.
              -- Rob
              Anamitra wrote:
              > Hi All I am on WLS 6.1 sp2 on win2k. I have a requirement which is like this: I
              > use connection pools/txdatasources/JTA in my application. Now when a JTA transaction
              > (UserTransaction) is active - I want to take a connection from the pool and do
              > some operation and commit it independently of the UserTransction commit/rollback.
              >
              >
              >
              > Its pretty much like this - 3 components A , B, C (none of them are EJBs) are
              > involved in a UserTransactions and all of them access database via a TxDataSource
              > (say TD) which points to a connectionpool (say CP). Now I want B to get a connection
              > handle which is not participating in the main transaction - so that the operation
              > that B does is independent of what happens to the main transaction. Now I know
              > I can use TransactionManager api to suspend a UserTransaction and then let B take
              > a connection from the pool and commit it and then resume the transaction. But
              > is there any easier way out of it? Like if B uses a DataSource instead of a TXDataSource
              > - will that give B a connection which is not part of the main transaction? if
              > not then whats the difference between DataSource and TXDataSource? Any help is
              > appreciated.
              > thanks
              > Anamitra
              

  • How can I detect workbooks which are not longer in use?

    Hello togehter,
    I am looking for a way to detect BEX Workbooks which are not longer in use. Is there something in the BC which I can use for that?
    Best would be some query with the information of when and by whom a workbook gets called up last time.
    Thanks!
    Andreas

    Hi Edward,
    there is no key figure providing this information.
    First of all you got convert the 0CALDAY from Date to Number, therefore you got to configure a new variable (by replacement path) and put it into a formula.
    Use the result of this formula as a column and create a new TOP 1 condition on it.
    Now you will only get one row per Workbook/Query (or whatever you have chosen) with the date of the last use of it.
    Regards,
    Andreas

  • How to pass column value which is not present in source criteria

    Hi,
    In one of my report I want to pass a column value from Source report(a pivot table) to target report. The column which I want to pass is not present in the sorce report criteria. Is there any work around for this issue.
    I added this column in criteria and hidden the column. But the issue is not solved.
    Best Regards,
    TKB.

    Swati,
    I am navigating from Summary report to detail report. I am prompting the required fields in detail report. But I want to pass one more column value explicitly, which is not present in source request.
    Best Regards,
    TKB.

  • How to find the deliveries which does not have Carnot and SHPCON

    I have a scenario where for some of the deliveries no CARNOT idoc or SHPCON idocs were not been created or went into error, i have verified it in by going to we05 and found there were many idcos in error and some of the idocs were been set to status 68 and they were manually processed by users.  is there any table where i can extract the deliveries which does not have SHPCON idocs created.

    hi,
    you have to take two steps in this:
    first step:
    Table EDIDC which contains EDI Control records.
    which stores the partner number,partner functions & message types.
    2nd step:
    take that partners and get deliveries from LIKP table.
    regards,
    balajia

  • How to see the Orders which were not settled

    Hi,
    I need to see the Production Orders which were not settled till now. Please provide me the transaction code for this...
    Thanks
    KB
    Moderator: Please, search SDN; you can use any standard report for orders to see the balances

    Hi,
    The purpose of In-Place hold is to use the Recoverable Items folder to preserve items.
    When user deletes items from Deleted Items folder, these items will go to Deletions which is a subfolder of Recoverable Items folder. After items exceed the deleted item retention period, they are moved to Purges subfolder and they will be retained until
    you remove hold.
    Here is an article which can help you to understand In-Place Hold for your reference.
    http://technet.microsoft.com/en-us/library/ff637980(v=exchg.150).aspx
    Best regards,
    Belinda Ma
    TechNet Community Support

  • In JS, how to save a bookmark which can open in main, not sidebar?

    I did lots of search on the web. People have been struggling with this problem for many years.
    The scenario:
    My standard_weight.php takes height parameter either from $_GET or from $POST. The web page has a form to let users type in height.
    Control-D can save the location, but not the height.
    My page is too simple to ask users to create an account and save profile.
    So I want to provide a link users can click and bookmark the current page with height.
    <pre><nowiki><script language="JavaScript1.2" type="text/javascript">
    function CreateBookmarkLink() {
    title = "my ideal weight";
    height = function_to_get_current_height_value();
    url = "http://my.site.com/standard_weight.php?height=" + height ;
    if (window.sidebar) { // Mozilla Firefox Bookmark
    window.sidebar.addPanel(title, url,"");
    } else if( window.external ) { // IE Favorite
    window.external.AddFavorite( url, title);
    } else if(window.opera && window.print) { // Opera Hotlist
    alert("Sorry, your browser doesn't support this function." );
    return false ;
    if (window.external) {
    document.write('<a onClick ="javascript:CreateBookmarkLink();">Add to Favorites</a>');
    } else if (window.sidebar) {
    document.write('<a onClick ="javascript:CreateBookmarkLink();">Bookmark Page</a>');
    } else if (window.opera && window.print) {
    document.write('<a onClick ="javascript:CreateBookmarkLink();">Add Bookmark</a>');
    </script>
    </nowiki></pre>
    When the link is clicked , a dialog will pop up and the user can save the bookmark.
    The problem is that when the bookmark is opened, it is in sidebar. The bookmark property has the check for "Load this bookmark in the sidebar."
    Asking users to clear the check is not a friendly solution.
    Is there anyway to get around this problem?
    If you google this topic, you can find that people has been struggling with this for long time. I guess that they just end up with saying "sorry, your browser doesn't support this function." on Firefox.
    Best wishes to Firefox !

    There are two Bugs related to a feature like that; one was WONTFIX'd and the other is still open.<br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=66248 <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=214530
    ''(Please don't comment in that Bug report unless you can provide a patch to fix the problem.)''
    https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

  • HT4910 I have 2 lines and on 1 of the main phone I went to settings then storage & backup automatically it showed how much space i have which was not allot and it also showed the other line storage space. I click on manage storage and it used to show both

    I was told that I have 14.9 gb of space on my phone when my total is 15gb. I was adviced to free storage and to click on settings and manage my storage by either purchase more or turning off or deleting some of the back ups. When I went in to settings then to icloud it usually would of showed me both phone storage memory and when I started going down my list and turning off some of the apps from back ups of certain app all of a sudden I couldnt no longer see my phone storage memory or my account name for that matter. Now I only see the other line username and storage space that the other phone has.
    What can I do? I used to see the list of all the apps I have on icloud and now its empty and it tells me I have available 13.4 gb available.
    Please advice. Thank you
    Patricia

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • How to import a class, which is not in a package?

    Hi all,
    I have the following problem:
    A class A is not in a package. In another class B, which is in a package (let's say package X) I want to use the class A. Without importing the class A, I get the error "Cannot resolve symbol".
    Using the import statement import A; gives the error ". expected".
    How can I import that class?
    Best wishes to all ...
    Heiko

    > I have the following problem:
    A class A is not in a package. In another class B,
    which is in a package (let's say package X) I want to
    use the class A. Without importing the class A, I get
    the error "Cannot resolve symbol".
    I think not putting a class in a package is a bad practice. Avoid that.

Maybe you are looking for

  • PDF Portfolios and combined PDFs

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/standard/using/WS58a04a822e3e50102bd615109794195ff-7ed d.w.html

  • Patch 8833297 - 11.1.0.7.1 Patch Set Update question.

    Hi The O.S oul5x64 database version 11.1.0.7.0 after applied this patch Patch 8833297 - 11.1.0.7.1 Patch Set Update and went thru the post installation procedure. SQL> select * from v$version; BANNER Oracle Database 11g Enterprise Edition Release 11.

  • GRE Tunnel/NAT with multiple subnets and interfaces

    So, I am not sure if we are trying to accomplish too many things at once and what we are attempting to do is not possible or if we are missing something in our configurations... Here is the situation... We are migrating some equipment between datacen

  • Tips on how to handle situation where client won't pay invoice?

    Hello, We usually request that clients fill out a Direct debit form before going live with their site.  However on a one off occasion, our client was desperate and promised to provide us with the DD before next billing period.  It turns out they have

  • Problem loading vector EPS images

    Hello All- I'm having trouble loading vector EPS files (created in Adobe Illustrator CS2) in the data manager (version 5.5.34.46). I have Photoshop CS2 installed and have run the registry compatibility update. When I select the image to add to my dat