Commons JXPath
  1. Commons JXPath
  2. JXPATH-21

Child not created when setting attribute

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      JXPath automatically creates attributes if the element already exists, but does
      not call AbstractFactory.createObject() if the element does not exist. This was
      noticed when using xpath statements to create a DOM model.

        Activity

        Hide
        Dmitri Plotnikov added a comment -

        Indeed, NullPointer would call the parent pointer's createPath when creating a
        child, but not when creating an attribute.

        Show
        Dmitri Plotnikov added a comment - Indeed, NullPointer would call the parent pointer's createPath when creating a child, but not when creating an attribute.

          People

          • Assignee:
            Unassigned
            Reporter:
            Don Brown
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development