EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-06-2006, 04:58 PM
ishnar ishnar is offline
A Brown Bear
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 11
Default Closing Tags

Hey,

I'm trying to update an old mod and I'm trying to get it organized in the text editor so I can better see what's going on, but closing tags are annoying me.

</page> seems to be used completely arbitrarily. I've opened some core files to compare here's an example from the bottom lines of mainhud.player

<Page AbsorbsInput="false" .....
<Page AbsorbsInput="false" Background....
<Page AbsorbsInput="false" Background ....
</Page>
</page> (Last line of file)

I really don't see why the top <page> gets closed but the middle two do not.

I know when HTML first came out that the standard didn't require closing tags for everything, and failure to close <p> tags and such is still supported. Is this just a case where the client forgot to add the closing tags? So I can do it myself--to my custom file--for my own peace of mind?

Thanks.
Reply With Quote
  #2  
Unread 12-06-2006, 05:51 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Standard XML...

<Page>
</Page>

Is the same as

<Page />

The later can be used when an object does not contain other objects. This applies to anything.

<Button></Button>

can be written as

<Button />

If it doesn't contain a text value.

Note: the extra space is not required so <Page/> also works.
Reply With Quote
  #3  
Unread 12-06-2006, 06:24 PM
ishnar ishnar is offline
A Brown Bear
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 11
Default

ahh, thanks. Now it's so much clearer!
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:13 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI