Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in SOAP schema for Body element

 
Sudhanshu Mishra
Ranch Hand
Posts: 238
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Referring the code below which is from standard SOAP schema,please help me understand what does it say


I can clearly see that Body complexType element has defined <xs:antAttribute>,which clearly means that Body element can have as many attributes as it wants.But then what does " <xs:documentation>Prose in the spec does not specify that attributes are allowed on the Body element</xs:documentation>
" mean to say?

Please help me clear my doubt.
Thanks...
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sudhanshu Mishra wrote:Hi all,
Referring the code below which is from standard SOAP schema,please help me understand what does it say


I can clearly see that Body complexType element has defined <xs:antAttribute>,which clearly means that Body element can have as many attributes as it wants.But then what does " <xs:documentation>Prose in the spec does not specify that attributes are allowed on the Body element</xs:documentation>
" mean to say?

Please help me clear my doubt.
Thanks...


It means that though schemas has made it possible to include any attribute for element body, however, the specification given by w3.org, talks nothing about attributes with element body. So, the schema is open for adding attributes unless specification says otherwise.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic