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
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
IVR fix for remote server implementation fails to validate
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:
Hope this helps.
Regards,
Plum Support
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>
Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 3:46 pm, edited 4 times in total.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Figured it out
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.
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.