Topic: XML file system |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-15-2003 04:32
I'm trying to figure out how to use XML to cary site map information over to flash. The real problem is that i don't understand DTD very well and I don't want to try using the same kind of tag over and over or else I won't be able to find the useful stuff. |
Maniac (V) Inmate From: Boston, MA, USA |
posted 08-15-2003 13:51
I guess I don't know enough about beer to see where you're going with your content here. I do know that Flash ishapy with a pretty simple xml structure. In fact, Flash has a non-validating xml parser, so it's up to you to make sure you are passing valid xml, and the presence or absence of a DTD doesn't make any difference to Flash. code: beers
|
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-16-2003 06:07
1. I realize that I don't NEED a dtd, but I thought it was a smart move. |
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-19-2003 03:37
I'm VERY CLOSE but there's still some work to be done. Here's what's working so far: http://home.osysi.net/xml/parser.php code: <flashStructure xmlns:flashStructure="flashStructure.dtd">
code: <flashStructure xmlns:flashStructure="flashStructure.dtd">
|
Maniac (V) Inmate From: Boston, MA, USA |
posted 08-19-2003 04:41
"how to run just a function to show one level of data" |
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-22-2003 19:32
That's a good question. I played with the idea of keeping the XML very non-standard and then worrying about the formatting in flash later. Just to make things clear though, I'm trying to figure out how to run just a php function to show one level of data. Then have an if statement check if the level increases or decreases. Then have the primary loops that run both functions as needed. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-22-2003 19:41
Bmud: So if I understand correctly you are using PHP to dump the XML for Flash to suck up? |
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-27-2003 15:14
quote:
code: while($myrow = mysql..... SORT by level ASC){
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-27-2003 16:10
Bmud: I emailed you back last night - if you didn't get it then let me know and I'll resend. code: <node>
code: <node>
|
Bipolar (III) Inmate From: Raleigh, NC |
posted 08-29-2003 00:56
Yes, I remember reading on ultrashock.com that it is good to keep the code very "flat" as you put it. In fact, they suggested removing all cairages and having just one ugly line of code. That was malicious for a while.. Yes I got your email |
Maniac (V) Inmate From: Boston, MA, USA |
posted 08-29-2003 16:18
Don't confuse a "flat" structure with stripping white space. The former is a design issue and is worthy of some considerable planning to make things as painless as possible later. The latter simply tries to make the file size smaller by eliminating "unnecessary" characters. Unnecessary for computers that is. One of the charms of xml is its "human readable" nature. You can skim an xml file - it makes sense. Stripping the white space may make a small performance improvement, but at the expense of readibility. If you're having a script write the xml, maybe readability isn't an issue. If you chose to retain the white space for human readability, Flash can easily strip the whitespace by setting the ignoreWhite property to true (this is important - otherwise white space is considered a node and you'll get ALL screwed up when you try to parse the data!). |
Maniac (V) Inmate From: Boston, MA, USA |
posted 09-04-2003 18:05
Bmud: |