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

Need simpler API for inserting XmlObject into "any"

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.2.1
    • Fix Version/s: None
    • Component/s: Binding
    • Labels:
      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

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

              Dates

              • Created:
                Updated: