Platforms to show: All Mac Windows Linux Cross-Platform

Back to TidyNodeMBS class.

TidyNodeMBS.Child as TidyNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The child node of this node.
Example
Var t as TidyDocumentMBS // the tidy document
Var n as TidyNodeMBS
Var c as TidyNodeMBS

// iterating over root and its children (for more children you need recursion)
n=t.Root
while n<>nil
MessageBox n.Text

c=n.Child
while c<>nil
MessageBox c.Text
c=c.NextNode
wend

n=n.NextNode
wend

(Read only property)

TidyNodeMBS.Column as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The position of this node.

(Read only property)

TidyNodeMBS.Document as TidyDocumentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The document of this node.

(Read only property)

TidyNodeMBS.FirstAttribute as TidyAttributeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The first attribute for this node.

(Read only property)

TidyNodeMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal reference to the tidy node object.

(Read only property)

TidyNodeMBS.HasText as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether there is text attached to this node.

Returns true if yes.
(Read only property)

TidyNodeMBS.ID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The node ID.

(Read only property)

TidyNodeMBS.IsProperty as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the node is a property.

(Read only property)

TidyNodeMBS.Line as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The position of this node.

(Read only property)

TidyNodeMBS.Name as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of this node.

(Read only property)

TidyNodeMBS.NextNode as TidyNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The next node in the node list of the parent node.

(Read only property)

TidyNodeMBS.NodeIsHeader as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this is a Header node.

(Read only property)

TidyNodeMBS.NodeIsText as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this is a Text node.

(Read only property)

TidyNodeMBS.Parent as TidyNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The parent node of this node.

(Read only property)

TidyNodeMBS.PrevNode as TidyNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The previous node in the node list of the parent node.

(Read only property)

TidyNodeMBS.Text as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The text of this node.
Example
Var t as new TidyDocumentMBS

call t.ParseString("<p>Hello World</p>") // pass here bad html
call t.CleanAndRepair

Var s As TidyNodeMBS=t.Root

MessageBox s.Text

This text has no encoding defined.
(Read only property)

TidyNodeMBS.Type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The type of this node.

(Read only property)

TidyNodeMBS.Value as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Tidy MBS Tools Plugin 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The decoded value of the node as UTF-8 String.
Example
Var t as new TidyDocumentMBS

call t.ParseString("<p>Hello World</p>") // pass here bad html
call t.CleanAndRepair

Var nodes(-1) as TidyNodeMBS
Var root as TidyNodeMBS = t.Root

// we iterate over all child nodes

nodes.Add root.Child
nodes.Add root.NextNode

while nodes.LastIndex>=0
Var n as TidyNodeMBS = nodes.Pop

if n<>Nil then

nodes.Add n.Child // maybe a child?
nodes.Add n.NextNode // maybe a sibling?

if n.HasText then
MessageBox n.Value // Shows "Hello World"
end if
end if
wend

(Read only property)

The items on this page are in the following plugins: MBS Tools Plugin.


The biggest plugin in space...