Re: How to parse xml in JS



On Nov 21, 11:31 am, Bart Van der Donck <b...@xxxxxxxxxx> wrote:
VK wrote:
On Nov 20, 9:21 pm, "Piotr Maslak" <piotr.mas...@xxxxx> wrote:

Hello everyone, I looking for a gently solution
how to get information from xml (giving url) and
then format and print with JS with interval

You cannot work with data across different domains. There are
different ways to use different auxiliary transports for cross-domain
XML data transfer (Web Services, Runtime Script Blocks, JSONet) - but
they are rather or very far from anything being "gently" :-)

What an odd opinion.

What is odd in here? That JavaScript cannot operate (by default)
across domains? The OP question was about possible JS solutions, not
just about any possible solution. ;-)

It are server-
side XML scripts that open the real possibilities, not XMLHttpRequest.
Virtually any server side language is able to make remote requests
(typically using sockets, but I've also used plain HTTP, ot whatever
channel that both parties understand). Most of the server languages
also have XML parsers. From the point you have those two tools (remote
requests + XML parser), the sky is the limit.

Yes, and doubled Internet traffic worldwide ;-) :-(

With client-side cross-domain handling we have:

Client <--> Server A
^-- <--> Server B

With any of content-grabbers we have:

Client
Client <--> Server A
^-- <--> Server A <--> Server B

So on each such call one has one absolutely "no added value" data
transfer.

Think of it as of a real standard and think of pentabytes of useless
data transfers across the Internet.

So no, my opinion is that server-side content-grabbers is a temporary
forced measure caused by stubbornness of UA producers (they kept
believing that it adds any security to their clients). The future is
for Web Services and server-side access permission files (WSDL).
.



Relevant Pages

  • Re: Duplicate Record with .ADDNEW
    ... If the database server will allow you to create a table without something, ... table there is no possibility of duplicate records. ... field imported from the XML. ... Use the Command object instead. ...
    (microsoft.public.vb.database.ado)
  • RE: XML iFilter needed for SPS 2003 infopath forms?
    ... did in fact need to be installed on the Sharepoint server, ... Apparently the claim that SP indexes xml files is not quite specific enough. ... It must use a default text Filter not a true xml ifilter. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Using Word Mail Merge feature for custom templates
    ... > You are suggesting that I store the content in XML at server end and when I ... A browser knows to open a ... WordProcessingML file in Word due to the PI Word writes into it. ...
    (microsoft.public.word.mailmerge.fields)
  • Is FOR XML EXPLICIT still an accepted technique?
    ... I have inherited an ASP IIS site attached to a SQL ... Server 2000 database. ... I am new at using XML and have done considerable reading. ...
    (microsoft.public.sqlserver.xml)
  • Re: Design ideas for data entry app
    ... There is a server module that they can build an entire interview with - ... This generates a custom XML document with versioning that is ... The tricky parts in .NetCF are with using generic event handlers and then ...
    (microsoft.public.dotnet.framework.compactframework)