Re: [xmljs-users] Question about the XML using Xpath script
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-06-25 20:40:27
|
Hi Jerry! The best way of getting the XML to the browser is to embed it into a hidden text area as described here: http://xmljs.sourceforge.net/website/documentation-faq.html#faqhowdoigetxmltobrowser Is there is a particular reason you need to put it into an <xml> tag? I was under the impression that was an IE-only xml data island thing. If you do need to put it into an <xml> tag, you probably would need to get the <xml> tag via the DOM elements provided by the browser and then serialize the contents of the tag back to a string. You would then put that string into XML for <SCRIPT> for parsing. At that point, you could use the XPath processor.... Best regards, David --- Jerry Lam <Je...@SA...> wrote: > Hi, > > I would like to know if it is possible to have the javascript to load the > entire XML which is embedded in the HTML. Example, > > <html> > <body> > <xml><example>will this work?</example></xml> > </body> > </html> > > Is it possible to use the xpath for <script> to load this xml and use xpath > expression to parse the xml?? > > Thank you for you advice, > > Jerry > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |