add tag
artaxerxe
Is there a clean smooth way (preferably one line of code) to get a Node as text?

If I have a node like this:

```text/html
<node a="v">text</node>
```

, then by "clean smooth way" I mean something like:

```
void nodeAsText(Node n) {

	System.out.println(n.toText());

}
```

and I expect to output:

```text/html
<node a="v">text</node>
```

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.