Node

struct defined in module Pollen


			Node(tag, children...; attributes...)

A non-leaf node in an XTree. It has a tag, can hold a number of children nodes and key-value attributes.

You can access and modify these using

Examples


			
			
			

			Node
			(
			
			:
			paragraph
			,
			
    
			
			"
			I am a sentence
			"
			,
			 
			
			"
			This one is short
			"
			
			;
			
    
			
			class
			 
			=
			 
			
			"
			tight
			"
			)
			

			

			# Equivalently
			

			

			Node
			(
			
			:
			paragraph
			,
			
    
			
			[
			
			"
			I am a sentence
			"
			,
			 
			
			"
			This one is short
			"
			]
			,
			
    
			
			Dict
			(
			
			
			:
			class
			 
			=>
			 
			
			"
			tight
			"
			)
			)