Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2296

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4
    • None
    • None
    • any [XP, Linux... never tried on Solaris, But I think it might be true for solaris also]
    • fp3

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            nnravi Ravindra Nandal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: