- From: Nikhil C. Khedkar <nikhilckhedkar@yahoo.com>
- Date: Thu, 20 Feb 2003 21:59:22 -0800 (PST)
- To: xmlschema-dev@w3.org
- Cc: skothari@bea.com
- Message-ID: <20030221055922.98845.qmail@web13605.mail.yahoo.com>
Hi, I have the attached XML file. I want to know if this file is valid. I will point out some things I am not to comfortable with. 1)Occurences of many <xsd:schema...> </xsd:schema> elements in the file. Can a file have more than one schema elements? 2)<xsd:element name='BAPIPAREX' nillable='true' type='RFC:BAPIPAREX' minOccurs='0' maxOccurs='unbounded'/> Can you have reference using type='RFC:BAPIPAREX' syntax? Is RFC: valid? 3)<xsd:complexType name='RFCException'> <xsd:sequence> <xsd:element name='key' nillable='true' type='xsd:string'/> <xsd:element name='message' nillable='true' type='xsd:string'/> <xsd:element name='exceptionName' nillable='true' type='xsd:string'/> </xsd:sequence> </xsd:complexType> and <wsdl:message name='RFCException'> <wsdl:part name='parameters' element='SAP:RFCException'/> </wsdl:message> I am not sure, if this is a duplicate declaration and hence invalid. Though one of them is inside a schema and the other is not. 4)<wsdl:message name='RFCException'> <wsdl:part name='parameters' element='SAP:RFCException'/> </wsdl:message> and <xsd:complexType name='RFCException'> <xsd:sequence> <xsd:element name='key' nillable='true' type='xsd:string'/> <xsd:element name='message' nillable='true' type='xsd:string'/> <xsd:element name='exceptionName' nillable='true' type='xsd:string'/> </xsd:sequence> </xsd:complexType> Again is this thing valid? They seem to be existing in different namespaces. 5)Is there any xml validator utility in Java. Note I just want to validate that the file is valid and not validate a xml file against some schema. Basically want to catch the above mentioned conditions. 6)Is there any Java based free utility that will generate the schema for a xml file? Thanks, Nikhil Khedkar __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Attachments
- text/xml attachment: sap_sales.xml
Received on Friday, 21 February 2003 02:17:09 UTC