473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Showing xml contents in WebPage

Hi all,
I am creating a asp file which shows the xml file
using this code

Expand|Select|Wrap|Line Numbers
  1. 'Function to Create XML contents and return 
  2.     Private Function CreateXMLFileContents()
  3.         'Create an XML document
  4.         xmlDoc.appendchild(xmlRootElement)
  5.         Dim xmlDoc, rootEl, child1, child2, p'Create an XML document
  6.         Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")'Create a root element and append it to the document
  7.         Set rootEl = xmlDoc.createElement("root")
  8.         xmlDoc.appendChild rootEl'Create and append child elements
  9.         Set child1 = xmlDoc.createElement("child1")
  10.         Set child2 = xmlDoc.createElement("child2")
  11.         rootEl.appendChild child1
  12.         rootEl.appendChild child2'Add an XML processing instruction
  13.         'and insert it before the root element
  14.         Set p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
  15.         xmlDoc.insertBefore p,xmlDoc.childNodes(0)'Save the XML file to the c directory
  16.         CreateXMLFileContents=xmlDoc.text
  17.   End Function
and calling the function as


Code:
Expand|Select|Wrap|Line Numbers
  1. But it is not showing the xml content in that asp page. Can some one help
  2.  

Thanks
Dana
Dec 10 '07 #1
1 1140
jhardman
3,406 Expert 2GB
Dana,

what does this give you?

Jared
Dec 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: sifar | last post by:
Hi, This is my first post to this Group. A] I am trying to create a escalation page which will mail an escalation report of a faulty product. Items needed on Page: -----------------------
0
by: ikhan | last post by:
Hello, I am using an activex control on my website. It was running fine with framework 1.1, when I try to run it on framework 2.0 it's not showing up. It's not showing any error message, just a...
3
by: jonathan.beckett | last post by:
I have been experimenting with placing user controls (using Windows Forms controls) into an ASP.NET webpage - and am completely stuck. I can get a blank user control to work, but nothing beyond...
6
by: eureka | last post by:
Hi friends, I am developing a web application using Jsp and JS. I have a main Jsp page(Jsp1).Inside it I have an iframe having an Html- table which is created dynamically and contains all...
2
rishidadhich
by: rishidadhich | last post by:
hello, I am new to PHP, I am stuccked in a problem that how to fetch text contents from a external website and then save them to a text file. say there is any webpage...
1
by: Bell Deep | last post by:
I wanted to create a webpage(using HTML), where I want to display the contents of a remote folder (the folder is in the server). I need to display the contents (i.e, files or subfolders) of that...
1
by: smitanaik | last post by:
how to write an api to download contents from webpage
1
by: PulkitZery | last post by:
Hi, I am creating a webpage in vb.net and this webpage has frames. Now the problem I have is, in one of the frames I want to show a MS Word or PDF file. If I set the source of this frame to...
1
by: picking4321 | last post by:
I wanna write a script to get the contents of a simple webpage like http://www.craigslist.org/msg i need just text output not html. I search this on google. There are suggestions about using perl...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.