on 09-13-2006 10:22 PM
I am trying to import the following XSD as an External Definition in Repository.
I am getting the following Error. Please help me.
Error
Activation of the change list canceled
Check result for External Definition Request | http://ABC.COM: Document check found errors
Cause: The loaded document does not contain valid XML
Error when parsing XML document com.sap.aii.utilxi.xml.xdom.XDOMException$ParseError: Error when parsing the XML document (External entity from address http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd in XML document is not supported
XSD
-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
<cXML payloadID="1105574416.19583@hydra.buyer.com"
timestamp="2005-01-13T00:00:16+00:00">
<Header>
<From>
<Credential domain="NetworkId">
<Identity>AN13000000259</Identity>
</Credential>
</From>
<To>
<Credential domain="NetworkId">
<Identity>AN01000000001</Identity>
</Credential>
</To>
<Sender>
<Credential domain="NetworkId">
<Identity>AN13000000259</Identity>
<SharedSecret>abracadabra</SharedSecret>
</Credential>
<UserAgent>Our Procurement System 3.0</UserAgent>
</Sender>
</Header>
<Request>
<GetPendingRequest lastReceivedTimestamp="2005-01-12T00:00:25+00:00"
maxMessages="20">
<MessageType>StatusUpdateRequest</MessageType>
</GetPendingRequest>
</Request>
</cXML>
Hi Mohini,
Please check the structure for well-formedness in a tool such as XML Spy.
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The structure that you posted dose'nt look like XSD its like a XML. Actually you have created a Schema based on DTD and not XSD. Did you use Altova to create this, then please select W3Schema instead of DTD while creating it.
The following is the strucutre I got when I created using the XML you have posted.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:complexType name="CredentialType">
<xs:sequence>
<xs:element ref="Identity"/>
<xs:element name="SharedSecret" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="Identity" type="xs:string"/>
<xs:element name="cXML">
<xs:complexType>
<xs:sequence>
<xs:element name="Header">
<xs:complexType>
<xs:sequence>
<xs:element name="From">
<xs:complexType>
<xs:sequence>
<xs:element name="Credential" type="CredentialType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="To">
<xs:complexType>
<xs:sequence>
<xs:element name="Credential" type="CredentialType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Sender">
<xs:complexType>
<xs:sequence>
<xs:element name="Credential" type="CredentialType"/>
<xs:element name="UserAgent" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Request">
<xs:complexType>
<xs:sequence>
<xs:element name="GetPendingRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="MessageType" type="xs:string"/>
</xs:sequence>
<xs:attribute name="lastReceivedTimestamp" type="xs:string" use="required"/>
<xs:attribute name="maxMessages" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="payloadID" type="xs:string" use="required"/>
<xs:attribute name="timestamp" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
Thanks,
Prakash
Hi Mohini,
I think to one of your post I have given you the steps
Anyways here are the steps
1. Open your XML in Altova XML Spy
2. Goto menu DTD/Schema ---> Generate DTD/Schema
3. You will get a popup there you select <b>W3C Schema</b> instead of <b>DTD</b> which is under the block <b>DTD/Schema file format</b>.
4. You wil be prompted for XSD name in a Save Dialog, give the XSD file name you wanted.
5. Save it
6. Import the XSD file into your IR as External definition
Thats it you will have a XSD file.
Thanks,
Prakash
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.