Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


SaxParse Document structure entity exception

From: "Forester1" <jtompkins@----------.--->
To: 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!!



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent