Problem with the processing of my DOM tree

hello,
here a small part of the XML document that i have to process....
<questestinterop>
*<item title="Capital of France" ident="I01" maxattempts="6">
<qticomment>
This Item is the first example to be used in the QTI XML Binding Base Document.
</qticomment>
<itemmetadata/>
**<presentation label="Resp001">
<response_lid ident="LID01">
<material>
<mattext>What is the Capital of France ?</mattext>
</material>
<render_choice shuffle="Yes">
<response_label ident="LID01_A">
<material>
<mattext>London</mattext>
</material>
</response_label>
I can access to the attribute of the "item" tag (marked with * symbol),by creating a node as follow: (item is a childnode of questestinterop, my root tag)
Node root = document.getLastChild();
               Node node = root.getFirstChild();
               while (!node.getNodeName().equals("item")){                    
                    node =node.getNextSibling();
then i process on this node to get the attributes of my "item" tag...
but after i want to access to the "presentation" (marked with ** symbol)tag that is a ChildNode of my previous node by using
node = node.getFirstChild();
(in fact as I do in the parentNode)
but then my node type is TEXT and I dont understand. then i m not able to process it as the previous one. I was expecting it to be a DOCUMENT_NODE!!
I want to be able to go deeper in the tree because I need to extract data from there.     
(I was thinking of going deeper by taking each time i needed it the childnode of my existing node then do a while loop to access to the needed tag.)
Maybe i am taking the problem on a wrong way.
Can someone give me some hints or tips, i m really stuck.          
thank you
francois

i ve found my mistake,
dont crack ur head for me
merci
francois

Similar Messages

  • Problem with the Process chain

    Hi,
    I created a Process chain and moved to Q for testing. The transport was failed because some objects are locked in BQ system. I unlocked them and moved the TR again. Now the transport was successful but the changes to the process chain are not reflecting in the Q system. There are no errors in the transport log but we have some warning messages which can be ignored. What could be the reason?
    Thanks

    Yes, When I get into the change mode I can see the changes. Thanks a lot for your reponse.
    Full Points awarded.
    Thanks again.

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • While installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    while installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    Creative Cloud Help / Error downloading Creative Cloud applications
    http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html

  • In the middle of the installation processing, this has appeared: "There is a problem with the windows installer package. A program is required for this install to complete could not be run." my question is, what is that specific program?

    in the middle of the installation processing, this has appeared: "There is a problem with the windows installer package. A program is required for this install to complete could not be run." my question is, what is that specific program?

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • I want to upgrade from Tiger to Snow Leopard on my 2008 MacPro. How do I avoid problems with the upgrade process?

    I want to upgrade from Tiger to Snow Leopard on my 2008 MacPro. How do I avoid problems with the upgrade process?

    #1 Do a complete bootable backup of your drive before upgrading. That way should anything happen you can revert back to the start and try again.
    Make sure you meet Snow Leopard 10.6 Technical Requirements - http://support.apple.com/kb/SP575
    You might also want to make sure you don't have software issues with SL:
    A Mac OS X 10.6 Snow Leopard Application Compatibility List - http://snowleopard.wikidot.com/

  • Problem with the standard process HR_PD_MOVE_POSITION

    Hello.
    I try to use the standard process HR_PD_MOVE_POSITION to change an assignment of position. I started the process via the link Start Organizational Process after that filled an Adobe-form. Later a WF 04000035 which links with the process, started. But the first step of WF ended with the status ERROR.
    In the Step History tab (transaction SWI1) I see the next errors:
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Exception occurred - Error when starting work item 000000007031
      PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
        CREATE - Error when creating a component of type 'Step'
          CREATE_WIM_HANDLE - Error when creating a work item
            CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
              EVENT_RAISED - Error updating the process object
    Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
      EVENT_RAISED - Error updating the process object
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
      Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
    Could you tell me where a mistake can be?
    Thanks.

    Hi,
    Could you please share if this error is resolved & how?
    Thanks,
    Raj

  • Problem with XSQLRequest.process

    Problem with XSQLRequest.process:
    I'm trying to run XSQL files using XSQLRequest.process. I'm working on the chapter 3 examples in Muench's book and got FAQXML.xsql running okay but have had problems with: FAQhtml.xsql BTW I am calling them from a different directory and am using 9iAS under win2K SP3.:
    I've fixed errors such as:
    End tag does not match start tag 'img'.
    by adding </img>
    and:
    End tag does not match start tag 'META'.
    by removing the <head> section from the xsl.
    But now i've got:
    XML parse error at line 2, char 1
    Expected 'EOF'.
    and don't have a clue.
    Some questions I have are:
    --Why don't I get these errors when I run the same files from Internet Explorer?
    --Where is the intermediate XML file?
    --How will I get HTML output?
    I'd appreciate any help you could suggest.
    Peter.
    Here is the .xsql and some of the .xsl:
    <?xml version="1.0"?>
    <!-- FAQHTML.xsql: Show FAQ.xsql in HTML Format for browsers -->
    <?xml-stylesheet type="text/xsl" href="http://localhost/ch03/FAQ-In-HTML.xsl"?>
    <xsql:include-xsql href="FAQ.xsql" xmlns:xsql="urn:oracle-xsql"/>
    <!-- FAQ-In-HTML.xsl: Transform ROWSET/ROW format into HTML Format -->
    <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    -->
    <body>
    <center>
    <table border="0">
    <tr>
    <th>Question</th>
    <th>Difficulty</th>
    </tr>
    <xsl:for-each select="ROWSET/ROW">
    <tr>
    <td>
    <table border="0" cellspacing="0">
    etc...

    XSQL version is 1.0.2.0.
    Well, in answer to your import question, yes. Xerces can import Xerces documents properly. Thus if we use Xerces importNode on a document parsed/created using Xerces' DOM implementation, the attribute values stay.
    We are using Xerces because it is the foundation of our infrastructure layer (which is partly because it's used in Catalina).
    Question. Is it possible that XSQLParserHelper which, as you say, uses an instance of oracle.xml.parser.v2.DOMParser to parse the document, is having trouble with different versions of DOM? I ask because we've noticed that to use Catalina and have its class loader to function successfully, we had strip all the DOM classes from xmlparserv2.jar
    importNode snippit ...
    public void service(CioServletRequest req, CioServletResponse resp) throws ServletException {
    DomResponse respm = resp.createDomResponse();
    Document dbdoc = respm.getDocument();
    XSQLRequest req = new XSQLRequest( pageUrl );
    ByteArrayOutputStream ostream = new ByteArrayOutputStream();
    req.process(params, ostream, new PrintWriter(System.err));
    String s = new String(ostream.toByteArray());
    Document retDoc = respm.parseDocument(s);
    dbdoc.appendChild(dbdoc.importNode(retDoc.getDocumentElement(), true));
    Hope this helps.
    Steve.
    null

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • Problem with css processing in Firefox8 on Win7.

    Hi guys. I have a problem with css processing in Firefox8 on Win7. I need to make div which width and left css properties should be dynamically changed. Inside this div i have an swf object. When i change width and left css styles for my div, it jumps on the page, but other browsers render that well. What can you suggest to fix this problem? Thanks

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • I cant connect with my imessage and facetime in my iphone; i already upload de i os 7.02 but the message still have it; it said that they have problem with the network; i reset the network and doesnt work

    I cant connect with my imessage and facetime in my iphone; i already upload de i os 7.02 but the message still have it; it said that they have problem with the network; i reset the network and doesnt work

    Hello, Toro Silva. 
    Thank you for visiting Apple Support Communities.
    The steps in the section labeled Unable to activate FaceTime or iMessage with phone number and Apple ID after waiting 24 hours (iPhone only) of the article below, should help resolve the issue.  Make sure to create a current backup prior to processing these steps.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Cheers,
    Jason H

  • There is a problem with the printer or ink system.

    Will not print. Turn it off then back on; will print one document, but not the last page. Try printing only the last page, but will not print. Will not print one page documents at all. Will not print more than one document without repeating this process.
    First Error message: "There is a problem with the printer or ink system. Turn the printer off, then on. If you continue to get this message, contact HP." Out of warranty.
    Tried this page: http://support.hp.com/us-en/document/c03081973
    Which led me to this page: http://support.hp.com/us-en/document/c03262508
    Now that the ink cartridges are removed as instructed, the carriage will not return to the center of the access area.

    Hey @KennyBee51,
    Thanks again for getting back to me regarding this issue.
    I would have to agree that the HP Officejets Printhead system is defective. I would recommend at this time that you contact our Technical Support queue by phone to explore additional hardware options.
    HP Technical Support can be reached at: 800-474-6836.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    HP Worldwide Contact
    It has been a pleasure working with you. I wish you luck going forward with this!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. after Office Updates.

    I cant cant use mail merge feature in Winword in conjunction with Abobe Acrobat 10 (pdfmaker add-in) after the recent Office April Windows and Office Updates.
    Here is a quick note from the event viewer:
    The program WINWORD.EXE version 14.0.7134.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel. 
     Process ID: 1138 
     Start Time: 01d07dcede19c458 
     Termination Time: 15 
     Application Path: C:\Program (file:///C:/Program) Files (x86)\Microsoft Office\Office14\WINWORD.EXE 
     Report Id: 
    Microsoft Word: Accepted Safe Mode action : Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. If you have seen this message multiple times, you should disable
    this add-in and check to see if an update is available. Do you want to disable this add-in?.
    I do not wish to disable the pdfmaker add-in as I use it to run mail merge on WORD and send 10s and 1000s of pdfs via email to external users. I am not sure what are my options here and I wish
    someone could help me get to the root cause of the matter.
    My environment is as follows:
    Windows 7 x64 SP1
    Office 2010 v 14.0.7128.5000
    Adobe Reader MUI X and Adobe Acrobat X
    Feroze

    Hi,
    As the event log indicated, this is due to acrobat pdfmaker office com addin doesn't work well with Microsoft Word.
    I would suggest you go ahead and try to upgrade your Adobe product to the latest version and see if issue persists.
    Or contact the support of Adobe and see if there is a known compatibility issue or not.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error thread java : problem with the function "resume 0x***"  (forum sun)

    One problem with the function of jdb occured when I tried to use it to
    pilot the processor with differents threads. In fact, I use a simple example with 2 threads.
    I stop the two threads with two breakpoint, and I want to resume one or the other (with the function "resume 0x****"), the one wich I resumed stop again on the breackpoint and I decide again to resume one or the other. All of that to obtain a tree of execution.
    I give you the code of the class and the code of jdb.
    CLASS: (it's just a object Room with a variable degre that I increment and decrement with two threads increase and decrease)
    public class Test{
         public static void main(String[] args){
              Room r = new Room();
              decrease de = new decrease(r);
              increase in = new increase(r);
              de.start();
              in.start();
    class Room {
         private volatile int degre=20;
         public void more(){
         degre += 4;
         public void less(){      
         degre -= 3;
    class decrease extends Thread{
    private Room room;
    public decrease(Room r){
              room =r;
    public void run(){
    try{ 
         while (!interrupted()){ 
              room.less();
    catch(InterruptedException e) {}
    class increase extends Thread{
    private Room room;
    public increase(Room r){
         room =r;
    public void run(){ 
         try{ 
              while (!interrupted()){
                   room.more();
    catch(InterruptedException e) {}
    JDB:
    Initializing jdb ...
    stop at Test:7Deferring breakpoint Test:7.
    It will be set after the class is loaded.
    runrun Test
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint Test:7
    Breakpoint hit: "thread=main", Test.main(), line=7 bci=30
    7 in.start();
    main[1] stop at room:16
    Set breakpoint room:16
    main[1] stop at room:20
    Set breakpoint room:20
    main[1] resume
    All threads resumed.
    >
    Breakpoint hit: "thread=Thread-0", room.less(), line=20 bci=0
    20 degre -= 3;
    Thread-0[1] threads
    Group system:
    (java.lang.ref.Reference$ReferenceHandler)0x10d Reference Handler cond. waiting
    (java.lang.ref.Finalizer$FinalizerThread)0x10c Finalizer cond. waiting
    (java.lang.Thread)0x10b Signal Dispatcher running
    Group main:
    (decrease)0x146 Thread-0 running (at breakpoint)
    (increase)0x147 Thread-1 running (at breakpoint)
    (java.lang.Thread)0x148 DestroyJavaVM running
    Thread-0[1] resume 0x147
    Thread-0[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] print degre
    degre = 24
    Thread-1[1] resume 0x146 //It's here the problem, thread 0x146 have to stop on the //next breakpoint of decrease but nothing happen
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] clear
    Breakpoints set:
    breakpoint Test:7
    breakpoint room:16
    breakpoint room:20
    PS: I tried many other examples with other class and other kind of breakpoints, but, in any cases, on thread doesn't manage to resume. When I try with general resume (no specification of the thread), It works but it isn't interresting for me because I want to decide wich thread continue his execution.

    Hi,
    I have read the FAQ of the JMF.
    The problem was the jar files of the JMF were not in the JRE\BIN\EXT
    folder of the Java runtime!
    now it works!
    thanks
    Reg

Maybe you are looking for