> For the complete documentation index, see [llms.txt](https://docs.urbit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.urbit.org/hoon/stdlib/5e.md).

# 5e: Molds and mold builders

## `$mane` <a href="#mane" id="mane"></a>

XML name+space.

XML tag name and optional namespace.

#### Source

```hoon
+$  mane  $@(@tas [@tas @tas])
```

#### Examples

```
> (en-xml:html ;foo;)
"<foo></foo>"
```

```
> (en-xml:html ;foo_bar;)
"<foo:bar></foo:bar>"
```

```
> `manx`;foo_bar;
[g=[n=[%foo %bar] a=~] c=~]
```

```
> `mane`n.g:`manx`;foo_bar;
[%foo %bar]
```

```
> `mane`n.g:`manx`;foo;
%foo
```

***

## `$manx` <a href="#manx" id="manx"></a>

Dynamic XML node.

An XML element which may contain text, attributes, and other elements.

`.g` is a [`$marx`](#marx) (a tag) and `.c` is a [`$marl`](#marl) (its contents).

#### Source

```hoon
+$  manx  $~([[%$ ~] ~] [g=marx c=marl])
```

#### Examples

```
> *manx
[g=[n=%$ a=~] c=~
```

```
> `manx`;foo;
[g=[n=%foo a=~] c=~]
```

```
> (en-xml:html `manx`;foo;)
"<foo></foo>"
```

```
> =a ^-  manx
     ;foo
       ;bar: abc
       ;baz
         ;xxx: hello
       ==
     ==

> a
[ g=[n=%foo a=~]
    c
  ~[
    [ g=[n=%bar a=~]
      c=~[[g=[n=%$ a=~[[n=%$ v="abc"]]] c=~]]
    ]
    [ g=[n=%baz a=~]
        c
      ~[
        [ g=[n=%xxx a=~]
          c=~[[g=[n=%$ a=~[[n=%$ v="hello"]]] c=~]]
        ]
      ]
    ]
  ]
]

> (en-xml:html a)
"<foo><bar>abc</bar><baz><xxx>hello</xxx></baz></foo>"
```

***

## `$marl` <a href="#marl" id="marl"></a>

XML node list.

A list of XML nodes ([`$marx`](#marx)).

#### Source

```hoon
+$  marl  (list manx)
```

#### Examples

```
> *marl
~
```

```
> ^-  marl
  ;=
    ;foo: abc
    ;bar: def
  ==
~[
  [g=[n=%foo a=~] c=~[[g=[n=%$ a=~[[n=%$ v=~['a' 'b' 'c']]]] c=~]]]
  [g=[n=%bar a=~] c=~[[g=[n=%$ a=~[[n=%$ v=~['d' 'e' 'f']]]] c=~]]]
]
```

```
> %-  en-xml:html
  ;baz
    ;=
      ;foo: abc
      ;bar: def
    ==
  ==
"<baz><foo>abc</foo><bar>def</bar></baz>"
```

***

## `$mars` <a href="#mars" id="mars"></a>

XML cdata.

#### Source

```hoon
+$  mars  [t=[n=%$ a=[i=[n=%$ v=tape] t=~]] c=~]
```

***

## `$mart` <a href="#mart" id="mart"></a>

XML attributes.

A list of atributes for an XML tag. For each list item, `.n` is a [`$mane`](#mane) (an attribute name with optional namespace) and `.v` is a `$tape` (the attribute itself).

#### Source

```hoon
+$  mart  (list [n=mane v=tape])
```

#### Examples

```
> *mart
~
```

```
> `manx`;foo.bar;
[g=[n=%foo a=~[[n=%class v="bar"]]] c=~]
```

```
> `mart`a.g:`manx`;foo.bar;
~[[n=%class v="bar"]]
```

```
> (en-xml:html ;foo.bar;)
"<foo class=\"bar\"></foo>"
```

***

## `$marx` <a href="#marx" id="marx"></a>

Dynamic XML tag.

An XML tag with optional attributes. `.n` is a [`$mane`](#mane) (the tag name with optional namespace) and `.a` is a [`$mart`](#mart) (any XML attributes).

#### Source

```hoon
+$  marx  $~([%$ ~] [n=mane a=mart])
```

#### Examples

```
> `manx`;foo.bar;
[g=[n=%foo a=~[[n=%class v="bar"]]] c=~]
```

```
> `marx`g:`manx`;foo.bar;
[n=%foo a=~[[n=%class v="bar"]]]
```

```
> (en-xml:html ;foo.bar;)
"<foo class=\"bar\"></foo>"
```

***

## `$mite` <a href="#mite" id="mite"></a>

MIME type.

This type represents a MIME type like `'text/plain'` as a `$path` like `/text/plain`.

#### Source

```hoon
+$  mite  (list @ta)
```

#### Examples

```
> `mite`/text/plain
/text/plain
```

***

## `$pass` <a href="#pass" id="pass"></a>

Public key.

This type is used for a ship's public key, as an `$atom`.

#### Source

```hoon
+$  pass  @
```

***

## `$ring` <a href="#ring" id="ring"></a>

Private key.

This type is used for a ship's private key, as an `$atom`.

#### Source

```hoon
+$  ring  @
```

***

## `$ship` <a href="#ship" id="ship"></a>

Network identity.

Just a `@p`.

#### Source

```hoon
+$  ship  @p
```

#### Examples

```
> *ship
~zod
```

```
> `ship`~sampel-palnet
~sampel-palnet
```

***

## `$shop` <a href="#shop" id="shop"></a>

Urbit/DNS identity.

Either a [`$ship`](#ship) or a domain name as a `$path`.

#### Source

```hoon
+$  shop  (each ship (list @ta))
```

***

## `$spur` <a href="#spur" id="spur"></a>

Ship, desk, case, spur.

The part of a Clay `$path` after the `%`.

#### Source

```hoon
+$  spur  path
```

***

## `$time` <a href="#time" id="time"></a>

Galactic time.

Just a `@da`

#### Source

```hoon
+$  time  @da
```

#### Examples

```
> *time
~2000.1.1
```

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.urbit.org/hoon/stdlib/5e.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
