---
title: "XML Schema-problem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/xml/44623-xml-schema-problem"
topic: "XML"
topic_url: "https://www.webforum.nu/amne/xml"
author: "toha"
published: "2002-05-27T09:41:16.000Z"
updated: "2002-05-27T09:41:16.000Z"
replies: 0
views: 439
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/xml/44623-xml-schema-problem"
---

# XML Schema-problem

## #1 — toha, 2002-05-27T09:41Z

Har skrivit ett schema som jag vill testa att validera ett xml-dokument med. I xml-dokumentet har jag skrivit följande referens till xml schemat:

```
<module xmlns="x-schema:xml01.xsd">
```

Får då felmeddelandet:

*Error opening input file: 'xml01.xsd'. Incorrect definition for the root element in schema. Error processing resource*  

Mitt xml schema ser i förkortad form ut såhär:

```
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">

<element name="module">
	<element name="name" minOccurs="1" maxOccurs="1" />
</element>

</schema>
```

Permalänk: https://www.webforum.nu/p/44623

---

Tråden på webben: https://www.webforum.nu/amne/xml/44623-xml-schema-problem
