[Home] [By Thread] [By Date] [Recent Entries]

  • To: OwlService <owlservice@g...>, xml-dev@l...
  • Subject: Re: XML nd images
  • From: Darshan Singh <darshans@g...>
  • Date: Wed, 23 Feb 2005 10:14:33 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=U/juVnU2aKaoZMsK7VbjW6pEYfmMZC+qOuG0HlJHHk9FM8lFoZbNQUAvZZ/G3d3Q5jsUG7rg59Ms4LaxErsIAnfqowOa5/wZjClc/zzrhbe0w/6IU2v/43TlXJoRHAZfzQak8tyZFmYnnvXeXBj0Zp+wIR+ofw8vRFHcIth+ekY=
  • In-reply-to: <96981f6205022302378ca46da@m...>
  • References: <96981f6205022302378ca46da@m...>
  • Reply-to: Darshan Singh <darshans@g...>

See:
http://www.PerfectXML.com/Articles/xml/binary.asp
http://www.PerfectXML.com/SiteSearch.asp?searchText=Base64&sType=1&x=48&y=10

On Wed, 23 Feb 2005 10:37:15 +0000, OwlService <owlservice@g...> wrote:
> Hi there,
> 
> This is my first post - Hi all :)
> 
> I am using an XML list in conjunction with ASP to pull in textual
> headers for my web pages.
> 
> I use this:
> 
> <?xml version="1.0"?>
> <root>
>       <page name="default.asp" text1="HOME" text2="Home"/>
> </root>
> 
> Now I have been asked if instead of text here can I add an image. Now
> I don't know how to do this. Does anyone?
> 
> I call the xml using:
> 
> <%
> 'Response.Write(CurrentPage)
> 'Response.End()
> Set objXML = Server.CreateObject("Microsoft.XMLDOM")
> objXML.validateOnParse=True
> objXML.load(Server.MapPath("xml/pages.xml"))
> set objNodeXML=objXML.documentElement
> Text1=objNodeXML.selectSingleNode("page[@name='" & CurrentPage &
> "']").getAttribute("text1")
> Text2=objNodeXML.selectSingleNode("page[@name='" & CurrentPage &
> "']").getAttribute("text2")
> Set objXML = Nothing
> 
> function CurrentPage
> scriptname=lcase(Request.ServerVariables("SCRIPT_NAME"))
> CurrentPage=right(scriptname,len(scriptname)-instrrev(scriptname,"/"))
> end function
> %>
> 
> Can anyone help?
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
>

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member