So, anyone around who can give me a little help in using JavaScript to manipulate XML using the DOM?
Buffistechnology 3: "Press Some Buttons, See What Happens."
Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
I haven't done coding like that in a while, but I was a big fan of libraries like Prototype & jQuery when I did.
Well, I've been using jQuery somewhat for a while now (but not for this).
Briefly, what I want to do is take a node of an XML document, do an XSL transformation on it and then replace that node in the XML doc with the results of the transformation. But I'm kinda' getting confused about all the different JavaScript objects that pertain to XML, so I'm not sure I'm going about this the right way.
Currently the code does the changes to the node using Javascript to manipulate the DOM (with no XSL transformation). This works but can be slow. Using the XSL transformation would (I think) increase performance.
Is this something that jQuery could handle?
Hey Buffistae, I'm looking at a new phone. Does anybody have experience with or opinions on or anecdata about these three options?
Android LG Optimus One. (Totally sounds like a madeup Transformers character.)
LG Rumor Reflex. (Totally sounds like a mashup of Duran Duran titles.)
Samsung Nexus 4G. (Totally sounds like something made in Korea.)
Weird, that, Samsung sounding Korean.
Well, the LG Rumor Reflex is not a smart phone, so you can't add apps (or maybe you can add a handfull of apps).
I had an LG Rumor before my iPhone. It was OK for a phone but I hated the touch screen. But now the Reflex has a capacitance touch screen, so it should be better.
This article is kinda' interesting:
As Apple and Samsung dominate, Japan’s tech giants are in a free fall - The Washington Post
Even the Japanese companies’ strengths matter less now, as consumers have lost the willingness to pay a premium for quality. Sharp and Sony and Panasonic make among the world’s best televisions, for instance, but such Korean competitors as LG and Samsung have found ways to make products that are almost as good for far less money.
“In the past there was a huge gap between the best of breed and second best,” said Michael Gartenberg, an industry analyst at Gartner, a technology research company. “Now, maybe there’s still a small gap between a Sony high-definition screen and an LG screen, but most consumers can’t see it. And if most consumers can’t see it, it’s not there.
Huh. I'm going to buy a new TV one of these days, and am leaning towards Samsung.
Is this something that jQuery could handle?
Sorry, that's well past the limits of my knowledge.
This works but can be slow. Using the XSL transformation would (I think) increase performance.
I doubt it will increase performance. I'm surprised you're finding modifying one DOM node in an XML DOM to be slow. How do you measure its performance?