VoiceGuide IVR Software Main Page
Jump to content

New To Xml

Recommended Posts

Hello,

 

Is there more information on XML formatting?

 

When I try to follow the example I assume the format is:

 

<OutDialEntry>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

<OutDialEntry>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

 

But that is an invalid format, how do we feed bulk entries into the XML?

 

Regards,

 

 

 

Share this post


Link to post

I know that my sample looks right based on your example, and works in your program.

 

However, .net will not write that as an xml format because it will not allow the duplicate <OutDialEntry> for each number.

 

Will it work if it is nested?

 

Like:

 

<OutDialEntry>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

<OutDialEntry>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

</OutDialEntry>

 

Share this post


Link to post

I know that my sample looks right based on your example, and works in your program.

 

However, .net will not write that as an xml format because it will not allow the duplicate <OutDialEntry> for each number.

 

Can I not use the .net xml tools because it is not in a standard xml format? Or am I missing some switch that ignores the built in xml formatting rules?

 

Will it work if it is nested?

 

Like:

 

<OutDialEntry 0>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

<OutDialEntry 1>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

<OutDialEntry 2>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

</OutDialEntry>

</OutDialEntry>

 

This seems to be the only way .net will allow me to write this file using OutputXMLWriter. However, it is not very readable when it gets into the thousands.

 

What is the deal with the OutputXMLWriter.WriteStartElement("OutDialEntry"), is this not a valid way to write the xml that way you want to use it?

 

I cannot get it to just do (with or without the number appended).:

 

<OutDialEntry 0>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

<OutDialEntry 1>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

<OutDialEntry 2>

<PhoneNumber>5553423</PhoneNumber>

<OnAnswer>d:\scripts\alarm.vgs</OnAnswer>

</OutDialEntry>

 

Do I have to just try writing the document as a text file and not an xml file using the xml tools?

 

Share this post


Link to post
Will it work if it is nested?

No. The nesting approach is used for escalation calls. It they are unrelated calls then its inappropriate for them to be nested within each other.

 

Do I have to just try writing the document as a text file and not an xml file using the xml tools?

If you cannot get the OutputXMLWriter to output data in format expected by VoiceGuide then it may be easiest to just write the document as a text file. The formatting is not that complex after all.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×