View Single Post
  #10  
Unread 05-15-2011, 02:26 AM
Digital_Utopia's Avatar
Digital_Utopia Digital_Utopia is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 207
Alright, XML Library is done - at least done enough to move on to the fun stuff. What follows is a brief rundown of the library's API. When this is released, docs will be up on the wiki here. Besides, if you're familiar with dealing with XML on the web, you're probably not going to need much reference here in the first place.

Constructor

Code:
myXml = DigitalUtopia.XML.Document(xmlString);
Classes

Node

This is the base class, which all other classes use.

Properties
nodeName
nodeValue
nodeType
attributes{}
childNodes{}
firstChild
lastChild
nextSibling
previousSibling
parentNode
textContent

Methods
isSameNode(nodeToCompare)
hasChildNodes()
hasAttributes()

Element

Standard tag-type node (only non-inherited properties/methods listed)

Properties
tagName


Methods
hasAttribute(attributeString)
getAttribute(attributeString)
getAttributeNode(attributeString)
getElementsByTagName(tagString)
getElementById(idString)

Attribute

An Attribute node consists of name/value pairs such as name="value"

Properties
isId
name
value
ownerElement

Methods
none

Comment/Text

These two objects are different types, and different objects, but the same non-inherited properties/methods. (only non-inherited properties/methods listed)

Properties
data
length


Methods
substringData(start,length)

Document

The special node that contains the rest of the node tree (only non-inherited properties/methods listed)

Properties
xmlVersion
inputEncoding
xmlEncoding
xmlStandalone


Methods
getElementsByTagName(tagString)
getElementById(idString)
__________________

Lord of the Rings Online
75 Fourohfour | 75 Artemedis | 60 Whiskeytango Foxtrot | 50 Mistah Boombastic | 56 Appetizer | 25 Aggromi
61 Onepointtwentyone Gigawatts


World of Warcraft
90 Downlo 85 Gravetaxi 85 Ümad 85 Artemedis 85 Guthuros
Reply With Quote