Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-302

Need simpler API for inserting XmlObject into "any"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Version 2.2.1
    • None
    • Binding
    • None

    Description

      Currently, one must rely on the cursor API to insert XmlObject into a target object

      Given XMLBean is all about API-friendiness, the prevalent uses of 'any' in XML schema, and inserting one xml object into another (like inserting into a SOAP Body) is a frequent operation, I propose adding following methods to any complexType that takes 'any' elements:

      List<XmlObject> getAllUndeclaredObjects();
      void addUndeclaredObject(XmlObject);
      void removeUndeclaredObject(XmlObject);

      If one can find better names, that would be great!

      Attachments

        Activity

          People

            Unassigned Unassigned
            hackingbear@gmail.com Hacking Bear
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: