OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XML nd images

[ Lists Home | Date Index | Thread Index ]

You can use Base64 encoding to convert binary data to the text. Search the
web or MSDN for the details.

Best Regards,
Altsoft Xml2PDF Team
http://alt-soft.com/



> -----Original Message-----
> From: OwlService [mailto:owlservice@gmail.com] 
> Sent: Wednesday, February 23, 2005 12:37 PM
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] XML 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?
> 
> -----------------------------------------------------------------
> 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>
> 
> 
> 



  • References:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS