No Schema or DTD associated....

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
sb1993cl
Posts: 2

No Schema or DTD associated....

Mon Nov 03, 2014 7:27 am

Hi everyone,

I am in a Data Management Class at a university and I have an XML project due by the end of this week. I have to submit an xsd,xml, and xsl sheet in a zipped folder. I am having a really hard time validating my xml portion. I keep getting the notification "There is no schema or DTD associated with this document. You can create an association either with the Association Schema action or configuring in the Options the Preferences/Document Type Association List or by creating a validation scenario.

I am not sure what this means. Can anyone help me? Please let me know how I can provide more clarification regarding this matter. Many many thanks in return!
adrian
Posts: 2336

Re: No Schema or DTD associated....

Mon Nov 03, 2014 10:48 am

Hi,

That means no schema is associated with your XML documented by any means recognized by Oxygen.
To validate your document with a schema in Oxygen you can either (I recommend going with the first):

- manually associate the schema with the document (modifies the document, provides content completion and automatic validation): Open the XML document, go to menu > Document > Schema > Associate Schema and browse for the schema. The schema type will be automatically detected and selected in the combo. This will specify the schema URI and namespace on the root of the XML document.
e.g.

Code: Select all

<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="myNamespace mySchemaURI.xsd">

- create a validation scenario (the document remains untouched, provides content completion and automatic validation): Open the XML document and go to menu > Document > Validate > "Configure Validation Scenario(s)" (there's a corresponding action in the toolbar).

In the Configure Validation Scenario(s) dialog press New, choose a name for the scenario and configure the validation unit. Leave the "URL of the file to validate" unchanged (${currentFileURL}) so you can use the scenario for various XML files. Double click on the schema field, select "Use custom schema" and browse for the schema. Close all dialogs with OK.

- use Validate with... The quick way to validate with a schema if you only need to do this once and you won't be needing a scenario is menu > Document > Validate > Validate with... and simply browse and pick the schema.

- create a document type which associates a schema with documents of the specified type (Options > Preferences, Document Type Association). Multiple criteria can be used for identifying the XML as a document type that should be associated with your schema in the Association rules tab. Usually a root element and/or a namespace are required but also works with a public ID or a specific attribute on the document root of the XML. You can then pick the schema in the Schema tab. There are plenty of other document type settings, but they are outside the scope of this guide.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
rgmetap
Posts: 12
Location: Pune , India

Re: No Schema or DTD associated....

Wed Apr 05, 2017 10:12 am

Hi Sir,

I have a ditamap file and i have created another footer.xml file for xhtml footer. I am facing same problem " No Schema or DTD associated.
Not getting it exactly . Kindly help
Rohit Ghosh
Jr. Software Developer
adrian
Posts: 2336

Re: No Schema or DTD associated....

Wed Apr 05, 2017 11:14 am

Hi,

What does the footer.xml file contain?
If there's no schema associated, it's normal to give you that. See the instructions above.
Note that this may not be a problem. Header and footer files are usually just snippets that are not always valid by themselves, only in context.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
rgmetap
Posts: 12
Location: Pune , India

Re: No Schema or DTD associated....

Wed May 10, 2017 8:47 am

Hi Sir,

Thank You for your help , I found the solution . :)
Rohit Ghosh
Jr. Software Developer

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 1 guest