Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Perhaps your XML processor is ignoring the !ENTITY declarations because they are contained within an otherwise empty DTD. </p> <p>Do you have a DTD you could use to validate this document? Lacking a DTD or schema, you can't really say the document is valid. Try running it through an online XML validation service like the one at URL: <a href="http://www.validome.org/xml/validate/" rel="nofollow noreferrer" title="XML Validator">http://www.validome.org/xml/validate/</a></p> <p>Here's an amended version of your document with a DTD I whipped up. See if this helps. </p> <hr> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!DOCTYPE configuration [ &lt;!ELEMENT configuration (configSections+, connectionStrings+, MyCustomSection)&gt; &lt;!ELEMENT configSections (section+)&gt; &lt;!ELEMENT section EMPTY&gt; &lt;!ATTLIST section name CDATA #REQUIRED&gt; &lt;!ATTLIST section type CDATA #REQUIRED&gt; &lt;!ELEMENT connectionStrings (add+)&gt; &lt;!ELEMENT add EMPTY&gt; &lt;!ATTLIST add name CDATA #REQUIRED&gt; &lt;!ATTLIST add providerName CDATA #REQUIRED&gt; &lt;!ATTLIST add connectionString CDATA #REQUIRED&gt; &lt;!ELEMENT MyCustomSection (#PCDATA)&gt; &lt;!ENTITY MyStorageLocation "\\MyServer\MyStorageFolder"&gt; &lt;!ENTITY MyDatabaseServer "devdb01"&gt; ]&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;section name="MyCustomSection" type="MyCustomSectionHandler,MyAssembly"/&gt; &lt;/configSections&gt; &lt;connectionStrings&gt; &lt;add name="MyConnectionString" providerName="System.Data.SqlClient" connectionString="Server=&amp;MyDatabaseServer;;Database=MyDatabase;"/&gt; &lt;/connectionStrings&gt; &lt;MyCustomSection&gt;&amp;MyStorageLocation;&lt;/MyCustomSection&gt; &lt;/configuration&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload