Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How to validate xml file against xsd

$
0
0

suppose this is my xml file data. now tell me how programmatically validate the xml file and display success and fail. if fail then fail or error detail need to be shown. thanks

<?xml version="1.0" encoding="windows-1252"?><OpenShipmentsxmlns="x-schema:C:\UPSLabel\OpenShipments.xdr"><OpenShipmentShipmentOption=""ProcessStatus=""><ShipTo><CompanyOrName>THE OLD FORGE GARAGE</CompanyOrName><Attention>THE OLD FORGE GARAGE</Attention><Address1>88 HIGH STREET</Address1><Address2>WERTON</Address2><Address3>DEVIZES</Address3><CountryTerritory>FR</CountryTerritory><PostalCode>SN10 5RU</PostalCode><CityOrTown>DEVIZES</CityOrTown><StateProvinceCounty>WILTSHIRE</StateProvinceCounty><Telephone>22222222</Telephone></ShipTo><ShipmentInformation><ServiceType>UPS Standard</ServiceType><PackageType>CP</PackageType><NumberOfPackages>1</NumberOfPackages><ShipmentActualWeight>1</ShipmentActualWeight><DescriptionOfGoods>Remanufactured auto parts</DescriptionOfGoods><Reference1>OUR:T619</Reference1><Reference2>UPS Standard With No Insurace </Reference2><BillingOption>PP</BillingOption></ShipmentInformation></OpenShipment></OpenShipments>


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>