Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Sat, 29 Mar 2008 17:28:10 -0700 (PDT),    group: microsoft.public.xml        back       


Add multiple parameters to a string   
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
date: Sat, 29 Mar 2008 17:28:10 -0700 (PDT)   author:   sjsean

Re: Add multiple parameters to a string   
* 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/
date: Sun, 30 Mar 2008 04:02:41 +0200   author:   Bjoern Hoehrmann

Re: Add multiple parameters to a string   
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!
date: Sun, 30 Mar 2008 21:49:14 -0700 (PDT)   author:   sjsean

Re: Add multiple parameters to a string   
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.
date: Sun, 30 Mar 2008 22:40:26 -0700 (PDT)   author:   sjsean

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us