Home. 
.

transparent

transparent

transparent

Altova User Forum

Important: this forum was designed to allow Altova users to exchange their experiences with each other; therefore, your question might remain unanswered.
If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Missing attributes Options · View
sskarupa
Posted: Friday, December 30, 2005 1:43:36 PM
Rank: Newbie

Joined: 12/30/2005
Posts: 2
Location: US
I'm relatively new to XMLSpy but I am struggling with something that seems pretty fundemental.

In the Text view for a schema I have defined the following element:

Code:
<xs:element name="GetInternalAccountById">
  <xs:complexType>
     <xs:sequence>
    <xs:element name="internalAccountId" type="xs:long minOccurs="1" maxOccurs="1"/>
     </xs:sequence>            
   </xs:complexType>
</xs:element>

I then save the document, close the document and then reopen. It automatically reopens in the Schema/WSDL view and because I perfer to work in the raw text I switch to the Text view.

In the Text view I see the following:

Code:
<xs:element name="GetInternalAccountById">
  <xs:complexType>
     <xs:sequence>
    <xs:element name="internalAccountId" type="xs:long"/>
     </xs:sequence>
   </xs:complexType>
</xs:element>

Notice that the minOccurs and maxOccurs attributes are now removed... What is going on?

Note: this also happens for the name attribute of an input node in the bindings section of a WSDL too.

I am running XMLSpy Enterprise Edition Version 2005 rel. 3.

Any thoughts?

-Steve
For
sskarupa
Posted: Friday, December 30, 2005 2:07:12 PM
Rank: Newbie

Joined: 12/30/2005
Posts: 2
Location: US
I think I solved this one myself. Just need to stay away from the Schema/WSDL view and set the filetype for xsd and wsdl to always open in text view.

Still seems like a bug but as long as I can continue to work without it messing up my code I'm happy.

Steps to fix:
> Select Tools menu
> Select Options menuitem
> Select File types tab
> Select .xsd in the file type list box
> Select Text view option in the Default view section
> Click Apply button
> Click OK button

-Steve
island
Posted: Tuesday, January 03, 2006 8:23:56 AM
Rank: Advanced Member

Joined: 10/28/2002
Posts: 384
Location: AT
Dear sskarupa,

it is not a bug but just how this fucntionality was implemented i.e. the default value of any element is always minOccurs="1" and maxOccurs="1" so it is not really necessary to explicitly mention these attributes if the values are equal to "1".

+
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova User Forums Terms of Service.

Powered by Yet Another Forum.net version 1.0.0 RC3 - 9/24/2005
Copyright © 2003-2005 Yet Another Forum.net. All rights reserved.
This page was generated in 0.163 seconds.



transparent
Print
Mail
Digg
delicious
Welcome
.

The Altova User Forum(s) were launched so that our users have the possibility to interact and exchange their experiences regarding Altova's product line with one another. Although the Altova User Forum(s) are moderated by Altova employees and Altova permits support and software engineers to respond to postings, this is NOT a replacement for the regular support mechanism, and accordingly there is no guarantee that a question will be answered. If you need to contact Altova's technical support team please do so by using the online support center. Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova User Forum(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Altova User Forum Terms of Service and the Altova Website Terms of Use

.
.

transparent

transparent