Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: InnerText versus Value property on xmldocument [Thread Next] Re: InnerText versus Value property on xmldocumentTo: NULL Date: 12/1/2004 11:16:00 PM <webmaster-nospam@a...> wrote:
>I assume every else in world as in referring to IE ;-)
>
>And value would be the obvious one to return the value of a node.
OK well there are some cases where value is used in javascript,
obviously. But .value is generally only useful if you're querying
things like form elements which have such an attribute.
>Also no text property on xmlelement either.
You're sure ? Cause if there isn't then you'd throw a script error.
Are you certain it's just not empty ? What happens if you use
<script language="javascript">
xmldoc=new ActiveXObject("MSXML2.DomDocument");
xmldoc.load("helloworld.xml");
myelement=xmldoc.selectSingleNode("/root/title");
alert(myelement.text);
alert(myelement.innerText);
alert(myelement.value);
</script>
> Not used to MS actually being W3C compliant.
>:-)
Yes, it is something of a departure for them, I agree <g>
On Tue, 30 Nov 2004 16:33:56 -0500, "Keith Chadwick"
<webmaster-nospam@a...> wrote:
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
