It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming XML Forum

Need to merge two XML files into one that calls url and text

Need to merge two XML files into one that calls url and text

Postby kakababa on Mon May 18, 2009 3:15 pm

:roll: Hi,


My goal is to be able to pass a url and text (that will get styled by a CSS that gets parsed into Flash later) in Flash (Slideshow)

I have to xml files that each do what i want. But im am unable to merge them into one correctly written xml.


Basically, i need to change my xml code that calls in URL to Flash together (merged) with other XML tags that wrap the text that serve as Style SHeets later (CSS is parsed into Flash separetely).


Example:


First xml that works and gets me the image is this:


<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<image img="images/sample.gif" />
</gallery>



The second xml file that passes text and wraps it with tags that later styled with CSS (parsed into Flash from separate CSS file) is here:


<?xml version="1.0" encoding="UTF-8"?>
<storyfile>
<headline>This Tutorial Shows the Use of CSS with XML in Flash <br /></headline>
</storyfile>


And here is a part of code in Flash that deals with the first xml:

loader.loadMovie(myXML.firstChild.childNodes[mycount].attributes.img);

So you see how the Flash code is able to grab the code for right image, but i need to take the stuff from second xml example and make it into one xml file.

Thanx!
kakababa
 
Posts: 1
Joined: Mon May 18, 2009 3:03 pm

Who is online

Users browsing this forum: No registered users and 0 guests