- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Twiddle
Hey guys. So I've been taking an XML class but I am having trouble getting this file to validate correctly. Keep getting that it is not well-formed. Not sure where I am going wrong and can't find a solid answer, not to mention the teacher doesn't seem to know much about what she is teaching.
This is the error I get from xmlvalidation.com:
Errors in file photos.dtd:
And when I use Notepad++ XML Tools validation I get:
XML Parsing error at line 31:
Start tag expected, '<' not found
Here is the XML:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!--
New Perspectives on XML
Tutorial 2
Case Problem 1
Catalog of photos from the Our Lady of Bergen Historical Society
Author: <removed>
Date: 1/28/2016
Filename: photos.xml
Supporting file: photos.dtd
-->
<!DOCTYPE catalog SYSTEM "photos.dtd">
<catalog type="photos">
<photo cid="c1748" donatedBy="John Borelli">
<name metadata="tunis cooper property museum">Tunis R. Cooper property</name>
<description>
<![CDATA[
This photo was taken by John Borelli's great-grandfather. It is believed to have been taken around 1830.
David Demarest originally purchased the site of the chair factory in 1663. This site was under the ownership
of the Demarest family until 1758. The property is listed in the National and New Jersey Registers of Historic Places.
]]>
</description>
<date>1830 circa</date>
<images>
<img src="1748a.jpg" />
<img src="1748b.jpg" />
</images>
</photo>
<photo cid="c1749" donatedBy="John Borelli">
<name metadata="tunis cooper property museum">Tunis R. Cooper property</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>1950 circa</date>
<images>
<img src="1749a.jpg" />
</images>
</photo>
<photo cid="c1411" donatedBy="Saint Johns Catholic Church">
<name metadata="saint johns catholic church">Saint Johns Church</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>1921</date>
</photo>
<photo cid="c2003" donatedBy="Linda Choo">
<name metadata="bergenfield elementary school">Bergenfield School</name>
<description>
<![CDATA[
The No. 5 Public School, a.k.a. Bergenfield School
]]>
</description>
<date>1920 circa</date>
<images>
<img src="2003a.jpg" />
<img src="2003b.jpg" />
</images>
</photo>
<photo cid="c2078" donatedBy="Maria Giodelli">
<name metadata="coopers pond water">Coopers Pond</name>
<description>
<![CDATA[
A favorite spot where we used to go hang out as kids. The picture shows my brothers Robert and Michael.
]]>
</description>
<date>May 4, 1941</date>
<images>
<img src="2078a.jpg" />
</images>
</photo>
<photo cid="c2079" donatedBy="Linda Uffington">
<name metadata="watch timekeeping pocket railway">Pocket Watch</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>1870 circa</date>
<images>
<img src="2079a.jpg" />
<img src="2079b.jpg" />
</images>
</photo>
<photo cid="c3233">
<name metadata="hotel">Bergenfield Hotel</name>
<description>
<![CDATA[
The Knollfield Hotel was known as the Bergenfield Hotel. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>circa 1920</date>
</photo>
<photo cid="c3433">
<name metadata="sweeney coal fuel">Sweeney Coal</name>
<description>
<![CDATA[
Sweeny Fuel Company located near New Bridge Road and railroad tracks.
]]>
</description>
<date>1920</date>
<images>
<img src="3433a.jpg" />
<img src="3433b.jpg" />
<img src="3433c.jpg" />
</images>
</photo>
</catalog>
And the DTD file:
<!--
New Perspectives on XML
Tutorial 2
Case Problem 1
Catalog of photos from the Our Lady of Bergen Historical Society
Author: <removed>
Date: 1/28/2016
Filename: photos.dtd
Supporting File: photos.xml
-->
<!DOCTYPE catalog [
<!ELEMENT catalog (photo+)>
<!ATTLIST type catalog NMTOKEN #REQUIRED>
<!ELEMENT photo (name, description, date, images?)>
<!ATTLIST cid photo ID #REQUIRED>
<!ATTLIST donatedBy photo CDATA #IMPLIED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST metadata name NMTOKENS #REQUIRED>
<!ELEMENT description (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT images (img+)>
Edited by Perfect72<!ELEMENT img (EMPTY)>
<!ATTLIST src img CDATA #REQUIRED>
]>
Link to comment
https://www.neowin.net/forum/topic/1287978-issues-validating-xml-with-dtd/Share on other sites
3 answers to this question
Recommended Posts