XPath API's does not recognize or find an element added in DOM object runtime.
------------------------------------------------------------------------------

         Key: XALANJ-2296
         URL: http://issues.apache.org/jira/browse/XALANJ-2296
     Project: XalanJ2
        Type: Bug

  Components: XPath, DTM, XPath-API, parse-or-compile  
    Versions: 2.4    
 Environment: any [XP, Linux... never tried on Solaris, But I think it might be 
true for solaris also]
    Reporter: Ravindra Nandal


I apologize for if I am making any mistake creating this bug...
Here it goes...
In our program we read an XML document from file and parse(DOM Parser) against 
the DTD. We get the DOM Document object using parser to modify the document, in 
this case we are adding new element at particular place in the document, we are 
using XPath to search through the position where new element to be inserted or 
added to. In the same program in another place it tries to find the new element 
using XPath expression against the same DOM document that has been modified 
above by XPath Evaluator API's, it does not find but if you look in the 
document object the new element is there. I can find the new element by normal 
DOM API like getElementByTagName() method... More over I can traverse through 
the new element by executing an XPath expression to an element that is around 
the new element. Again if I convert the modified DOM document into text string 
and parse again through parser to get the new DOM Document object... it works 
fine with new DOM document object...

I am not sure if I am able to explain everything here... Please drop me an 
e-mail if you have any questions. I also not sure if this is a bug or there is 
way to around this problem.

Please respond in either case.

Thanks,
- Ravi


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to