SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 XML to XSD
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nsithole
Starting Member

USA
9 Posts

Posted - 09/28/2013 :  23:00:38  Show Profile  Reply with Quote
I get this error "Unable to infer the XSD from the XML file.The Xml contains multiple namespaces"
I am not sure how to get around with this error.Below is how the XML file looks like.I am using BIDS 2008


<?xml version="1.0" encoding="UTF-8"?>
<mortage>
<Borrowers>
<Borrower>
<BorrowerFirstName>Roy</BorrowerFirstName><BorrowerLastName>China</BorrowerLastName><BorrowerEmail>rchina@hotmail.com</BorrowerEmail><SSN>387564731</SSN><HomePhone>9723654221</HomePhone><CellPhone>3135689563</CellPhone><MaritalStatus>Divorced</MaritalStatus><DateofBirth>12/12/80</DateofBirth><CurrentCityStreetAddress>8625 Rubina Rd</CurrentCityStreetAddress><State>TX</State><Zip>75287</Zip><YearsAtThisAdress>1</YearsAtThisAdress><MonthlyIncome>9000</MonthlyIncome><Bonuses>400</Bonuses><Commission>100</Commission><RentorOwn>Rent</RentorOwn><PurposeofLoan>Education</PurposeofLoan><PropertyUsage>Land</PropertyUsage><LoanAmount>9000</LoanAmount><PurchasePrice>9000</PurchasePrice><NumberofUnits>1</NumberofUnits><PropertyCity>Ricardson</PropertyCity><PropertyState>TX</PropertyState><PropertyZip>25781</PropertyZip><Sex>Male</Sex><Ethnicity>White</Ethnicity><Race>White</Race><Co-BorrowerFirstName>Faye</Co-BorrowerFirstName><Co-BorrowerLastName>Sparks</Co-BorrowerLastName><Co-BorrowerEmail></Co-BorrowerEmail>faye@live.com<CreditCardAuthorization>Agree</CreditCardAuthorization><Checking>4000</Checking><Savings>7000</Savings><R0000</LoanAmount><PurchasePrice>8000</PurchasePrice><NumberofUnits>1</NumberofUnits><PropertyCity>Desoto</PropertyCity><PropertyState>TX</PropertyState><PropertyZip>43215</PropertyZip><Sex>Female</Sex><Ethnicity>White</Ethnicity><Race>White</Race>





























Noreen sithole

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 09/29/2013 :  03:31:17  Show Profile  Reply with Quote
the posted XML is not even well formed. Can you post full XML please?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3555 Posts

Posted - 09/29/2013 :  17:23:32  Show Profile  Reply with Quote
The XML you posted, again, is not well-formed. You can test whether it is well-formed easily by using the xml string in a simple query like shown below (where I have cut out a lot of your XML)
declare @x xml = '<?xml version="1.0" encoding="UTF-8"?>
<mortage>
<Borrowers>
<Borrower>

</Borrower>
</Borrowers>
</mortage>'
select @x;

Edited by - James K on 09/29/2013 17:24:33
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000