I noticed some strange behaviour, which I cannot explain.
I ask a question before in the same context, which Heath was so kind to
answer.
But further investigating I found out, the question was not answered,
but the question also was wrong.
So I try again
I have three ELEMENT(s) like this:
ELEMENT[at1.1.2.2] matches { -- A
value matches {
DV_TEXT matches {
value matches {"123"}
}
}
}
ELEMENT[at1.1.4.4] matches { -- B
value matches {
DV_TEXT matches {*}
}
}
ELEMENT[at1.1.4.3] matches { -- C
value matches {
DV_DATE matches {
value matches {yyyy-??-??}
}
}
}
The first (A) and the third (C) should give objects deeper then DV_DATE
or DV_TEXT, because there is an attribute below
The second (B) one should stop at DV_TEXT, because it does nothing with
attributes.
I was analyzing this, but I discovered the ELEMENT(s) do not behave like
I expect (which can be a problem of my expectations)
I am writing a recursive data/archetype analyzer, and I do some log-output:
ELEMENT A does:
RmTypeName: ELEMENT
NodeID: at1.1.2.2
Path:
/identities[at1]/details[at1.1]/items[at1.1.2]/items[at1.1.2.2]
Occurrences: null
-------Attributes------
CSingleAttribute-alternatives: DV_TEXT: null
Hi, message below, I posted exact a week ago. I got not reply at all. It
is an important question for me, that is why I post it again.
I will rewrite it in hope it does not scare people, or it is hard to
udnerstand.
It can be a bug in the ADL-parser for Java, but it alsso can be a
misunderstanding on my behalf.
Please, if your emailer does not display this in a non-proportional font
(like courier), please copy and paste it to notepad, else, the layout
will be (kind of) distorted and hard to understand
Sorry for the delay. I tried the (A) with the parser on the Trunk, the toString output seems to be OK (see below). Maybe the parser you are using is out-of-date?
Sorry for the delay. I tried the (A) with the parser on the Trunk, the
toString output seems to be OK (see below). Maybe the parser you are
using is out-of-date?
You are right, it must have been that I missed some lately
parser-improvement. your parsed object is different from mine, it has
the CString-item, which I was missing in my version.
It must have been because I cannot use your code directly, because my
code-tree is not the same as yours, but I always have manually to
consider if I can take over your improvements. That makes it a bit
difficult. So, sorry for bothering you with this problem