Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: SaxParse Document structure entity exception SaxParse Document structure entity exceptionTo: NULL Date: 4/25/2006 3:06:00 PM Hi All. I'm quite new to XML, but I have an ASP that generates an XML
response to an XML request. It works between mainframe and macromedia
JRUN4 via IIS.The XML code looks very clean to me, and matches the
vendor's example, as does the dtd file, but when I try to test it, I
get the following error: API module
PPEdmsNavSvl - Error parsing Edms response XML:
com.indus.icds.exception.PPEdmsException; Exception in class:
PPEdmsXMLPrsr, SAXParseException error, line 1, URL: null, Error
Message: XML document structures must start and end within the same
entity.
The error says line 1 because there are no actual carriage returns. If
I put some in, it just chases the error to the bottom close tag with no
resolution.....
Here is the bit of XML code, formatted to make reading easier (at least
as well as this bloody post will let me). It seems to pass muster on
some of the "paste - in" on-line validators, and there is no white
space at the front or back, because it's machine generated. This paste
comes from the log, so I know it's the response being received,
although it is being URL encoded and decoded:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE edmsapi_response SYSTEM
"http://192.168.1.1:8080/edmsidocs/edmsapi_response.dtd">
<edmsapi_response>
<request
session_id="0.380503063053817,7,10002001,1,0037,012848921100000,"
call="create_folder"></request>
<status success="S" err_code="00" err_msg="EDMS processing
successful."></status>
<url>http://localhost/testnet/test.aspx</url>
</edmsapi_response>
Here is the matching dtd:
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % Release "10.0">
<!ENTITY % Portal "j|J">
<!ENTITY % Call
"attach|detach|attrib_chg|create_cd|create_folder|delete_folder|detach|launch|open_folder|open_folder_view|print|print_list|print_rpt|revise_cd|view">
<!ELEMENT edmsapi_response (request, status, url)> <!ELEMENT request
EMPTY> <!ATTLIST request
session_id CDATA #REQUIRED
call (%Call;) #REQUIRED
>
<!ELEMENT status EMPTY>
<!ATTLIST status
success CDATA #REQUIRED
err_code CDATA #REQUIRED
err_msg CDATA #IMPLIED
>
<!ELEMENT url (#PCDATA)>
Can anyone point me to a problem here? I have Googled this about as far
as Google will let me (it stopped after about 70 pages and asked if I
wanted to see more just like it), with no fitting solution I could
ferret out.
Many TIA!!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
