> I need to put some embedded xml within a web page. It has to be in the
> webpage.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
I can't use IE only stuff this is on an intranet with lots of Linux and Mac
computers.
Anyway to to grab the xml from withing the webpage, filter it, and use it as a
datasource for the dropdownlists.
Martin Honnen - 28 Jun 2007 14:20 GMT
> I can't use IE only stuff this is on an intranet with lots of Linux and Mac
> computers.
> Anyway to to grab the xml from withing the webpage, filter it, and use it as a
> datasource for the dropdownlists.
If you want cross-browser stuff with a HTML document served as text/html
then in my view you can't embed the XML in the HTML document, rather you
use separate XML document and load that using XMLHttpRequest
(respectively new ActiveXObject('Msxm2.XMLHTTP.3.0') in IE 6).

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
WenYuan Wang [MSFT] - 29 Jun 2007 14:16 GMT
Hello Chuck,
I'm not sure I have understood the issue correctly.
It seems like you want to grab the embedded xml content from the web page.
Your end user is using Linux or Mac Computers. Thus, it is not possible for
you to use IE. Am I missing something?
If this is the case, in my opinion, you could use System.Web.HttpRequest to
grab the whole web page(HTML) and then exact the XML content(which you
need) by System.Text.RegularExpressions.
I could found some example on this method if you are interested in it.
Please let me know if this is what you need. Thanks.
Hope this helps
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.