May be the wrong group but someone should be able to advise. I have the following to display the correct menu in a separate frame: <% Response.Write "<Menu_id>http://www.restaurantplanet.com/ test_930.asp?menu=" & Recordset1("Menu_id") & "</Menu_id>" %> This works fine, but I want to add Location_id to the string. I've been unable to get this to work...either I get the data at the root level is invalid or I can't get the correct layout in the url and that wouldn't help either. Thanks for the advice. Sean
* sjsean wrote in microsoft.public.xml: >May be the wrong group but someone should be able to advise. > >I have the following to display the correct menu in a separate frame: > ><% Response.Write "<Menu_id>http://www.restaurantplanet.com/ >test_930.asp?menu=" & Recordset1("Menu_id") & "</Menu_id>" %> > >This works fine, but I want to add Location_id to the string. I've >been unable to get this to work...either I get the data at the root >level is invalid or I can't get the correct layout in the url and that >wouldn't help either. In XML you have to escape the special characters < > & ' and " to avoid confusing them as markup, specifically, & needs to be written as & or equivalent. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
On Mar 29, 7:02 pm, Bjoern Hoehrmann wrote: > * sjsean wrote in microsoft.public.xml: > > >May be the wrong group but someone should be able to advise. > > >I have the following to display the correct menu in a separate frame: > > ><% Response.Write "<Menu_id>http://www.restaurantplanet.com/ > >test_930.asp?menu=" & Recordset1("Menu_id") & "</Menu_id>" %> > > >This works fine, but I want to add Location_id to the string. I've > >been unable to get this to work...either I get the data at the root > >level is invalid or I can't get the correct layout in the url and that > >wouldn't help either. > > In XML you have to escape the special characters < > & ' and " to avoid > confusing them as markup, specifically, & needs to be written as & > or equivalent. > -- > Björn Höhrmann · mailto:bjo...@hoehrmann.de ·http://bjoern.hoehrmann.de > Weinh. Str. 22 · Telefon: (0)621/4309674 ·http://www.bjoernsworld.de > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·http://www.websitedev.de/Could you show an example for me? I have tried your suggestion, but still get the invalid xml message. The additional informaiton would be Location_id= and Recordset1("Location_id") I've just tried various methods including your advice and can't get this thing working. Thanks!
On Mar 30, 9:49 pm, sjsean wrote: > On Mar 29, 7:02 pm, Bjoern Hoehrmann wrote: > > > > > > > * sjsean wrote in microsoft.public.xml: > > > >May be the wrong group but someone should be able to advise. > > > >I have the following to display the correct menu in a separate frame: > > > ><% Response.Write "<Menu_id>http://www.restaurantplanet.com/ > > >test_930.asp?menu=" & Recordset1("Menu_id") & "</Menu_id>" %> > > > >This works fine, but I want to add Location_id to the string. I've > > >been unable to get this to work...either I get the data at the root > > >level is invalid or I can't get the correct layout in the url and that > > >wouldn't help either. > > > In XML you have to escape the special characters < > & ' and " to avoid > > confusing them as markup, specifically, & needs to be written as & > > or equivalent. > > -- > > Björn Höhrmann · mailto:bjo...@hoehrmann.de ·http://bjoern.hoehrmann.de > > Weinh. Str. 22 · Telefon: (0)621/4309674 ·http://www.bjoernsworld.de > > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·http://www.websitedev.de/ > > Could you show an example for me? I have tried your suggestion, but > still get the invalid xml message. The additional informaiton would > be Location_id= and Recordset1("Location_id") > > I've just tried various methods including your advice and can't get > this thing working. Thanks!- Hide quoted text - > > - Show quoted text - Disregard...I got it figured out.