Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Lightbarrier #1
Member since Jul 2014 · 52 posts
Group memberships: Members
Show profile · Link to this post
Subject: For security reasons DTD is prohibited in this XML document.
Hey Alex,

We're having a problem with the Matrix library which we haven't encountered before now when connecting to one of our Servers.

The XML shown is as follows:
  1. 10/6/2015 4:21:01 PM - SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="wasbt.guestwarehost.com" version="1.0" >
  2. 10/6/2015 4:21:02 PM - SEND: </stream:stream>

In between 10/6/2015 4:21:01 PM and 10/6/2015 4:21:02 PM we receive a error from the onError event which upon retrieving the base exception we get the following message:
For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

We are using Matrix Version 1.6.0.3 for .net 4.0.

We presently think that the exception is occurring because the matrix library XML object used for parsing is failing somewhere.

Thanks for your help.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MatriX is not using XmlReader when parsing the Xml Stream from the server. It has a custom Xml parser.

Its using XmlReader only in 1 place. This is when you use XmppXElement.LoadXml to load a XmlDocument to MatriX objects.
Are you using XmppXElement.LoadXml in your codes?

Or do you use XmlReader somewhere in your codes? And the entry point to this code is a MatriX event? When you don't catch your own exceptions then they will raise in MatriX of course, and MatriX sends them back to you in an OnError event.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: