Android Programming Press on the image to return to the main documentation page.

XOM

Written by Martin Pearman

The B4A XOM library is a (so far) partial implementation of the java XOM library by Elliotte Rusty Harold.
The java XOM library is licensed under the terms and conditions of the LGPL, http://www.gnu.org/licenses/lgpl.html
More info can be found here: http://www.xom.nu/

List of types:

XOMAttribute
XOMBuilder
XOMComment
XOMDocType
XOMDocument
XOMElement
XOMElements
XOMNamespace
XOMNode
XOMNodes
XOMParentNode
XOMProcessingInstruction
XOMText

XOMAttribute


Events:

None

Members:


  Copy As XOMNode

  IsInitialized As Boolean

  LocalName As String

  NameSpacePrefix As String [read only]

  NamespaceURI As String [read only]

  SetNamespace (Prefix As String, URI As String)

  ToString As String

  ToXML As String

  Value As String

Members description:

Copy As XOMNode
IsInitialized As Boolean
LocalName As String
NameSpacePrefix As String [read only]
NamespaceURI As String [read only]
SetNamespace (Prefix As String, URI As String)
ToString As String
ToXML As String
Value As String

XOMBuilder


Events:

BuildDone(XOMDocument1 As XOMDocument, Tag As Object)

Members:


  BuildFromFile (FilePath As String, Tag As Object)

  BuildFromInputStream (InputStream1 As java.io.InputStream, BaseUri As String, AutoCloseStream As Boolean, Tag As Object)

  BuildFromString (XmlString As String, BaseUri As String, Tag As Object)

  BuildFromURL (Url As String, Tag As Object)

  Initialize (EventName As String)

  IsInitialized As Boolean

Members description:

BuildFromFile (FilePath As String, Tag As Object)
Build an XOMDocument from the file specified by FilePath.
Tag - Pass any Object as the Tag and when the method has completed, the Tag Object is returned in the BuildDone event.
BuildFromInputStream (InputStream1 As java.io.InputStream, BaseUri As String, AutoCloseStream As Boolean, Tag As Object)
Build an XOMDocument from InputStream1.
Tag - Pass any Object as the Tag and when the method has completed, the Tag Object is returned in the BuildDone event.
BuildFromString (XmlString As String, BaseUri As String, Tag As Object)
Build an XOMDocument from the XmlString.
Tag - Pass any Object as the Tag and when the method has completed, the Tag Object is returned in the BuildDone event.
BuildFromURL (Url As String, Tag As Object)
Build an XOMDocument from the document specified by Url.
Tag - Pass any Object as the Tag and when the method has completed, the Tag Object is returned in the BuildDone event.
Note that your application will require android.permission.INTERNET if you use this method.
Initialize (EventName As String)
IsInitialized As Boolean

XOMComment


Events:

None

Members:


  ChildCount As Int [read only]

  Copy As XOMNode

  GetChild (Index As Int) As XOMNode

  IsInitialized As Boolean

  ToString As String

  ToXML As String

  Value As String

Members description:

ChildCount As Int [read only]
Copy As XOMNode
GetChild (Index As Int) As XOMNode
IsInitialized As Boolean
ToString As String
ToXML As String
Value As String

XOMDocType


Events:

None

Members:


  IsInitialized As Boolean

  RootElementName As String

  ToString As String

  ToXML As String

Members description:

IsInitialized As Boolean
RootElementName As String
ToString As String
ToXML As String

XOMDocument


Events:

None

Members:


  BaseURI As String

  Copy As XOMNode

  DocType As XOMDocType

  Initialize (XOMElement1 As XOMElement)

  IsInitialized As Boolean

  RemoveChild (Position As Int) As XOMNode

  RemoveChild2 (XOMNode1 As XOMNode) As XOMNode

  ReplaceChild (OldChild As XOMNode, NewChild As XOMNode)

  RootElement As XOMElement

  ToString As String

  ToXML As String

  Value As String [read only]

Members description:

BaseURI As String
Copy As XOMNode
DocType As XOMDocType
Initialize (XOMElement1 As XOMElement)
IsInitialized As Boolean
RemoveChild (Position As Int) As XOMNode
RemoveChild2 (XOMNode1 As XOMNode) As XOMNode
ReplaceChild (OldChild As XOMNode, NewChild As XOMNode)
RootElement As XOMElement
ToString As String
ToXML As String
Value As String [read only]

XOMElement


Events:

None

Members:


  AddAttribute (XOMAttribute1 As XOMAttribute)

  AddNamespaceDeclaration (Prefix As String, Uri As String)

  AppendChild (Text As String)

  AttributeCount As Int [read only]

  BaseURI As String [read only]

  Copy As XOMNode

  GetAttributeByIndex (Index As Int) As XOMAttribute

  GetAttributeByName (Name As String) As XOMAttribute

  GetAttributeByNameAndNamespace (Name As String, Namespace As String) As XOMAttribute

  GetAttributeValueByName (Name As String) As String

  GetAttributeValueByNameAndNamespace (Name As String, Namespace As String) As String

  GetChildElements As XOMElements

  GetChildElementsByName (Name As String) As XOMElements

  GetChildElementsByNameAndNamespace (Name As String, Namespace As String) As XOMElements

  GetFirstChildElementByName (Name As String) As XOMElement

  GetFirstChildElementByNameAndNamespace (Name As String, Namespace As String) As XOMElement

  InsertChild (Text As String, Index As Int)

  IsInitialized As Boolean

  LocalName As String

  RemoveAttribute (XOMAttribute1 As XOMAttribute) As XOMAttribute

  RemoveChildren As XOMNodes

  ToString As String

  ToXML As String

  Value As String [read only]

Members description:

AddAttribute (XOMAttribute1 As XOMAttribute)
AddNamespaceDeclaration (Prefix As String, Uri As String)
AppendChild (Text As String)
AttributeCount As Int [read only]
BaseURI As String [read only]
Copy As XOMNode
GetAttributeByIndex (Index As Int) As XOMAttribute
GetAttributeByName (Name As String) As XOMAttribute
GetAttributeByNameAndNamespace (Name As String, Namespace As String) As XOMAttribute
GetAttributeValueByName (Name As String) As String
GetAttributeValueByNameAndNamespace (Name As String, Namespace As String) As String
GetChildElements As XOMElements
GetChildElementsByName (Name As String) As XOMElements
GetChildElementsByNameAndNamespace (Name As String, Namespace As String) As XOMElements
GetFirstChildElementByName (Name As String) As XOMElement
GetFirstChildElementByNameAndNamespace (Name As String, Namespace As String) As XOMElement
InsertChild (Text As String, Index As Int)
IsInitialized As Boolean
LocalName As String
RemoveAttribute (XOMAttribute1 As XOMAttribute) As XOMAttribute
RemoveChildren As XOMNodes
ToString As String
ToXML As String
Value As String [read only]

XOMElements


Events:

None

Members:


  GetElement (Index As Int) As XOMElement

  IsInitialized As Boolean

  Size As Int

Members description:

GetElement (Index As Int) As XOMElement
IsInitialized As Boolean
Size As Int

XOMNamespace


Events:

None

Members:


  ChildCount As Int [read only]

  Copy As XOMNode

  Detach

  GetChild (Index As Int) As XOMNode

  IsInitialized As Boolean

  Prefix As String [read only]

  ToString As String

  ToXML As String

  Value As String [read only]

Members description:

ChildCount As Int [read only]
Copy As XOMNode
Detach
GetChild (Index As Int) As XOMNode
IsInitialized As Boolean
Prefix As String [read only]
ToString As String
ToXML As String
Value As String [read only]

XOMNode


Events:

None

Members:


  BaseURI As String [read only]

  ChildCount As Int [read only]

  Copy As XOMNode

  Detach

  Document As XOMDocument [read only]

  GetChild (Index As Int) As XOMNode

  HashCode As Int

  IsInitialized As Boolean

  Parent As XOMParentNode [read only]

  ToString As String

  ToXML As String

  Value As String [read only]

Members description:

BaseURI As String [read only]
ChildCount As Int [read only]
Copy As XOMNode
Detach
Document As XOMDocument [read only]
GetChild (Index As Int) As XOMNode
HashCode As Int
IsInitialized As Boolean
Parent As XOMParentNode [read only]
ToString As String
ToXML As String
Value As String [read only]

XOMNodes


Events:

None

Members:


  AppendNode (XOMNode1 As XOMNode)

  ContainsNode (XOMNode1 As XOMNode) As Boolean

  GetNode (Index As Int) As XOMNode

  InsertNode (XOMNode1 As XOMNode, Index As Int)

  IsInitialized As Boolean

  RemoveNode (Index As Int) As XOMNode

  Size As Int

Members description:

AppendNode (XOMNode1 As XOMNode)
ContainsNode (XOMNode1 As XOMNode) As Boolean
GetNode (Index As Int) As XOMNode
InsertNode (XOMNode1 As XOMNode, Index As Int)
IsInitialized As Boolean
RemoveNode (Index As Int) As XOMNode
Size As Int

XOMParentNode


Events:

None

Members:


  AppendChild (XOMNode1 As XOMNode)

  GetChild (index As Int) As XOMNode

  IndexOf (XOMNode1 As XOMNode) As Int

  InsertChild (XOMNode1 As XOMNode, Index As Int)

  IsInitialized As Boolean

  RemoveChild (Index As Int) As XOMNode

  RemoveChild2 (XOMNode1 As XOMNode) As XOMNode

  ReplaceChild (OldChild As XOMNode, NewChild As XOMNode)

Members description:

AppendChild (XOMNode1 As XOMNode)
GetChild (index As Int) As XOMNode
IndexOf (XOMNode1 As XOMNode) As Int
InsertChild (XOMNode1 As XOMNode, Index As Int)
IsInitialized As Boolean
RemoveChild (Index As Int) As XOMNode
RemoveChild2 (XOMNode1 As XOMNode) As XOMNode
ReplaceChild (OldChild As XOMNode, NewChild As XOMNode)

XOMProcessingInstruction


Events:

None

Members:


  Copy As XOMNode

  IsInitialized As Boolean

  Target As String

  ToString As String

  ToXML As String

  Value As String

Members description:

Copy As XOMNode
IsInitialized As Boolean
Target As String
ToString As String
ToXML As String
Value As String

XOMText


Events:

None

Members:


  ChildCount As Int [read only]

  Copy As XOMNode

  GetChild (Index As Int) As XOMNode

  IsInitialized As Boolean

  ToString As String

  ToXML As String

  Value As String [read only]

Members description:

ChildCount As Int [read only]
Copy As XOMNode
GetChild (Index As Int) As XOMNode
IsInitialized As Boolean
ToString As String
ToXML As String
Value As String [read only]

Top