IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: sskarupa
About
User Name: sskarupa
Forum Rank: Newbie
Real Name:
Location US
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, December 30, 2005
Last Visit: Friday, December 30, 2005 2:27:38 PM
Number of Posts: 2
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Missing attributes
Posted: Friday, December 30, 2005 1:07:12 PM
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
Topic: Missing attributes
Posted: Friday, December 30, 2005 12:43:36 PM
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

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