How do I append an attribute to an XML element using Javascript?
-
here is what I got so far: XmlDoc = new ActiveXObject("Microsoft.XMLDO... XMLElem=XmlDoc.createElement("... I don't know how to append attributes to the element and then add that to the XMLDoc. Here is an example of the output XMLDoc that I need: <XImg Source="somefile.gif" height="10" width="20"></XImg> <XImg Source="somefile.gif" height="10" width="20"></XImg> <XImg Source="somefile.gif" height="10" width="20"></XImg>
-
Answer:
this shud help http://www.google.co.in/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.w3schools.com%2Fxml%2Fxml_savedata.asp&ei=GGCRRNOaLdDORpLjvO0I&sig2=DiuMJhPKs1DNe4DUlzd5mQ regards Islam Inamdar [email protected] inamdarinfotech.com join new randomizer website www.allyours.info
kirsty19... at Yahoo! Answers Visit the source
Related Q & A:
- How can I allow user to create posts in website using ASP.NET?Best solution by Programmers
- How can I remove duplicate Objects from array of Objects in javascript?Best solution by Stack Overflow
- How can I extract data of an external XML to PHP?Best solution by Stack Overflow
- How do I downgrade my Darth Vader slim PSP without using an old PSP battery and/or opening the PSP slim batt?Best solution by Yahoo! Answers
- How Can I Connect To The Internet On My Psp Using A USB Cable?Best solution by askdavetaylor.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.