providerid
Brought to you by:
dcompton,
dmegginson
Hi,
If I create a ProviderId with
NewsMLFactory.createProviderId(), I can't set the
text content of it, because
ProviderId doesn't implement the Text interface.
However, the DTD shows that
ProviderId should allow text content:
<!ELEMENT ProviderId (#PCDATA )>
<!ATTLIST ProviderId Vocabulary CDATA #IMPLIED
>
Is this a bug? Is there a workaround? I have looked
at trying to make NewsMLFactory create a raw text
node and adding it to the ProviderId using
BaseNode.insertFirst(BaseNode), but no joy there..
Cheers,
Simon
Logged In: YES
user_id=589897
..the same comments apply to NewsItemId (ie: DTD says
you can have text content, but toolkit class doesn't
implement Text)
Simon
Logged In: YES
user_id=589897
I have ammended my own copy of the toolkit to make
NewsItemId and ProviderId extend the Text interface. I have
then changed DOMNewsIdentifierFormalName to implement that
interface. This fixes my problem. Is such a change likely in
the next version (you can have my classes if you want)?