Menu

#2 providerid

open
nobody
None
5
2002-09-24
2002-09-24
No

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

Discussion

  • Simon Turner

    Simon Turner - 2002-09-24

    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

     
  • Simon Turner

    Simon Turner - 2002-09-26

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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.