Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats wrong with this XML or XSD?

Status
Not open for further replies.

atlzbest

IS-IT--Management
Sep 25, 2009
2
US
Hi all,

Here's the response i get from a web service:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" xmlns:xsi=" xmlns:xsd=" <soap:Body>
<UserAdministrationResponse xmlns=" <UserAdministrationResult>
<Response xmlns="">
<Result>OK</Result>
<Message>User xx updated</Message>
</Response>
</UserAdministrationResult>
</UserAdministrationResponse>
</soap:Body>
</soap:Envelope>


Here's the XSD based on which i have a structure in which i am trying to map the data but for some reason its failing. Is it a namespace issue, malformed XML response above or what? I am either getting no data in the output structure, testing with different tools results in different errors...invalid XSD etc ..i cannot get to a root cause what might be the issue here?

<?xml version="1.0" encoding="utf-8"?>
<document>
<main name=""
type=" <xs:schema elementFormDefault="qualified"
xmlns:xs=" <xs:element name="Response">
<xs:complexType>
<xs:sequence>
<xs:element name="Result" type="xs:string" />
<xs:element name="Message" type="xs:string" />
<xs:element name="Error">
<xs:complexType>
<xs:sequence>
<xs:element name="Code" type="xs:string" />
<xs:element name="Message" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</main>
</document>
 
><xs:element name="Error">
[tt]<xs:element name="Error" [red]minOccurs="0"[/red]>[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top