[jQuery] Re: XML manipulation

2009-06-23 Thread Liam Potter
take it out of the textarea, right now it's not XML data but random text. bigb wrote: I'm having some real difficulty figuring out how to manipulate xml data with jquery. Here is my situation. I have a hidden TextArea that contains xml data, something like this: items item value='1'

[jQuery] Re: XML manipulation

2009-06-23 Thread Michael Lawson
I can't speak for javascript as I'm not the expert here, but in a lot of other languages you have to explicitly tell objects and functions that the String you are using is xml, else its just a string, which sounds like your problem here. cheers Michael Lawson Development Lead, Global Solutions,

[jQuery] Re: XML manipulation

2009-06-23 Thread bigb
I don't have an option to remove it from the textarea at the moment. Is there a better way to storing and generating xml data on the fly? On Jun 23, 8:41 am, Liam Potter radioactiv...@gmail.com wrote: take it out of the textarea, right now it's not XML data but random text. bigb wrote: I'm

[jQuery] Re: XML manipulation

2009-06-23 Thread Liam Potter
I haven't really worked with XML before, but I can't see storing it in a textarea actually working. As I understand your code you have this textarea items item value='1' text='x'/item item value='2' text='y'/item /items /textarea You then put

[jQuery] Re: XML manipulation

2009-06-23 Thread bigb
Well, thank you everyone for your help. Through it I was able to come up with a solution. First, I had to convert the data from the textarea into an XmlDocument (see jQuery.createXMLDocument). Then, my manipulation worked perfectly. Finally I had to convert the xmlDoc back to a string. On Jun