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'
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,
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
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
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
5 matches
Mail list logo