cancel
Showing results for 
Search instead for 
Did you mean: 

XML to XSD converstion

Former Member
0 Kudos

Hello Friends,

we converted one xml to xsd using styllus studio.

But the xsd's are not valid..

because "xmlns:xsd="http://www.w3.org/2001/XMLSchema" is repeating twice inside the xsd.

.... but in xml its displayed as

"xmlns:xsd="http://www.w3.org/2001/XMLSchema"

"xmlns:xs="http://www.w3.org/2001/XMLSchema"

if we delete the second "xmlns:xsd="http://www.w3.org/2001/XMLSchema" from the XSD will it make any problem.

Regards,

Sunil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I don't think you will get two generations for a xsd:

"xmlns:xsd="http://www.w3.org/2001/XMLSchema" is repeating twice inside the xsd " . Please check your XML again .

And pls correct me if i am wrong.

Cheers!

Former Member
0 Kudos

Hi sorry if i got you confused.

the xml is like this ...

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <b>xmlns:xsd="http://www.w3.org/2001/XMLSchema</b>">

<soap:Body>

<GetAircrafts_x0028_string_x0020_UserId_x002C_DataSet_x0020_Layout_x002C_ref_x0020_DataSet_x0020_ResultRows_x002C__x0020_ref_x0020_DataSet_x0020_MsgRows_x0029_ xmlns="http://www.rmrocade.com/RMI/">

<UserId>rm</UserId>

<layout>

<xs:schema id="NDSLayout" targetNamespace="http://www.rmrocade.com/RMI/NDSLayout.xsd" xmlns:mstns="http://www.rmrocade.com/RMI/NDSLayout.xsd" xmlns="http://www.rmrocade.com/RMI/NDSLayout.xsd" <b>xmlns:xs="http://www.w3.org/2001/XMLSchema</b>" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">........a lot more .

but in xsd there is no nothing like <b>xmlns:xs="http://www.w3.org/2001/XMLSchema</b> ...

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

you can use the link below to convert the XML to XSD.

http://msdn2.microsoft.com/hi-in/xml/Bb190622.aspx

regards

madhu

Former Member
0 Kudos

hi,

you can check your modified XSD when you import it inside XI, Import this XSD as an External defination, and check out the message in External Defination . if the structure is same so there is no problem.

you can allso use XML SPY for changing this XML into XSD.

hope this will help.

regards

HONEY

Former Member
0 Kudos

Hi honey,

i changed the second "xmlns:xsd="http://www.w3.org/2001/XMLSchema" to xmlns:xs="http://www.w3.org/2001/XMLSchema in the XSD and imported it in IR...

its not showing any errors in the check.

But we are not able to generate the orginal Xml structure even after reffering the source of the external reference of all XSD's.

hoping to get further inputs from the forum.

Regards,

Sunil.