xboxscene.org forums

Author Topic: Xml Definitions Needed Please  (Read 184 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Xml Definitions Needed Please
« on: January 21, 2004, 11:34:00 AM »

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>
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Xml Definitions Needed Please
« Reply #1 on: January 21, 2004, 11:45:00 AM »

dude, i doubt anyone can tell you what that stuff means lol

check out this pinned thread...
http://forums.xbox-s...T&f=35&t=129619

it's pinned in the main MXM forum
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Xml Definitions Needed Please
« Reply #2 on: January 21, 2004, 11:49:00 AM »

All I wanted to know is if each WHATSTHIS is a value, element or attribute.
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Xml Definitions Needed Please
« Reply #3 on: January 21, 2004, 12:00:00 PM »

tongue.gif
3.  attribute

is there a particular section of one of the MXM user guides or something you need to ask about?
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Xml Definitions Needed Please
« Reply #4 on: January 21, 2004, 12:06:00 PM »

Nope. Its for a for a few XAS's I'm doing.
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Xml Definitions Needed Please
« Reply #5 on: January 21, 2004, 12:09:00 PM »

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'...
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Xml Definitions Needed Please
« Reply #6 on: January 21, 2004, 12:16:00 PM »

wink.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Xml Definitions Needed Please
« Reply #7 on: January 21, 2004, 12:18:00 PM »

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)
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Xml Definitions Needed Please
« Reply #8 on: January 21, 2004, 12:26:00 PM »

DIP switches?  Interesting to say the least.  Tell me how it goes.
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Xml Definitions Needed Please
« Reply #9 on: January 21, 2004, 12:30:00 PM »

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
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Xml Definitions Needed Please
« Reply #10 on: January 21, 2004, 12:36:00 PM »

QUOTE
<tagname attributename="attributevalue">content</tagname>


content...that is better than 'piggy-in-the-blanket' lol
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Xml Definitions Needed Please
« Reply #11 on: January 21, 2004, 03:03:00 PM »

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.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Xml Definitions Needed Please
« Reply #12 on: January 21, 2004, 04:13:00 PM »

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.
Logged