Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - InnerText versus Value property on xmldocument [Thread Next] Re: InnerText versus Value property on xmldocumentTo: 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
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
