Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: InnerText versus Value property on xmldocument

From: "Paul de Vries" <paul.de.vries@-------.-->
To: NULL
Date: 12/1/2004 3:36:00 PM
hi,

why not use : response.write (myelement.Text)

"Keith Chadwick" <webmaster-nospam@a...> wrote in message 
news:uDofa5x1EHA.1740@T......
> Given the following xml
>
> <root>
>    <title>Hello%20World</title>
> </root>
>
> and the following code
>
> dim myelement as xmlelement
> myelement=xmldoc.selectSingleNode("/root/title")
>
> response.write (myelement.innerText)
> response.write (myelement.value)
>
> Why does nothing come up for value and innerText returns me the value 
> still encoded as well and I then have to manually decode it with 
> server.urldecode!!
>
> Should not the value property return the value of the element like 
> everywhere else on the planet? InnerText is supposed to return all text 
> including text of child nodes and innerXML returns the xml child nodes, 
> nes pas?
>
> Cheers
> Keith
> 




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