How Add element to XML file?

How do I add targets to links defined in an XML file?

  • A client's site uses a Flash object to display news and events updates with the information and links being defined in an XML file. I am trying to have one of those links open in a new window - where and how do I define this target?

  • Answer:

    you need to do the following; In XML, set uppercase targ="_blank" to TARG="_blank" and set different variables like this - subBtn.targ = this.subfolder[i].attributes.TARG; and this getURL(this.link, this.targ) that should do it. http://www.liquid-technologies.com/xml-editor.aspx

ahsheb at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

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.