Help - Search - Members - Calendar
Full Version: Xml Definitions Needed Please
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM ActionScripting Forum
flattspott
My question is this... Can someone tell me what's what in an XML file. I know the root node is the start and end tags but what about elements, attributes and values. So in short i'd like to know all the WHATSTHIS's below

1. <sometag somethingelse="WHATSTHIS">BLA</sometag>
2. <sometag somethingelse="BLA">WHATSTHIS</sometag>
3. <sometag WHATSTHIS="BLA">BLA</sometag>
Kthulu
dude, i doubt anyone can tell you what that stuff means lol

check out this pinned thread...
http://forums.xbox-scene.com/index.php?act...T&f=35&t=129619

it's pinned in the main MXM forum
flattspott
All I wanted to know is if each WHATSTHIS is a value, element or attribute.
Kthulu
ok...i don't think there's any formal definitions on this stuff but here's my conception...

1. attribute-value
2. ??? the stuff the tag wraps around ??? the piggy-in-the-blanket ??? the cream-filling of the xml ??? tongue.gif
3. attribute

is there a particular section of one of the MXM user guides or something you need to ask about?
flattspott
Nope. Its for a for a few XAS's I'm doing.
Kthulu
are you going to be asking the user if they want to 'edit the tag', 'edit the attribute', 'edit the attribute-value' and stuff like that? for that purpose, i would call the 'text in the middle of the xml' (2) the 'value'...
geniusalz
<tagname attributename="attributevalue">content</tagname>
good? wink.gif
flattspott
I suppose that's what I'm doing.

The first XAS is - Xecuter2 Info. You run it and you can see all the DIP-Swith settings. You can also view you current bios info and rename the name if you want (for adding new bios)
geniusalz
DIP switches? Interesting to say the least. Tell me how it goes.
flattspott
Yes DIP-switches, for changing the BIOS bank. rolleyes.gif

I thought it would kinda handy to have them on the ol' Xbox if I need to switch to certain bank without having to search on the net or around the house for the Switches
Kthulu
QUOTE
<tagname attributename="attributevalue">content</tagname>


content...that is better than 'piggy-in-the-blanket' lol
BenJeremy
In my XML lexicon:

<Node attribute="attrvalue">
<Element Attribute="attrvalue">elementvalue</Element>
</Node>


Nodes don't have particular values.... they contain other nodes or elements.

Nodes and elements can have attributes. In MXM's parser, I make little distinction, form a generalized access point of view - it sees:

<SomeNode>
<pos x="0" y="23" />
</SomeNode>

pretty much the same as:


<SomeNode>
<pos>
<x>0</x>
<y>23</y>
</pos>
</SomeNode>


just because I felt it would be more forgiving and robust with human inputting the XML text.
geniusalz
QUOTE (BenJeremy @ Jan 21 2004, 08:03 PM)
it sees:

<SomeNode>
<pos x="0" y="23" />
</SomeNode>

pretty much the same as:


<SomeNode>
<pos>
<x>0</x>
<y>23</y>
</pos>
</SomeNode>


just because I felt it would be more forgiving and robust with human inputting the XML text.

I noticed that too, recently.
And that's the way the !.blah.blah.blah works too.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.