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

List:       xmlbeans-dev
Subject:    RE: XMLBeans 1.02 zip release
From:       "Eric Vasilik" <ericvas () bea ! com>
Date:       2004-06-23 22:47:20
Message-ID: 4B2B4C417991364996F035E1EE39E2E1DCE2CC () uskiex01 ! amer ! bea ! com
[Download RAW message or body]

I imagine that this namespace exists to support the xsi:type which most
likely got inserted because of the call to changeType.
 
-----Original Message-----
From: Jim McLaughlin [mailto:me_at_dogleg@yahoo.com] 
Sent: Wednesday, June 23, 2004 3:43 PM
To: xmlbeans-dev@xml.apache.org
Subject: RE: XMLBeans 1.02 zip release
 
Thanks - appreciate the help. 
I did get it working with the ChangeType, but I do get the added
attribute of: 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance 

I'm sure this can be removed somehow(XmlOptions???). 
BTW - Is HTML ok for this mail list?

Eric Vasilik <ericvas@bea.com> wrote:
	I take this back . SimpleValue is only good when the XmlObject
already supports a given type.  changeType is probably your best bet
	 
	-----Original Message-----
	From: Eric Vasilik 
	Sent: Wednesday, June 23, 2004 11:00 AM
	To: 'xmlbeans-dev@xml.apache.org'
	Subject: RE: XMLBeans 1.02 zip release
	 
	I was just investigating this ... I would suggest using the
SimpleType interface which all XmlObjects support.  I believe that you
can use this to coerce any simple value into one of the know simple
schema types.
	 
	-----Original Message-----
	From: Jim McLaughlin [mailto:me_at_dogleg@yahoo.com] 
	Sent: Wednesday, June 23, 2004 10:58 AM
	To: xmlbeans-dev@xml.apache.org
	Subject: Re: XMLBeans 1.02 zip release
	 
	Nevermind!!! - I got it via the ChangeType() 
	
	Jim McLaughlin <me_at_dogleg@yahoo.com> wrote: 
	Does the XMLBeans 1.02 release scomp utility/code support
anyType to provide for generating/reading the example below:
	
	<MyAnyValue xsi:type="xsd:float">2.34567E+23</MyAnyValue>
	 
	where MyAnyValue is an element of a comlexType "defaulted" to
anyType in an XSD document?
	 
	Is there an example of setting the xsi:type= ... portion of the
string above (aka the xsi:type attribute)
	 
	It looks like it should be available from the Factory class in
the type=X class() via the XmlOptions or from the SchemaType parameter?
	If not, is it in another release (1.03)/CVS?
	 
	 
	
  _____  

	Do you Yahoo!?
	Yahoo! Mail
<http://us.rd.yahoo.com/mail/taglines/*http:/promotions.yahoo.com/new_ma
il/static/protection.html>  - You care about security. So do we.
	
  _____  

	Do you Yahoo!?
	New and Improved Yahoo! Mail
<http://us.rd.yahoo.com/mail_us/taglines/100/*http:/promotions.yahoo.com
/new_mail/static/efficiency.html>  - 100MB free storage!
  _____  

Do you Yahoo!?
Yahoo! Mail
<http://us.rd.yahoo.com/mail_us/taglines/security/*http:/promotions.yaho
o.com/new_mail/static/protection.html>  - You care about security. So do
we.

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C45939.5E9D46B0">
<link rel=Edit-Time-Data href="cid:editdata.mso@01C45939.5E9D46B0">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }

 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.EmailStyle19
	{mso-style-type:personal;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I imagine that this namespace exists to
support the <span class=SpellE>xsi<span class=GramE>:type</span></span> which
most likely got inserted because of the call to \
changeType.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Jim McLaughlin
[mailto:me_at_dogleg@yahoo.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, June 23, 2004
3:43 PM<br>
<b><span style='font-weight:bold'>To:</span></b> xmlbeans-dev@xml.apache.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: XMLBeans 1.02 zip
release</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks - appreciate the help. <br>
I did get it working with the ChangeType, but I do get the added attribute of: <br>
xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>
 <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
I'm sure this can be removed somehow(XmlOptions???). <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>BTW - Is HTML ok for this mail list?<br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>Eric Vasilik
&lt;ericvas@bea.com&gt;</span></i></b> wrote:<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in \
4.0pt; margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I take this back . SimpleValue is only
good when the XmlObject already supports a given type.<span
style='mso-spacerun:yes'>&nbsp; </span>changeType is probably your best \
bet<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Eric Vasilik <br>
<b><span style='font-weight:bold'>Sent:</span></b> <st1:date Year="2004" Day="23" \
Month="6">Wednesday, June 23, 2004</st1:date> <st1:time Minute="0" Hour="11">11:00 \
AM<br> </st1:time><b><span style='font-weight:bold'>To:</span></b>
'xmlbeans-dev@xml.apache.org'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: XMLBeans 1.02 zip
release</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I was just investigating this &#8230; I
would suggest using the SimpleType interface which all XmlObjects support.<span
style='mso-spacerun:yes'>&nbsp; </span>I believe that you can use this to coerce any
simple value into one of the know simple schema types.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Jim McLaughlin
[mailto:me_at_dogleg@yahoo.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> <st1:date Year="2004" Day="23" \
Month="6">Wednesday, June 23, 2004</st1:date> <st1:time Minute="58" Hour="10">10:58 \
AM<br> </st1:time><b><span style='font-weight:bold'>To:</span></b> \
xmlbeans-dev@xml.apache.org<br> <b><span style='font-weight:bold'>Subject:</span></b> \
Re: XMLBeans 1.02 zip release</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Nevermind!!! - I got it via the ChangeType() <br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>Jim McLaughlin
&lt;me_at_dogleg@yahoo.com&gt;</span></i></b> wrote: <o:p></o:p></span></font></p>

<div>

<div>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Does the XMLBeans 1.02 release scomp utility/code&nbsp;support anyType
to provide for generating/reading the example below:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
&lt;MyAnyValue xsi:type=&quot;xsd:float&quot;&gt;2.34567E+23&lt;/MyAnyValue&gt;<o:p></o:p></span></font></p>


</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>where MyAnyValue is an element of a
comlexType&nbsp;&quot;defaulted&quot; to&nbsp;anyType in an XSD \
document?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Is there an example of setting the xsi:type= ... portion of the string
above (aka the xsi:type attribute)<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>It looks like it should be available from the Factory class in the
type=X class() via the XmlOptions or from the SchemaType \
parameter?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>If not, is it in another release (1.03)/CVS?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Do you Yahoo!?<br>
<a
href="http://us.rd.yahoo.com/mail/taglines/*http:/promotions.yahoo.com/new_mail/static/protection.html">Yahoo!
 Mail</a> - You care about security. So do we.<o:p></o:p></span></font></p>

</div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Do you Yahoo!?<br>
<a
href="http://us.rd.yahoo.com/mail_us/taglines/100/*http:/promotions.yahoo.com/new_mail/static/efficiency.html">New
 and Improved Yahoo! Mail</a> - 100MB free storage!<o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Do you Yahoo!?<br>
<a
href="http://us.rd.yahoo.com/mail_us/taglines/security/*http:/promotions.yahoo.com/new_mail/static/protection.html">Yahoo!
 Mail</a> - You care about security. So do we.<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>




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

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