Need simpler API for inserting XmlObject into "any"
---------------------------------------------------

                 Key: XMLBEANS-302
                 URL: http://issues.apache.org/jira/browse/XMLBEANS-302
             Project: XMLBeans
          Issue Type: Bug
          Components: Binding
    Affects Versions: Version 2.2.1
            Reporter: Hacking Bear


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!



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to