I think the best approach would be to create a function of your own,
which uses kamicane's mootools-XML, but returns you a usable Element.
I updated your shell with a quick test case:

http://mootools.net/shell/timwienk/Hq8xm/1/

As you can see there, I created a function taking a gallery-node as
argument, it loops through its children and returns an Element. I also
included two possible approaches you could use to using a function
like that.

On Fri, Jan 15, 2010 at 10:39, Sanford Whiteman
<[email protected]> wrote:
>>    The problem is that I can load the xml file, can convert the XML to
>> hashes, and then the hashes to HTML. But I cannot seem to select an
>> individual node, say the first <name> instance and convert just that
>> to html. So my main question is: how do I select a hash (if that makes
>> sense) / how do I select a specific node.
>
> I think it is better in these cases to use a lab I can actually edit.
>
> http://mootools.net/shell/UAkDk/4/
>
> Showing the use of nodeToHash, hashToHTML to work on deep children.
>
> If  you  put  something  more  specific in MooShell, we can work on it
> further.
>
> -- Sandy
>
>

Reply via email to