| Apurv Shah 2005-12-12, 7:48 am |
|
thanx
i have done same
but validate instance gives me eroors like
1."Validate Instance failed for schema LoanApplication.xsd, file:
<file:/// D:\Apurva\test\SQL_Adapter_SP\sample_dat
a\LoanApplication_sample.xml>."
2."Could not find schema information for the attribute 'City'. An error
occurred at
file:///D:/Apurva/test/SQL_Adapter_SP/sample_data/LoanApplication_sample.xml,
(3, 37)."
there r errors for all field in xml
ihave generate xsd from following xml
LoanApplication_sample.xml which comes with sql adapter sample
-------------------
<ns0:LoanApplication xmlns:ns0="http://Loan_Acceptance.LoanApplication">
<Name FirstName="Tester" LastName="Person" />
<Address Street="1 Microsoft Way" City="Redmond" State="Washington" />
<LoanData>
<RequestedAmount>100.45</RequestedAmount>
</LoanData>
</ns0:LoanApplication>
------------------------------------------
Actually i have generate schema file from original xml file by add generated
items wizard ----> generate schema --->selecting well formed xml from
dropdown.
is there any other way from that i can generate perfect schema from xml file
thanx
--
Regards
Apurv Shah
Software Engineer
Leo Systems and Solution
Pune,India
mob: 919823676454
"Marian Drumea" wrote:
> Hi Apurv,
>
> Assuming you have the schema file (XSD) added to the BizTalk project,
> right clik on it in Visual Studio and choose Properties. In this
> window, set the input instance as the path to an XML file containing
> the data yu want to validate and leave teh option to XML (not Native).
> Say OK. Then, in Visual Studio - solution explorer again, right-click
> and choose Validate Instace. You will get the result of the validation
> with explicit messages in case of failure.
>
> Let me know how this goes!
>
> Thanks,
>
> Marian
> http://www.MarianDrumea.com/BizTalk
>
>
|