XmlMerge - new action

Help
Ido
2008-01-01
2013-05-02
  • Ido

    Ido - 2008-01-01

    I'm trying to write a new XmlMerge action. The problems is that the action is not running for the elements under the root element, but only for its child elements.
    For example, the xml structure (original and patch):
    <a>
        <b>
            <c>
                Yada yada yada
            </c>
        </b>
        <d>
            <e>
                Bla bla bla
            </e>
        </d>
    </a>

    The action will only run on elements c & e (and their childs) and not on b & d.
    Do you have any idea why?

     
    • Philipp H. Oser

      Philipp H. Oser - 2008-01-08

      Hello

      Sorry for the slow response (I was away from the office).

      I forwarded your question to the author of XMLMerger (the author does not work directly on the project).
      When looking into the issue I wonder: in some samples in the documentation, the child elements of the root element (in your example d and b) are also affected? What is different in those action implementations?
      Does it help to make a comparative debugging (debug both actions "in action" and look into differences)?

      Cheers,
      Philipp

       
    • Laurent Bovet

      Laurent Bovet - 2008-01-15

      How do you configure your merge? If you use the XPath configuration, you have to set your action as the default to be applied on the root. Just put the line:

      action.default=my.package.MyAction

      in the property file.

       

Log in to post a comment.