[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML nd images

  • To: xml-dev@l...
  • Subject: XML nd images
  • From: OwlService <owlservice@g...>
  • Date: Wed, 23 Feb 2005 10:37:15 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=SyGbE+NXToZinVZ/UPR0+Yl3yR4sX1EmOFDPHGlKm2xeoBUBX/Tk6lcXZhsIOXltkBqFc+JNuyOz7sxzAAivww/XB6AhfcG9msZ/Z7SCHH+cU1R0pwaoa9A6dptPhKut8z10jOzqfQ3QLrnWikP0K2qM6jGQJQCSmFFHgIH8uhA=
  • Reply-to: OwlService <owlservice@g...>

nd images
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?

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.