- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Internet Products
- >
- Re: HTML / XML Parsing
Internet Products
1753770
Members
5150
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2005 08:50 PM
тАО04-25-2005 08:50 PM
HTML / XML Parsing
I am not too sure (again) if this is the right place to place this question. Suggestion of proper category will be appreciated.
1. Referring to w3schools' website(
http://www.w3schools.com/dom/tryit.asp?filename=note_parsertest ) This works in this page itself but if i test this exact code saved as .html file in my computer, it deosn't work.
2. Below is a line of code which I have found being used to Parse XML codes.
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("xyz.xml");
My aim is to load HTML file (not the currently being used one) and use it to change/add objects to the loaded html file using DOM properties (document.body.parentnode.childnode.value e.t.c.)The above code line does not work for HTMLs
So, the question is that, why does the exact code saved in my computer wouldn't work?
What should I do to load an html file instead of xml file?
Thanks in advance
Anand
1. Referring to w3schools' website(
http://www.w3schools.com/dom/tryit.asp?filename=note_parsertest ) This works in this page itself but if i test this exact code saved as .html file in my computer, it deosn't work.
2. Below is a line of code which I have found being used to Parse XML codes.
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("xyz.xml");
My aim is to load HTML file (not the currently being used one) and use it to change/add objects to the loaded html file using DOM properties (document.body.parentnode.childnode.value e.t.c.)The above code line does not work for HTMLs
So, the question is that, why does the exact code saved in my computer wouldn't work?
What should I do to load an html file instead of xml file?
Thanks in advance
Anand
- Tags:
- XML
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2006 06:17 AM
тАО03-11-2006 06:17 AM
Re: HTML / XML Parsing
Hi Anand,
Sorry for anwering this post very late, but as i am the new user of this forum so might help this post...
when you copy the contents and when you look at the code xmlDoc.load("note.xml")
you chnange the code to
xmlDoc.load("http://www.w3schools.com/dom/note.xml") and then save your html file and then you open the page.
it opens...
jasdev
Sorry for anwering this post very late, but as i am the new user of this forum so might help this post...
when you copy the contents and when you look at the code xmlDoc.load("note.xml")
you chnange the code to
xmlDoc.load("http://www.w3schools.com/dom/note.xml") and then save your html file and then you open the page.
it opens...
jasdev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2006 06:23 PM
тАО03-13-2006 06:23 PM
Re: HTML / XML Parsing
Hello Anand,
The avobe given steps worked perfectly in my machine.
-------------- note.xml ------------------
Ganesha
---------------------------------------
In the browser (IE) following output is displayed:
The first child element in the file contains: Ganesha
The Msxml.dll file is present in your system or not.
Please download the Microsoft.XMLDOM:
http://www.microsoft.com/downloads/details.aspx?FamilyID=3144B72B-B4F2-46DA-B4B6-C5D7485F2B42&displaylang=en
HTH
Regards
Ganesha Sridhara
The avobe given steps worked perfectly in my machine.
-------------- note.xml ------------------
---------------------------------------
In the browser (IE) following output is displayed:
The first child element in the file contains: Ganesha
The Msxml.dll file is present in your system or not.
Please download the Microsoft.XMLDOM:
http://www.microsoft.com/downloads/details.aspx?FamilyID=3144B72B-B4F2-46DA-B4B6-C5D7485F2B42&displaylang=en
HTH
Regards
Ganesha Sridhara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2006 10:47 AM
тАО03-15-2006 10:47 AM
Re: HTML / XML Parsing
Hi Ganesha Sridhara,
assigning points to this post be appriciated...
thank you,
jasdev
assigning points to this post be appriciated...
thank you,
jasdev
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP