From: Yang Shouxun <yang.shx@fltrp.com>
To: caml-list@inria.fr
Subject: Q: type conversion with Gdome
Date: Wed, 16 Jul 2008 17:13:23 +0800 [thread overview]
Message-ID: <416198561.21737@eyou.net> (raw)
Message-ID: <200807161713.23716.yang.shx@fltrp.com> (raw)
Hello everyone,
I've been using Gdome for some time now and I always find it difficult to deal
with the type system. Here is the issue:
The document class has a
method getElementsByTagName :
tagname:Gdome.domString -> Gdome.nodeList
and from a nodeList object I can only get Gdome.node objects, while we know
they should be Gdome.element objects.
My question is how to convert from Gdome.node to Gdome.element?
P.S. Gdome.element can be converted to Gdome.node, but not in the other
direction as far as I know.
TIA,
shouxun
next reply other threads:[~2008-07-16 9:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200807161713.23716.yang.shx@fltrp.com>
2008-07-16 9:13 ` Yang Shouxun [this message]
2008-07-16 9:44 ` [Caml-list] " Claudio Sacerdoti Coen
[not found] ` <200807170942.45470.yang.shx@fltrp.com>
2008-07-17 1:42 ` Yang Shouxun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416198561.21737@eyou.net \
--to=yang.shx@fltrp.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox