We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Remote server implementation fails to validate

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
opwernby
Posts: 7
Joined: Thu May 15, 2008 5:00 pm

Remote server implementation fails to validate

Post 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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR fix for remote server implementation fails to validate

Post 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
Last edited by support on Wed Feb 24, 2010 3:46 pm, edited 4 times in total.

opwernby
Posts: 7
Joined: Thu May 15, 2008 5:00 pm

Figured it out

Post 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.

Post Reply