Home Discussion Discuss: Ask XML Questions

  • How to xml image in href linkvino August 20, 2011 at 12:10 PM

    hi. i am working on xml flash file how to href link add in xml image pls help me xml file codeing: <?xml version="1.0" encoding='UTF-"8"?> <data> <pic imgURL='img\1.jpg'/> <pic imgURL='img\2.jpg'/> <pic imgURL='img\3.jpg'/> <pic imgURL='img\4.jpg'/> <pic imgURL='img\5.jpg'/> </track> </data> This Flash Action script : var myXML = new XML(); myXML.ignoreWhite = true; myXML.load("Photos.xml"); myXML.onLoad = function(success) { if (success) { var myList = myXML.firstChild.childNodes; var PhotoNum=myList.length-1; var vx=110,vy=10,va=.9,vs=.96,tx var vxs=25,vys=50,vas=50,vss=50 for(i=0;i<=PhotoNum;i++) { _root.attachMovie("MC_photo","MC_photo"+i, 100-i); setProperty("MC_photo"+i,_x,vxs); setProperty("MC_photo"+i,_y,vys); //setProperty("MC_photo"+i,_alpha,vas); setProperty("MC_photo"+i,_xscale,vss); setProperty("MC_photo"+i,_yscale,vss); _root["MC_photo"+i].LoadName=myXML.childNodes[0].childNodes[i].attributes.imgURL; _root["MC_photo"+i].gotoAndStop(2); _root["MC_photo"+i].tx=_root["MC_photo"+i]._x; _root["MC_photo"+i].ty=_root["MC_photo"+i]._y; _root["MC_photo"+i].ts=_root["MC_photo"+i]._xscale; _root["MC_photo"+i].td=100-i; _root["MC_photo"+i].onRollOver=function() { this.onEnterFrame=function() { d=this.tx+100*(this._xscale/100)-this._x; if(d<=0.5){delete this.onEnterFrame} this._x+=d/4; } } _root["MC_photo"+i].onRollOut=function() { this.onEnterFrame=function() { d=this.tx-this._x; if(Math.abs(d)<=0.1){delete this.onEnterFrame} this._x+=d/3; } } _root["MC_photo"+i].onPress=function() _root["MC_photos"+i].onPress=function() { getURL("http://www.google.com/"); } { this.enabled=false; this.swapDepths(101) this.onEnterFrame=function() { dx=300-this._x; dy=120-this._y if(Math.abs(dx)<=0.1 and Math.abs(dy)<=0.1) { { delete this.onEnterFrame; this._xscale=65; this._yscale=65; this.onMouseDown=function() { delete this.onMouseDown; this.onEnterFrame=function() { if(Math.abs(this._x-this.tx)<.1 and Math.abs(this._y-this.ty)<.1) { delete this.onEnterFrame; this.swapDepths(this.td); this.enabled=true; } this._x+=(this.tx-this._x)/2 this._y+=(this.ty-this._y)/2 this._xscale+=(this.ts-this._xscale)/2; this._yscale+=(this.ts-this._yscale)/2; } } } this._xscale+=(65-this._xscale)/2; this._yscale+=(65-this._yscale)/2; } this._x+=dx/2 this._y+=dy/2 } } vx*=1; vy*=0.65; vxs+=vx; vys-=vy; vas*=va; vss*=vs; } } else { trace("Error!!!"); } }

  • Excel to XML conversionTom September 2, 2011 at 12:24 AM

    I have an Excel file I want to convert to XML but it has some issues: 1. The first 2 rows contain file header information: PRODUCT |DATE BASKETBALL|8/31/2011 2. The data column headers duplicated. NHSF |DATE |PRICE|NCAA |DATE |PRICE BALL-101|8/16/2011|39.00|BALL-204|8/18/2011|49.00 BALL-102|8/20/2011|42.00|BALL-205|8/24/2011|52.00 I am not an XML guy (yet) but I would like to know: 1. Can XML handle two different record types in the same file 2. Can you recommend an (programmatic) way to change the duplicated data column headers, i.e., NCAA - PRICE & DATA, which are duplicates of NHSF - PRICE & DATA Hope this is understandable. I'm just looking for direction here. Thanks, Tom

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Development process Questions

questions from an xml file
questions from an xml file  i am developing online bit by bit exam for that i retrieved questions from an xml file but when i retrieved using jsp i am getting all questions at a time in a single page.but i want to show one 

Servlet Interview Questions

xml - Servlet Interview Questions
Java servlet xml request  How to create a java servlet xml request 

General

Ask XML Questions
Ask XML Questions     .... If our visitors face any sorts of problem in XML scripting, share with us. Ask... need to login and post your questions on our site under our service ‘Ask 

Java Interview Questions

Insert element into an existing xml file - Java Interview Questions
Insert element into an existing xml file  Dear all, how can i insert elements into an existing xml file? now when i am going to insert new elements... the example code at http://www.roseindia.net/xml/dom/xml-tutorial.shtml Post your 

Java Interview Questions

Insert element into an existing xml file - Java Interview Questions
Insert element into an existing xml file  thanks for the reply , I have the following method, and each time when i call the method this will create a new root node "company" and then other elements, but i want the element 

Java Beginners

XML
XML  How i remove a tag from xml and update it in my xml 

XML Questions

xml
xml  validate student login using xml for library management system 

XML Questions

xml
xml  validate student login using xml for library management system 

XML Questions

xml
xml  why the content written in xml is more secure 

XML Questions

xml
xml  what is name space,xml scema give an example for each   XML Namespaces provide a method to avoid element name conflicts.They are used for providing uniquely named elements and attributes in an XML document 

XML Questions

XML
XML  create flat file with 20 records. Read the records using xml parser and show required details 

Java Beginners

XML
XML  please tell me how i remove one tag out of all similar type of tags in xml 

Java Beginners

xml
xml  how can i remove white space and next line when i copy stream to xml file 

XML Questions

XML
XML  Hi...... Please tel me about that Aren't XML, SGML, and HTML all the same thing? Thanks 

Java Beginners

xml
xml  what is xml   Extensible Markup Language (XML... that is both human-readable and machine-readable. It is defined in the XML 1.0... gratis open standards. The design goals of XML emphasize simplicity, generality 

XML Questions

xml
xml  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language 

XML Questions

XML
XML  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language 

Java Interview Questions

xml
 

XML Questions

xml
 

XML Questions

XMl
 

General

Ask Ajax Questions Online
Ask Ajax Questions Online       AJAX refers to Asynchronous JavaScript and XML.... Ask Ajax Questions online and get the correct answers immediately or within 

XML Questions

XML - XML
XML  What is specific definatio of XML? Tell us about marits and demarits of XML? use of XML? How we can use of XML?  Hi, XML... language much like HTML used to describe data. In XML, tags are not predefined 

XML Questions

XML - XML
XML XSD validation in java  Can anyone help in writing validation for XML XSD in Java 

XML Questions

XML - XML
XML  How to run XML program?  Hi Friend, Please visit the following links: http://www.roseindia.net/xml/ http://www.roseindia.net/xml/dom/ Hope that it will be helpful for you. Thanks 

XML Questions

XML - XML
XML  How to convert database to XML file?   Hi Friend, Do you want to store database data into xml file ? Please clarify this. Thanks 

XML Questions

xml - XML
friend, XPath : It is a language for finding information in an XML document. It is used to navigate through elements and attributes in an XML document. It is a language for selecting nodes from an XML document. It is used 

XML Questions

xml - XML
xml  how to match to xml file?can you give example with java code 

XML Questions

xml - XML
xml  hi convert xml document to xml string.i am using below code... = stw.toString(); after i am getting xml string result, like Successxxx profile... Friend, Please visit the following link: http://www.roseindia.net/xml/reading 

XML Questions

xml - XML
xml  define parser and xml,in jaxp api how to up load parsers... then the program contains syntax errors. XML is defined as an extensible... information,Examples and Tutorials on Xml visit to : http 

XML Questions

xml - XML
xml  hi convert xml file to xml string in java ,after getting the xml string result and how to load xml string result? this my problem pls help..."); FileOutputStream output = new FileOutputStream("new.xml"); ReadXML xml = new 

DMCA.com