You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/09/25 06:21:35 UTC
[jira] Created: (XMLBEANS-62) Avoid class cast exception when compiling older schema namespace
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XMLBEANS-62
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-62
Summary: Avoid class cast exception when compiling older schema namespace
Type: Bug
Status: Open
Priority: Major
Project: XMLBeans
Components:
Compiler
Fix Fors:
Version 2
Versions:
Version 1
Version 2
Version 1.0.3
Version 1.0.3 (jdk1.3 port)
V2 Beta 1
Assignee: Kevin Krouse
Reporter: Dave Remy
Created: Fri, 24 Sep 2004 9:20 PM
Updated: Fri, 24 Sep 2004 9:20 PM
Description:
XMLBeans throws a clapath exception when an older schema namespace is used. see http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1654 for patch submitted by James Strachan. See http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1652 for initial isssue.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report 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-62) Avoid class cast exception when compiling older schema namespace
Posted by xm...@xml.apache.org.
Message:
The following issue has been resolved as FIXED.
Resolver: Kevin Krouse
Date: Thu, 30 Sep 2004 12:06 PM
fixed in v1 and v2. We emit a warning if no schemas are found in a WSDL file.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XMLBEANS-62
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-62
Summary: Avoid class cast exception when compiling older schema namespace
Type: Bug
Status: Resolved
Priority: Major
Resolution: FIXED
Project: XMLBeans
Components:
Compiler
Fix Fors:
Version 2
Version 1
Versions:
Version 1
Version 2
Version 1.0.3
Version 1.0.3 (jdk1.3 port)
V2 Beta 1
Assignee: Jacob Danner
Reporter: Dave Remy
Created: Fri, 24 Sep 2004 9:20 PM
Updated: Thu, 30 Sep 2004 12:06 PM
Description:
XMLBeans throws a clapath exception when an older schema namespace is used. see http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1654 for patch submitted by James Strachan. See http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1652 for initial isssue.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report 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
How to add namespace information to the first 2 elements of the xml file?
Posted by hero Smith <he...@yahoo.com>.
Hi All,
Trying this:
XmlObject.factory.marshal(xml,options);
I have a requirement where I get the xml response
without a namespace and I need to add it myself before
unmarshalling it. However, I need to add namespace to
the first 2 elements of my xml file in order to
unmarshal it correctly. I was trying to find out if
there is a way through xmlOptions?. I have tried few
things and ran into following problems.
1. If I use setLoadSubstituteNamespaces in xmlOptions,
namespace information gets added to all the elements
of my xml.
2. If I do setLoadReplaceDocumentElement,namespace
gets added only to the first element - company.
For some reason, my xml gets unmarshalled properly
only if I am able to set namespace information to the
first two elements. If you see the xml sample below, I
need to set namespace information to the first two
elements company and department.
Right now, the round about I am using happens in 2
steps. I have to unmarshal twice. After first
unmarshal, I use a cursor to that object and set
namespace to the first two fields, and then unmarshal
the toString() of this object again.
Is there any way I can do it in single step?
<company>
<department>
<name/>
<address/>
<purpose/>
</department>
</company>
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Closed: (XMLBEANS-62) Avoid class cast exception when compiling older schema namespace
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://nagoya.apache.org/jira/browse/XMLBEANS-62?page=history ]
Jacob Danner closed XMLBEANS-62:
--------------------------------
Assign To: (was: Jacob Danner)
This is fixed.
When xsd has older namespace result is:
foo2.xsd:0: error: invalid.document.type: Document foo2.xsd is not a schema file
When wsdl has older namespace, result is:
D:\xml\xml-xmlbeans\v2\foo2.wsdl:0: warning: The WSDL foo2.wsdl did not have any
schema documents in namespace 'http://www.w3.org/2001/XMLSchema'
> Avoid class cast exception when compiling older schema namespace
> ----------------------------------------------------------------
>
> Key: XMLBEANS-62
> URL: http://nagoya.apache.org/jira/browse/XMLBEANS-62
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 1, Version 2, Version 1.0.3, Version 1.0.3 (jdk1.3 port), Version 2 Beta 1
> Reporter: Dave Remy
> Fix For: Version 2, Version 1
>
> XMLBeans throws a clapath exception when an older schema namespace is used. see http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1654 for patch submitted by James Strachan. See http://nagoya.apache.org/eyebrowse/ReadMsg?listName=dev@xmlbeans.apache.org&msgNo=1652 for initial isssue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report 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