Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: InnerText versus Value property on xmldocument

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: 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:




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent