?
Solved

explorer gives me ...An XML element is not allowed inside a DTD. Error processing resource  - what's up with that

Posted on 2006-05-04
3
Medium Priority
?
513 Views
Last Modified: 2013-11-19
the dtd i am using validates fine and the XML shows up properly in Firefox

XML =

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Exception-Report SYSTEM "exception_report_rr.dtd">
<Exception-Report><Project><Project-Name>Tuesday May 2nd</Project-Name><Project-Id>00-TUES-101</Project-Id></Project><Findings><Finding><Finding-details excep-ref-number="EX1"><Finding-Title>test ex web</Finding-Title><Finding-Description>test</Finding-Description><Date-Issued>2 May 2006</Date-Issued><Finding-Disposition></Finding-Disposition><Prepared-By /><Prepared-On></Prepared-On><Reviewed-By /><Reviewed-On></Reviewed-On><Risk-Level>Medium</Risk-Level><Admin-Notes-for-Oats /><Workpaper-Refs /><Step-Refs>A1:STEP1</Step-Refs></Finding-details><Recommendations><Recommendation><Recomm-Details recomm-ref-number="EX1-R1"><Recomm-Description>test</Recomm-Description><Recomm-Title>test Hello</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts>Corporate Treasury, Central Compliance, Ayco Ops</Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name="Controllers"><Members>anup, smitha; curic, steve; clunis, stavros; pusara, tamara</Members><Primary-Member>raduly, tamas</Primary-Member></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation><Recommendation><Recomm-Details recomm-ref-number="EX1-R2"><Recomm-Description>test</Recomm-Description><Recomm-Title>second recomm</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts></Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name="Commodities IT"><Members></Members><Primary-Member>wallis, terence</Primary-Member></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation><Recommendation><Recomm-Details recomm-ref-number="EX1-R3"><Recomm-Description>test</Recomm-Description><Recomm-Title>Test REC</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts>Ayco IT</Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name="Ayco Advisory"><Members>shastry, raghu; hobeck, jeff; cubata, alexei</Members><Primary-Member>molyneux, hugh</Primary-Member></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation><Recommendation><Recomm-Details recomm-ref-number="EX1-R4"><Recomm-Description>test</Recomm-Description><Recomm-Title>REC four</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts></Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name=""><Members /><Primary-Member /></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation><Recommendation><Recomm-Details recomm-ref-number="EX1-R5"><Recomm-Description>test</Recomm-Description><Recomm-Title>REc Five</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts>Archon Financial</Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name="Ayco IT"><Members>buffone, claude</Members><Primary-Member>bye, david</Primary-Member></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation><Recommendation><Recomm-Details recomm-ref-number="EX1-R6"><Recomm-Description>asasas</Recomm-Description><Recomm-Title>asasasas</Recomm-Title><Recomm-Priority></Recomm-Priority><Recomm-Location></Recomm-Location><Recomm-Status-Detail></Recomm-Status-Detail><Recomm-Other-Resp-Depts></Recomm-Other-Resp-Depts><Recomm-Primary-Auditor></Recomm-Primary-Auditor><Recomm-Secondary-Auditor></Recomm-Secondary-Auditor><Recomm-Application></Recomm-Application><Recomm-Nature-of-Solution></Recomm-Nature-of-Solution><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description></Response-Description></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name=""><Members /><Primary-Member /></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition></Disposition></Recommendation></Recommendations></Finding><Finding><Finding-details excep-ref-number="EX2"><Finding-Title>asasas</Finding-Title><Finding-Description>this thinig won't work</Finding-Description><Date-Issued>4 May 2006</Date-Issued><Finding-Disposition></Finding-Disposition><Prepared-By /><Prepared-On></Prepared-On><Reviewed-By /><Reviewed-On></Reviewed-On><Risk-Level>Medium</Risk-Level><Admin-Notes-for-Oats /><Workpaper-Refs>A1.5</Workpaper-Refs><Step-Refs /></Finding-details><Recommendations><Recommendation><Recomm-Details recomm-ref-number=""><Recomm-Description /><Recomm-Title /><Recomm-Priority /><Recomm-Location /><Recomm-Status-Detail /><Recomm-Other-Resp-Depts></Recomm-Other-Resp-Depts><Recomm-Primary-Auditor /><Recomm-Secondary-Auditor /><Recomm-Application /><Recomm-Nature-of-Solution /><Recomm-Follow-up-Date></Recomm-Follow-up-Date></Recomm-Details><ManagementResponse><Response-Description /></ManagementResponse><ResponsibleDepartments><ResponsibleDepartment dept-name=""><Members /><Primary-Member /></ResponsibleDepartment></ResponsibleDepartments><TargetDate /><Disposition /></Recommendation></Recommendations></Finding></Findings></Exception-Report>

DTD =
<?xml version="1.0" encoding="UTF-16LE"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Bala Danasekaran (Balasoft) -->
<!--DTD generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)-->
<!ELEMENT Exception-Report (Project,Findings)>
<!ELEMENT Project (Project-Name,Project-Id)>
<!ELEMENT Project-Name (#PCDATA)>
<!ELEMENT Project-Id (#PCDATA)>

<!ELEMENT Findings (Finding)+>
<!ELEMENT Finding (Finding-details,Recommendations)>

<!ELEMENT Finding-details (Finding-Title,Finding-Description,Date-Issued,Finding-Disposition,Prepared-By,Prepared-On,Reviewed-By,Reviewed-On,Risk-Level,Admin-Notes-for-Oats,Workpaper-Refs,Step-Refs)>
<!ATTLIST Finding-details excep-ref-number CDATA #REQUIRED>


<!ELEMENT Finding-Title (#PCDATA)>
<!ELEMENT Finding-Description (#PCDATA)>



<!ELEMENT Recommendations (Recommendation)+>
<!ELEMENT Recommendation (Recomm-Details,ManagementResponse,ResponsibleDepartments,TargetDate,Disposition)>
<!ELEMENT Recomm-Details (Recomm-Description,Recomm-Title,Recomm-Priority,Recomm-Location,Recomm-Status-Detail,Recomm-Other-Resp-Depts,Recomm-Primary-Auditor,Recomm-Secondary-Auditor,Recomm-Application,Recomm-Nature-of-Solution,Recomm-Follow-up-Date)>
<!ATTLIST Recomm-Details recomm-ref-number CDATA #REQUIRED>



<!ELEMENT Recomm-Description (#PCDATA)>

<!ELEMENT ManagementResponse (Response-Description)>
<!ELEMENT Response-Description (#PCDATA)>

<!ELEMENT ResponsibleDepartments (ResponsibleDepartment)+>
<!ELEMENT ResponsibleDepartment (Members,Primary-Member)>
<!ATTLIST ResponsibleDepartment dept-name CDATA #REQUIRED>




<!ELEMENT Members (#PCDATA)>
<!ELEMENT Primary-Member (#PCDATA)>

<!ELEMENT Disposition (#PCDATA)>
<!ELEMENT TargetDate (#PCDATA)>
<!ELEMENT Date-Issued (#PCDATA)>
<!ELEMENT Finding-Disposition (#PCDATA)>
<!ELEMENT Prepared-By (#PCDATA)>
<!ELEMENT Prepared-On (#PCDATA)>
<!ELEMENT Reviewed-By (#PCDATA)>
<!ELEMENT Reviewed-On (#PCDATA)>
<!ELEMENT Risk-Level (#PCDATA)>
<!ELEMENT Recomm-Other-Resp-Depts (#PCDATA)>
<!ELEMENT Recomm-Title (#PCDATA)>
<!ELEMENT Recomm-Priority (#PCDATA)>
<!ELEMENT Recomm-Location (#PCDATA)>
<!ELEMENT Recomm-Status-Detail (#PCDATA)>
<!ELEMENT Recomm-Primary-Auditor (#PCDATA)>
<!ELEMENT Recomm-Secondary-Auditor (#PCDATA)>
<!ELEMENT Recomm-Application (#PCDATA)>
<!ELEMENT Recomm-Nature-of-Solution (#PCDATA)>
<!ELEMENT Recomm-Follow-up-Date (#PCDATA)>
<!ELEMENT Admin-Notes-for-Oats (#PCDATA)>
<!ELEMENT Workpaper-Refs (#PCDATA)>
<!ELEMENT Step-Refs (#PCDATA)>

Any idea why I am getting this message?

Thanks
Bruce
0
Comment
Question by:bqchristie
  • 2
3 Comments
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 16612577
Hi Bruce,

there is nothing wrong with your XML.
it could be platform related

First note that Internet Explorer validates the DTD, but only checks the XML for wellformedness
FireFox ignores the DTD completely.
So the error means that there is an error in your DTD...

I have a suspicion that your installement of IE does not support the encoding="UTF-16LE"
can you open the DTD in an encoding aware editor (preferably an XML editor)
... aparently you have XML Spy over there, so use that....
and strip the encoding bit out, or replace it with UTF-8..
There is nothing in the DTD that requires UTF-16LE

Then it should work
- note that the DTD and the XML file should be in the same directory
- can you let us know the version of MSXML, your version of IE and your windows platform

cheers
0
 

Author Comment

by:bqchristie
ID: 16614434
Thanks for the comments....

I had the same thought about the encoding but removing it did not help.     Removing the doctype all together solves the problem but our requirement is to include it.

The version of explorer is 6.0.2900.2180.xsp.050622-1524

OS: MS Windows XP Professional Version 2002 Service Pack 2

Thanks
Bruce
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 1000 total points
ID: 16628978
Your platform settings are exaclty as the one I used for testing
(except that I have a later update of the IE)
I think there is a little nastyness in the encoding of the DTD,
that is not reflected in the copy of this post

Try copying the DTD from this forum and paste it in Spy, maybe it will work
(at least it does for me)

One thing to check (with a hex editor) is the nature of your little endian DTD file.
It is possble that your IE choques on the lack of a Byte Order Mark in the little endian file

Do you often switch platform with these files? ... I still believe UTF-8 is a bettter choice

> I had the same thought about the encoding but removing it did not help

you can't just remove it...
you should remove it with an XML editor and then save it again, sot that it gets saved as UTF-8 instead of Little Endian UTF-8

> Removing the doctype all together solves the problem but our requirement is to include it.
well yes, I can understand you don't like that option

cheers

Geert
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question