Hey Fermin,
I haven't seen a previous post on the list about this topic. That may
be why you didn't get an answer :)
What problems are you seeing when you try the code you list below?
If I understand your problem correctly, you have something like:
<el>1</el1> and you want to determine what type that is so you can use
somenamespace.ElDocument as your type. Is this correct?
Have you tried something like:
XmlObject xo = XmlObject.Factory.parse("<el>1</el1>");
and
xo.type
xo.type.getName
the scan the classes you expect to find a matching type
if(ElDocument.type.getName == xo.type.getName){
// do something
}
-Jacobd
On 3/12/07, Fermin Da Costa Gomez <[EMAIL PROTECTED]> wrote:
Hi,
Just started on Xmlbeans and going through the list has not yielden an
answer to my question.
Is there a way to get a hold of a SomeDocument object by using
Class.forName("namespace.SomeDocument").newInstance() .. ?
Or any other way by means of just using a string that refers/ points to the
element one is looking for?
So i have got the name of a document/ node/ tag in the form of a string and
i'm looking for an object based on that string.
Tia,
Fermin DCG
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]