Share

NewsML Toolkit

Tracker: Support Requests

5 providerid - ID: 613900
Last Update: Comment added ( simon_turner )

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


Simon Turner ( simon_turner ) - 2002-09-24 15:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2002-09-26 16:39
Sender: simon_turner

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)?


Date: 2002-09-24 16:15
Sender: simon_turner

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


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.