You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Dan Diephouse (JIRA)" <xm...@xml.apache.org> on 2005/05/08 22:08:08 UTC

[jira] Created: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Ability to get schema as an XmlObject or DOM tree
-------------------------------------------------

         Key: XMLBEANS-152
         URL: http://issues.apache.org/jira/browse/XMLBEANS-152
     Project: XMLBeans
        Type: Improvement
    Versions: Version 2 Beta 1    
    Reporter: Dan Diephouse


Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12313074 ] 

Dan Diephouse commented on XMLBEANS-152:
----------------------------------------

Excellent! Thanks Ian. This looks like it should be farely easy to tie into XmlBeans then too if someone gets around to it.

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=all ]
     
Dan Diephouse resolved XMLBEANS-152:
------------------------------------

    Fix Version: Version 2
     Resolution: Fixed

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse
>     Assignee: Radu Preotiuc-Pietro
>      Fix For: Version 2

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Assigned: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=all ]

Lawrence Jones reassigned XMLBEANS-152:
---------------------------------------

    Assign To: Radu Preotiuc-Pietro

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse
>     Assignee: Radu Preotiuc-Pietro

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Ian P. Springer (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12313060 ] 

Ian P. Springer commented on XMLBEANS-152:
------------------------------------------

Dan, as a temporary solution, you could do something like:

        String schemaName = yourXBean.schemaType().getSourceName();
        String schemaPath = "schema/src/" + schemaName;
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        XmlObject schemaXBean = XmlObject.Factory.parse( classLoader.getResourceAsStream( schemaPath ) );


> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_66878 ]
     
Dan Diephouse commented on XMLBEANS-152:
----------------------------------------

Any word if this is something that will be looked at for 2.0 or if the XMLBeans team even finds this to be a desirable feature?

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12312966 ] 

Dan Diephouse commented on XMLBEANS-152:
----------------------------------------

Let me outline my use case: this is handy with soap (working on XFire) because then I can create a wsdl from the various schemas automagically when a user creates a service. ie a user can do:

public class MyService
{
   XmlObject doSomething(XmlObject bleh);
}

and a WSDL will be built automatically for them. Additionally they can gain the power of JSR 181 annotations on their service.

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12312967 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-152:
-----------------------------------------------

Oh, so this is purely start-from-Java?

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12312972 ] 

Dan Diephouse commented on XMLBEANS-152:
----------------------------------------

Indeed! This is the only part that doesn't work right now. Users need to set the schema documents automatically.

> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-152) Ability to get schema as an XmlObject or DOM tree

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-152?page=comments#action_12312936 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-152:
-----------------------------------------------

We are currently trying to wrap up on V2 features, so it's unlikely that this will make it in this timeframe.
Of course, you understand that saving a SchemTypeSystem to a file means saving the metadata in a binary format which makes it faster to load at runtime, and this also includes a copy of the Schema sources in case you want to get back to them. (see SchemaType.getSourceName() and related).
But yes, if you talk about being able to switch from the compiled Schema* API back to the XmlObject API, I think this is useful and will be on the list to consider for the future.


> Ability to get schema as an XmlObject or DOM tree
> -------------------------------------------------
>
>          Key: XMLBEANS-152
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-152
>      Project: XMLBeans
>         Type: Improvement
>     Versions: Version 2 Beta 1
>     Reporter: Dan Diephouse

>
> Right now SchemaTypeSystem only allows you to save a schema to a File or a Filer interface. It'd be great if you could get out the schema as an XmlObject or DOM tree.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org