How Do I Get Single Tags In Xas Xml
Posted 10 February 2004 - 01:23 AM
<audioplayer enabled="1" path="C:\xboxdash.xbe">
and this is what I want;
<audioplayer enabled="1" path="C:\xboxdash.xbe"/>
Posted 10 February 2004 - 01:46 AM
It shouldn't affect anything.
Posted 10 February 2004 - 04:01 PM
Posted 10 February 2004 - 04:13 PM
|QUOTE (flattspott @ Feb 10 2004, 01:01 PM)|
|So avalaunch would still see them both the same? Cause that's what this is all about.|
It should.... but it depends on how they are parsing their XML.
I started with PD code that had a LOT of bugs, since fixed, and also put a lot of work into the tree access.
Posted 10 February 2004 - 04:20 PM
However I'm curious at to what the true arg does.
After looking at the internal.xml I saw you added that attr for the name (thanks for adding that btw). So that's what I used as an example for my newest script.
XMLSetValue avaXML !.network.setup "1" true gives me
Now what would it do if I left off the true arg or changed it to false?
Also another thing thing I'm wondering about is how this XML is made in relation to the XAS file. Cause in my script I have them one order then in the produced XML they are in another
XMLSetValue avaXML !.user.irc.font.name "framd" true
XMLSetValue avaXML !.user.irc.font.size "12" true
XMLSetValue avaXML !.user.irc.server irc.homelien.no
XMLSetValue avaXML !.user.irc.nick woo484
XMLSetValue avaXML !.user.irc.altnick _USER2_
Makes this below, with the fonr part at the bottom, even though i thought it was gonna be fisrt.
<font name="framd" size="12">
Edited by flattspott, 10 February 2004 - 04:26 PM.
Posted 10 February 2004 - 04:29 PM
Posted 10 February 2004 - 05:21 PM
|QUOTE (flattspott @ Feb 10 2004, 01:29 PM)|
|And while I'm at it, how about an XMLComment command?|
Well, to understand how XML works in MXM, you have to know that I track things in a "tree" - nodes are different from elements. When writing out the XML from this tree, elements are obviously (from your example) dumped first, then nodes. These are two distinct groups of items.
As for comments, it would require quite a bit of work for me to do that at the moment. Suffice it to say, I'd like to revisit the XML stuff at a later time and re-write some things, but I don't want to break anything, and currently, most of my energy is in getting the System UI stuff done for the next release.
As they say "if it ain't broke, don't fix it" While I'd like to redo some aspects of the XML system, there's no pressing need (from MXM's perspective) at the moment to mess with it.
Posted 10 February 2004 - 06:30 PM
Damn, this XML/actionscript parsing or whatever is fast. It spits out an entirely new avalaunch.xml in less than a second.
Way to go
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users