[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-452) Problems With XML Schema to
From:       "Saurabh (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2011-03-07 9:23:59
Message-ID: 1005349180.576.1299489839412.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XMLBEANS-452?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003296#comment-13003296 ] \


Saurabh commented on XMLBEANS-452:
----------------------------------

I am adding file FixFor-XMLBEANS-452.patch which you can review and if you find it to \
be correct then you can use it.

> Problems With XML Schema to Instance Conversion Program
> -------------------------------------------------------
> 
> Key: XMLBEANS-452
> URL: https://issues.apache.org/jira/browse/XMLBEANS-452
> Project: XMLBeans
> Issue Type: Bug
> Components: Tools
> Affects Versions: Version 2.5
> Environment: The problem is not platform specific and is reproducible on all \
>                 environments
> Reporter: Saurabh
> Priority: Critical
> Fix For: unspecified
> 
> Original Estimate: 0h
> Remaining Estimate: 0h
> 
> We get Instance out of a Schema Element using the createSampleForType method of \
> org.apache.xmlbeans.impl.xsd2inst.SampleXmlUtil. We have observed two problems
> 1. This program does not give a complete instance. If the number of child elements \
> in the instance is large(Running into Thousands) then this program gives a \
> truncated instance. 2. Elements in a XML Schema can have a "default" or "fixed" \
> value. The instance generated by this program does not respect the "default" value \
> as specified in the schema. We overcame these two problems by changing \
> org.apache.xmlbeans.impl.xsd2inst.SampleXmlUtil and we want to share the patch with \
> you. You can review it and use it if you feel it is correct.

--
This message is automatically generated by JIRA.
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic