Can anybody help me out in finding errors in the following code? I am
not getting any output, when I am accessing the below asp page.

 

Asp Page code:

 

<html>

      <head>

            <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

            <meta http-equiv="Pragma" content="no-cache">

            <meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5";>

      </head>

      

      

      <body leftmargin="0" topmargin="0" scroll="no">

      <%

      $CCTVservice = $Server->CreateObject('MSXML2.DOMDocument.3.0');

      $xml_file  = Test.xml';

      $node_name = 'to';

      $CCTVservice->{async} = "False";

      $CCTVservice->{validateOnParse} = "False";

      $CCTVservice->Load($xml_file);

      $node_list = $CCTVservice->selectNodes($node_name);

      foreach $node (in $node_list) {

      print $node->{Text}, "\n";

      }     

      %>

      </body>

</html>

 

XML File:

 

<?xml version="1.0" ?> 

<note>

<to>Tove</to> 

<from>Jani</from> 

<heading>Reminder</HEADING> 

<body>Don't forget me this weekend!</body> 

</note>

 

Thanks Much,

GP

 

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 11:32 AM
To: Pothula, Giridhar; [EMAIL PROTECTED]
Subject: RE: Perl Script for accessing XML file

 

Pothula, Giridhar wrote:

 

Hi. Top-post please.
http://home.in.tum.de/~jain/software/outlook-quotefix/

 

> Sorry...That was a typo. I would like to use PERL script to read the

> XML file (Text of the nodes). This is basically to customize the UI

> skins. All the skin values like color, images, font etc will be

> stored in an XML file.

> 

> I would like to read from the XML file to generate the HTML code

> dynamically.

 

OK, well the faq I pointed you to will give you some ideas of the
overall

topic of parsing XML with Perl. Lots of ways to approach it, so get an

overview before diving in.

 

> 

> -----Original Message-----

> From: Bob Showalter [mailto:[EMAIL PROTECTED]

> Sent: Tuesday, August 31, 2004 11:16 AM

> To: Pothula, Giridhar; [EMAIL PROTECTED]

> Subject: RE: Perl Script for accessing XML file

> 

> Pothula, Giridhar wrote:

> > Hi All,

> > 

> > I am trying to get a code snippet for the client side Perl script in

> > an ASP page which accesses XML file residing on the server.

> 

> Hmm, not sure what you mean by "client side". Both ASP and Perl are

> server-side technologies.

> 

> Anyway, you might want to start at

> http://perl-xml.sourceforge.net/faq/ 

 

 

Reply via email to