Hello,
How can I use xmlpath technogy by xmldom.
(or there is another technique, but not xmldom).
I need some code samples, please.
Thanks :) 8 3613
I used the XMLDOM in javascript,
so I succeed in doing :
var myXML;
var x;
myXML = new ActiveXObject("Microsoft.XMLDOM");
....
myXML.loadXML(my_xml_text);
x = myXML.selectSingleNode("//*");
what should I do in order to get the "x" contents ?
In VB, there is no problem :
msgBox x.xml
, but it doesn't work on JavaScript.
Help, please.
Thanks :)
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl... Mr. x wrote:
How can I use xmlpath technogy by xmldom. (or there is another technique, but not xmldom). It's quite big topic. You have to read about XPathNavigator to understand how to work with XPath in .NET: http://msdn.microsoft.com/library/en...tframework.asp And particularly about using XPath with DOM: http://msdn.microsoft.com/library/en...navigation.asp -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel
the my_xml_text is the contents of a table.
<table id = "aTable"
</table>
I get the my_xml_text by :
aTable.tBodies[0].innerHtml.
What I get is not well formed xml,
and the <table id = "aTable"> , i.e, is without the ",
I meant it is <table id = aTable>.
I know that XHTML is well formed XML,
so is it good thing I translate my HTML file to XHTML ?
Is there any function to translate HTML file to XHTML ?
Thanks :)
"Mr. x" <a@b.com> wrote in message
news:eN**************@tk2msftngp13.phx.gbl... I used the XMLDOM in javascript, so I succeed in doing : var myXML; var x; myXML = new ActiveXObject("Microsoft.XMLDOM"); ... myXML.loadXML(my_xml_text);
x = myXML.selectSingleNode("//*");
what should I do in order to get the "x" contents ? In VB, there is no problem : msgBox x.xml
, but it doesn't work on JavaScript.
Help, please.
Thanks :)
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message news:eI**************@TK2MSFTNGP10.phx.gbl... Mr. x wrote:
How can I use xmlpath technogy by xmldom. (or there is another technique, but not xmldom).
It's quite big topic. You have to read about XPathNavigator to understand how to work with XPath in .NET: http://msdn.microsoft.com/library/en...tframework.asp And particularly about using XPath with DOM:
http://msdn.microsoft.com/library/en...navigation.asp -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel
Mr. x wrote: I know that XHTML is well formed XML, so is it good thing I translate my HTML file to XHTML ?
Depends on. Must be some reason you want to translate it to XHTML, but
you didn't told us why.
Is there any function to translate HTML file to XHTML ?
Google for "HTML Tidy".
--
Oleg Tkachenko http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Hello,
I am trying to translate a table to an xml format and vice versa,
so I send it from client to server (or client to web-service), and vice
versa - that's all.
Maybe I don't get to the point, and there is a better solution for this then
using xml - please let me know.
Thanks :)
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl... Mr. x wrote:
I know that XHTML is well formed XML, so is it good thing I translate my HTML file to XHTML ? Depends on. Must be some reason you want to translate it to XHTML, but you didn't told us why.
Is there any function to translate HTML file to XHTML ? Google for "HTML Tidy". -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel
Mr. x wrote: I am trying to translate a table to an xml format and vice versa, so I send it from client to server (or client to web-service), and vice versa - that's all.
So just send piece of HTML to server as string, on server-side convert it to
XML (in .NET you can use SgmlReader for that).
--
Oleg Tkachenko http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Mr. x wrote: I used the XMLDOM in javascript, so I succeed in doing : var myXML; var x; myXML = new ActiveXObject("Microsoft.XMLDOM"); ... myXML.loadXML(my_xml_text);
x = myXML.selectSingleNode("//*");
what should I do in order to get the "x" contents ? In VB, there is no problem : msgBox x.xml
The same in javascript :
<html>
<head>
<title />
<script type="text/javascript">
var myXML;
var x;
myXML = new ActiveXObject("Microsoft.XMLDOM");
myXML.loadXML("<foo>bar</foo>");
x = myXML.selectSingleNode("//*");
alert(x.xml);
</script>
</head>
<body />
</html>
--
Oleg Tkachenko http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Thanks ...
Can you give me a code sample, please.
Thanks :)
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl... Mr. x wrote:
I am trying to translate a table to an xml format and vice versa, so I send it from client to server (or client to web-service), and vice versa - that's all. So just send piece of HTML to server as string, on server-side convert it
to XML (in .NET you can use SgmlReader for that). -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Labman |
last post by:
I'm parsing an XML document using the XMLDOM object in ASP. I am
running into a problem with a section formatted like this:
<MasterElement>
TitleOfElement
<Abbreviation>
TOE
</Abbreviation>...
|
by: reclusive monkey |
last post by:
I am just starting out with XML. I've been playing with XML and XSLT,
very nice indeed. I particularly like the filtering/ordering functions.
Anyway, I have started to have a look at scripting, and...
|
by: BCM |
last post by:
In ASP 3, I once did a page using javascript and XMLDOM that loaded up xml
files, displayed their data, and automatically refreshed that data at 10
second intervals (not a whole page refresh: just...
|
by: joe |
last post by:
I am having problems checking for the value of an XMLDOM object .
Lets say my XMLDOM object was successfully created as objXMLDoc, and that
has several nodes on it. In the case of a VBScript loop...
|
by: jfizer |
last post by:
I have a web app that uses a form with its fields populated from XML
using Microsoft.XMLDOM. The problem is that Microsoft.XMLDOM functions
seem to run on their own thread, so I dont know when the...
| |
by: Robert Zurer |
last post by:
Hello all,
I want to load an in-memory XmlDocument from the server to the client and
create an XMLDOM object using javascript.
I can do it from a url by calling this Javascript from the...
|
by: Robert Zurer |
last post by:
Hello all,
I want to load an in-memory XmlDocument from the server to the client and
create an XMLDOM object using javascript.
I can do it from a url by calling this Javascript from the...
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I have the following code which I try to load an xml file, but in browser, I
only get text value for each node, not whole xml string. I expect to see
something like
<name...
|
by: AnuSumesh |
last post by:
Hi,
I want to read the text property of XML file.
My xml file is as follows:
<?xml version="1.0"?>
<Domain_Credentials>
<User> anu </User>
|
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,...
|
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...
| |
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,...
|
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,...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |