Page 1 of 1

Remote server implementation fails to validate

Posted: Thu May 15, 2008 5:08 pm
by opwernby
I have a remote server (ASPX on IIS) which is serving XML for the IVR to use. Having problems getting it to verify, though: for example, for the url:

http://devtb.com/plumivr/default.aspx?event=test

...when viewed in a browser, using "view source", the result is this:

<?xml version="1.0"?>
<vxml version="2.0">
<form>
<prompt>
This is a test
</prompt>
</form>
</vxml>

...but if I try to run it through the "Verify VXML" function in the developer utilities on the site, using the same URL as the page to verify, I get this as a result:

This document is not valid VoiceXML!

Start tag expected, '<' not found in Entity, line: 3


Document:
1 <?xml version="1.0"?>
2 <!DOCTYPE vxml PUBLIC "-//The Plum Group//DTD VOICEXML 2.1//EN" "/usr/local/plumvp/vxml.dtd">
3 This is a test
4 </prompt></form></vxml>


I tried experimenting with DOCTYPE tags a little, and to no avail... inserting the tag shown in the return message from the XML validator gets the validator to work, but then my site crashes because it doesn't have such a directory or file in it.

Please advise...

Thanks,

Dan Sutton

IVR fix for remote server implementation fails to validate

Posted: Thu May 15, 2008 5:20 pm
by support
Hi Dan,

We have just looked at your IVR code in a web browser and recommend that you move the IVR tag, <vxml>, to the next line instead of next to the <?xml?> prologue. So, your IVR code should look more like this:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<form>
<prompt>
  This is a test
</prompt>
</form>
</vxml>
Hope this helps.

Regards,
Plum Support

Figured it out

Posted: Thu May 15, 2008 5:46 pm
by opwernby
Hi,

Actually, I figured it out -- it had more to do with the XmlDocument object in .NET, which was modifying the code without telling me... -- I moved the code into a string instead, added in a DOCTYPE line and posted that, and now it works. So now, the document looks like this:

<?xml version="1.0"?>
<!DOCTYPE vxml PUBLIC "-//The Plum Group//DTD VOICEXML 2.1//EN" "/usr/local/plumvp/vxml.dtd">
<vxml version="2.0">
<form>
<block>
<prompt>
This is a test
</prompt>
</block>
</form>
</vxml>


Thanks.