Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The Specified message does not conform to DTD (While sending SMS in .net)


XML
<MESSAGEACK>
<Err Code="65535" Desc="The Specified message does not conform to DTD"/>
</MESSAGEACK>
Posted
Updated 6-Nov-12 17:32pm
v2

1 solution

One of the way to provide meta-data for XML is DOCTYPE:
http://en.wikipedia.org/wiki/DOCTYPE[^],
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#the-doctype[^].

It allows to describe, with some limitation, the data schema of the XML. And the XML document may or may not conform to it. The DOCTYPE schema can be provided as XML entity (or embedded in XML document) or not (especially if this is one of the standard ones); it can be just referenced or even assumed (by software). Anyway, non-conformity can be detected by some XML-processing software; that's all.

[EDIT]

By the way, the dominating trend is to avoid using DOCTYPE and use XML schema instead of it. Please see:
http://en.wikipedia.org/wiki/XML_Schema_%28W3C%29[^], see also the external references.

—SA
 
Share this answer
 
v2
Comments
NAPorwal(8015059) 6-Nov-12 23:52pm    
Thanks for your reply, But my API is not XML API but its HTTP API

I am using this url and replacing detail with my credential ,

http://myvaluefirst.com/smpp/sendsms?username=xxxx&password=xxxx&to=91997166xxxx&from=VFirst&udh=0&text=test&dlr-mask=19
Sergey Alexandrovich Kryukov 7-Nov-12 0:41am    
It still some XML under the hood. It this is HTML, it can be processed as well-formed XML (HTMLX). HTML also has DOCTYPE. I told you exact nature of the problem, as you asked. Now see you code and figure out why -- I don't have your code.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900