ImportNode() does not import attribute values

I want to import one part of xml document into another xml document. I use the Document.importNode() method to do this. Here's my code snippet:
Document newdoc = db.newDocument();
Node importedNode = newdoc.importNode(xmlnode,true);
But as the result the xml part is copied into importedNode, but attribute values are empty. What do I do wrong? I'm really lost, so thanks for ANY help.

Well, the importNode() method should do this. But while using Xerces (I must use this one (currently in 1.4.4 version), not any other parser) you'll find out there is a bug in this method. It could work for you (maybe), but for me it just removes all the attribute values. So I'm still looking for an answer.
I wrote one very simple (not generic, which is enough for my case) method to just hack the behaviour, and I entered bug to Xerces bugzilla, but nobody cares ;O( for it. Sad, but true.

Similar Messages

  • Canon 5D MK II white balance set as K does not import correctly

    With a 5D II and the Kelvin white balance set in the camera the WB does not import correctly for RAW files and LR 2.4. For example when set to a specified white balance as a Kelvin setting, for example 5200, and then import the raw files with "As Shot" specified or subsequently WB to "As Shot" in Develop module the white balance is set to 4850 +1 (in the example of 5200). The pre set WB options provided inthe camera do work correctly.
    Does anyone know if there is a way to set this up to work correctly? Has anyone else experienced this issue?
    Thank you.

    Does anyone know if there is a way to set this up to work correctly? Has anyone else experienced this issue?
    Lightroom does work correctly. The numbers are different, but the appearance ot the colour temperature matches. The way I understand it, cameras don't actually store Kelvin numbers, but store colour space co-ordinates instead. LR and your Canon are interpreting the RAW values into different colour spaces, so the kelvin values and tint numbers will differ.
    Hal

  • Visual Studio 2012 SharePoint Project Error : The partial project item type does not have a value for this property

    Hi,
    I am getting this error from visual studio 2012 whenever i try to create the following project types:
    - Workflow Custom activity
    - Web parts
    The error is as mentioned below
    "The partial project item type does not have a value for this property"
    Due to this the when I add above type of items in my project, they show a red cross icon against them.
    Please let me know If have you any solution?

    Hi
    I had same issue. Below is the solution
    Installing
    "Visual Studio 2012 Update 3" usually solves this problem. (You can download it through microsoft's official site at
    "http://www.microsoft.com/en-in/download/details.aspx?id=39305")
    Hansraj Rathva

  • The selected context node does not have attributes - Message no. SWDP_WB_TO

    Hello,
    I am trying out the example in web dynpro documentation -> Creating a Simple Flight Info Application
    and in part 3 steps 11 - 13 I get the following error
    The selected context node does not have attributes
    and the associated message class and # is :
    Message no. SWDP_WB_TOOL467
    can anyone please help ?

    Hi Raj,
    Have you done the steps 7 and 8 as described
    7.      Create an additional node called u201CflightSu201D, this time with the cardinality 0..n.
    8.      Use the Create Using Wizard option of the context node again to define attributes from the SFLIGHT structure for this new node (see part 1, step 15). Choose the following fields: CARRID, CONNID, FLDATE, PRICE and PLANETYPE.
    See the flights node , if there are no attributes the perform the steps as described in 8.

  • In a purchase order for 3 GR's Quantity does not equal the value

    Hi,
    I have found the difference in one purchase order, there have been 3 GRs where the Qty does not equal the Value.  How has this happened?
    Any guesses why the difference has come.
    Thanks&regards,
    Veena

    Hi Vishal,
    In po history for agt 3 Gr's  Quantity does not equal the values. I hope the difference is Movement types. But exactly where to check this movements i am not getting.
    Can you tell me this which T.code.
    Tx,

  • Report similar to MC$4 that does not show absolute values

    Hi all,
    We need a report similar to Report similar to MC$4 which has the same drilldown capabilities but does not show absolute values, and instead shows the proper (actual) values.
    Or if its possible to change something in the MC$4 report to show the actual values and not the absolute.
    Thanks in advance!
    George

    HI
    Your input criteria should contain all plant numbers and the period to be analyzed.  Execute the report and then select:  Plant Analysis\Export\Transfer to XXL\Deselect all options and tick Plant, Storage Location and Month.  Follow the options to export to Excel.  Report will be based on Plant, Storage location and Month.
    Regards

  • ME23n , Does not shows the values correctly in print preview

    Hi,
    When viewing a PO using ME23n , it does not shows the values correctly in the print preview.
    For example;
    This is the vendor & its address.  (check attached image img1.jpg)
    ZERANDIB BUSINESS APPLIANCES
    Number-122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO-04
    When displaying the print preview, it shows only some parts of the above address
    Shows only; (check attached image img2.jpg)
    ZERANDIB BUSINESS APPLIANCES
    PO BOX 41,112,REID AVENUE
    These values are getting from a table called LFA1. I have checked that table & in that table all the values exists correctly.
    I have noted issue is with, having only a single word. (If address or name having only a single word, that is without spaces, it will not going to show in the print preview) -
    In the above example, it is not showing Number-122/A and  COLOMBO-04 (Its a single word. No spaces there)
    If its like --> Number - 122/A   &  COLOMBO - 04 ,  then it will display in the print preview correctly (where there are spaces after - mark)
    check img3.jpg
    If its having more than one word, then it will display correctly in the print preview.  As below;
    ZERANDIB BUSINESS APPLIANCES
    Number - 122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO - 04
    If its 2 or more words, it shows correctly.
    If its 1 word, then its not showing!
    Why it is happening like that? Any ideas how to resolve this issue?
    regards.
    zerandib

    It turns out that this problem went away after the program crashed.  Everything seems to be working well now.

  • The report does not accept the value for apps.fnd_profile.value('USER_ID')

    Hi,
    I followed the below note and added a report to my SSHR menu.
    How To Add A Report To A 11i Self Service Menu [ID 334847.1]
    In my report , I have a condition in the query
    and a.created_by =apps.fnd_profile.value('USER_ID')
    When the report is submitted as a request , it works fine., however the same report when called from the self service page does not accept any value for apps.fnd_profile.value('USER_ID') .
    Is there a workaround to handle this problem.
    regards

    hi,
    I had already tried the option apps.fnd_global.USER_ID too.
    However it does not accept the value for apps.fnd_global.USER_ID.
    We want to call the reports in SSHR using oaf and at the same time the records that are pending for approval created by the employee should only be visible.
    regards
    Maya

  • Using Firefox 3.6.20 and Windows XP Home SP3. Firefox sporatically deletes bookmarks from the bookmarks toolbar. Additionally, when I try to import from a saved HTML file, Firefox does not import the complete file. Results are inconsistent.

    Using Firefox 3.6.20 and Windows XP Home SP3. Firefox sporatically deletes bookmarks from the bookmarks toolbar. Additionally, when I try to import from a saved HTML file, Firefox does not import the complete file. Results are inconsistent.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Aperture Does Not Import Videos using IMPORT FOLDER AS PROJECTS

    SOLVED - Aperture 3.2.1 does not import videos using "Import Folder as Project"
    After 2 days of trying to figure this out (actually around 2 hours total) I've finally managed to import all my photos & videos last year. 200 Gigs 54,000 files. First few tries resulted with referenced photos only, no videos. I had no luck with Google, even tried moving a couple of .plist as mentioned from this thread: https://discussions.apple.com/message/11188017?messageID=11188017#11188017 - this worked for some but not for me. Some issues were solved by NOT selecting "Raw Only", this will cause Aperture to skip your videos.
    Thank you to these people who took time to share. In return I am posting my micro contribution to the Aperture Community. FILE > SWITCH TO LIBRARY > then create a new library. You should be able to import your photos with videos in folders.
    I hope this gets into Google soon. :-)

    , I see only the file, where these photos are, not the photo names or thumbs inside the file (Aperture import path).
    You mean in the Aperture Import panel the folder, where the jpegs should be, is empty?
    Then you may have excluded jpegs from import in your "Import Settings".
    Check the above settings in the "Import Settings" options in the "Import Window". I.e-make sure the Raw+Jpeg Pairs option is set to "Both", even if you do not import raws.
    After reassembled all the programs to a new hard drive in Mac Pro
    Is this new Harddrive your system volume? And are the jpegs you wat to import located on this drive? Or are the on another external volume? If yes, how is this volume formatted?
    Have you checked the permissions and ownership of the jpegs?

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Function Previous() does not retrieve good values

    Hello Forum,
    I'm using BO XIR2, Desktop Intelligence.
    I'm displaying some quantities and turnover by month and I try to compute the % of increase/decrease between a month and the previous month. The report looks like that :
    .........................Jan......%.......Feb........%.......March........%.......Apr
    Quantity...............10..................15........50.............16........-6
    Turnover............. 3.5....................4........14............3.9.....-2.5
    I use fonction Previous to compute the % of discrepancy. For example, for quantity : % = (qty-Previous(qty))/Previsous(qty)
    My problem : for some months, the Previous(function) does not retrieve the value of the previous month. It usually adds 1 or 2 to the value of the previous month.
    Does anyone face the same problem ?
    Best Regards

    Hi,
    try sorting your data in the SQL query based using the month number (ascending).
    Regards,
    Stratos

  • IPhoto does NOT import " .pictClipping " files ?

    Hi,
    I copied pictures of artists from Amazon on the Web and put them together with the songs in iTunes Artwork. So far so good.
    I wanted to import these pics in iPhoto. I dragged them on the desktop en tried to import them via iPhoto 'Add to library'.
    Didn't work. iPhoto does NOT import " .pictClipping " files.
    What did I do wrong ? What can I do ?
    How can I get these pics in iPhoto ?
    Thanks for some light in my darkness...
    John
    Macmini G4   Mac OS X (10.4.3)   Maxtor 300 Gb HD
    Macmini G4   Mac OS X (10.4.3)   Maxtor 300 Gb HD

    Hi JOhn,
    Dragging the album cover out of iTunes either by the album art window or by the "get info" window will just give you a clipping file that cannot be opened by a graphic program. It is just a clipping that Finder will open.
    Did you download the images from Amazon and save them to your hard drive, or did you copy/paste them from Amazon to iTunes song "get info" window?
    If you just did a copy.paste, then I suggest you go back to Amazon and download the images to your hard drive. then import into iPhoto. There might be some third party programs that will download the art while your songs are playing on iTunes to make it easier for you. they usually put them on a folder on your hard drive somewhere.
    there's even an Applescript program to export your artwork from iTunes and copy it to an image file at a specified location.
    http://www.versiontracker.com/dyn/moreinfo/macosx/19567
    There are all kinds of ways of doing this so search around Version Tracker for "itunes album art" for other programs to make it easier for you.
    Lori

  • Constant PCORP for Ledger !* does not contain any value

    Dear SAP Guru's,
    I have a user attempting to process a credit memo via t-code FB75 and is receiving the following error message while attempting to post the transaction.
    Constant PCORP for Ledger !* does not contain any value
    The user was able to post to other customer accounts but this one.  The customer master looks fine. 
    POINTS AWARDED.
    Thanks!

    Hi,
    Pls go to the following path
    GL accounting(new)-business transaction-Doument Spiltting-Activate doument spiltting.
    Praobaly you would have chosen the standary a/c assignment check box and constant.
    That's y this error occured even i have got same error and it resolved now.

  • Function Does Not Return any value .

    Hi ,
    I am wrtting the below funtion without using any cursor to return any message if the value enters by parameters
    does not match with the value reterived by the function select statement or it does not reterive any value that
    for the parameters entered .
    E.g:
    CREATE OR REPLACE FUNCTION TEST_DNAME
    (p_empno IN NUMBER,p_deptno IN NUMBER)
    RETURN VARCHAR2
    IS
    v_dname varchar2(50);
    v_empno varchar2(50);
    V_err varchar2(100);
    v_cnt NUMBER := 0;
    BEGIN
    SELECT d.dname,e.empno
    INTO v_dname ,v_empno
    FROM scott.emp e , scott.dept d
    WHERE e.empno=p_empno
    AND d.deptno=p_deptno;
    --RETURN v_dname;
    IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NULL THEN
    v_err :='Not Valid';
    RETURN v_err;END IF;
    ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NOT NULL THEN
    RETURN v_dname; END IF;
    ELSE
    RETURN v_dname;
    END IF;
    END;
    Sql Statement
    SELECT TEST_DNAME(1234,30) FROM dual
    AND IF I enter a valid combination of parameter then I get the below error :
    e.g:
    SQL> SELECT TEST_DNAME(7369,20) FROM dual
    2 .
    SQL> /
    SELECT TEST_DNAME(7369,20) FROM dual
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SCOTT.TEST_DNAME", line 24
    Where I am missing .
    Thanks,

    Format you code properly and look at it:
    CREATE OR REPLACE
       FUNCTION TEST_DNAME(
                           p_empno IN NUMBER,
                           p_deptno IN NUMBER
        RETURN VARCHAR2
        IS
            v_dname varchar2(50);
            v_empno varchar2(50);
            V_err varchar2(100);
            v_cnt NUMBER := 0;
        BEGIN
            SELECT  d.dname,
                    e.empno
              INTO  v_dname,
                    v_empno
              FROM  scott.emp e,
                    scott.dept d
              WHERE e.deptno=d.deptno
                AND e.empno=p_empno
                AND d.deptno=p_deptno;
            --RETURN v_dname;
            IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NULL
                  THEN
                    v_err :='Not Valid';
                    RETURN v_err;
                END IF;
            ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NOT NULL
                  THEN
                    RETURN v_dname;
                END IF;
             ELSE
               RETURN v_dname;
           END IF;
    END;
    /Both p_empno and p_deptno in
    SELECT TEST_DNAME(7369,20) FROM dualare not null. So SELECT will fetch some v_dname and v_empno. Since p_empno and p_deptno iare not null your code will go inside outer IF stmt and will execute its THEN branch. That branch consist of nothing but inner IF statement. And since v_dname is NOT NULL it will bypass that inner IF and exit the outer IF. And there is no RETURN stmt after that outer IF. As a result you get what you get - ORA-06503. Also, both if and elsif in your code check same set of conditions which makes no sense.
    SY.

Maybe you are looking for

  • Error while upload a file in GLPLUP

    hi When i try to upload a file in GLPLUP , iam  getting this error, please forward your solutions to solve this. Value 000 in field "Period" is less than 1 Message no. K9019 Diagnosis In either the initial transaction screen or within layout definiti

  • Help required in setting and getting attribute

    here i have created a jsp file in the first file the user enter his names and in second jsp file the user get his name and third file i need tp pass the parameter <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <titl

  • Unexplainable pixilating of the screen HELP

    We've had an iMac since 2008/2009 and yesterday the screen started to pixelate. We've got no explanation for why. My mum used it about an hour before it happened and it was running as normal, an hour later my brother went to use it and the screen was

  • Cannot export query output when using UNION ALL

    Hi I can run a query in SQL Developer 1.5.5 and if it's a SELECT statement it works fine, but if I output the result of several SELECT statements using UNION ALL after some 10,000 records the SQL Developer crashes and it generates a file whose size i

  • Add axis label to a graph in word report

    Hi,     Is there a way to add an axis label for the graph in a word report? Thanks!    Tom Solved! Go to Solution.