Jump to content

Validating a XML-File against a schema


berndbloedorn

Recommended Posts

Hi,I have a xml file called LoadingDeliveryReceipt.xml that I want to validate against a schema that is located on www.implico.com/schema/LoadingDeliveryReceipt.xsd. The validation fails and it seems that I make a principal mistake but can't see it. I read all the stuff on www.w3schools.com but have no further idea what to check out. The schema file is generated with xml-Spy and then modified by me. Here's the Header of the xml-File:<?xml version="1.0"?><LoadingDeliveryReceipt xmlns="http://www.implico.com/schema"'>http://www.implico.com/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.implico.com/schema LoadingDeliveryReceipt.xsd"> <annotation>Well formed 08.08.2006 Buhtz, Implico</annotation> <Header> <DocumentIdentifier>HH-ZA100_0913_000050_20060731.00017</DocumentIdentifier>.........Hope someone has an idea.Thanks in advanceBernd

Link to comment
Share on other sites

Scince I don't know the schema, I don't think I could start guessing, but...just a thought... try to remove the first xmlns. The no-prefixed one.

Link to comment
Share on other sites

Scince I don't know the schema, I don't think I could start guessing, but...just a thought... try to remove the first xmlns. The no-prefixed one.
Hi,thanks for your reply. You can check out the schema under www.implico/com/schema/LoadingDeliveryReceipt.xsdI removed the first xmlns. But that didn't help.Kind regardsBernd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...