You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by vivek bodhraj <vi...@yahoo.com> on 2001/11/27 01:06:07 UTC

disaplying dtd using swing.

Hi,
Is there a way to display dtd on the scrollpane using
swing? I have to manipulate the nodes on the dtd.

Regards,
Vivek


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: disaplying dtd using swing.

Posted by vivek bodhraj <vi...@yahoo.com>.
Thank you Igor for yur reply,
let me eloborate what I intend to do:)

I HAVE TO READ THE DTD,
DISPLAY THE NODES OF DTD(JUST LIKE TREEWALKER DOES IN
THE SAMPLES) BUT THERE IS NO XML INSTANCE IT IS JUST
THE DTD.

 In other words, when I parse the dtd I get the
document, how do I access the elements in the DTD and
display them?
I tried the samples(IteratorView.java with the
personal.dtd, it just displays the root
element(document). 

Regards,
Vivek

--- Igor PARTL <xe...@schweers-net.de>
wrote:
> Hi!
> 
> 
> On Mon, Nov 26, 2001 at 04:06:07PM -0800, vivek
> bodhraj wrote:
> 
> > Is there a way to display dtd on the scrollpane
> using
> > swing? I have to manipulate the nodes on the dtd.
> 
> Thinking about your problem I suggest:
> - For each element of your dtd a jtree with thew
> possible elements.
>   The several cardinalities (+, *, ?...) you can
> represent through
>   different icons.
> - All element-trees are child of one root-jtree,
> which stands for the
>   complete dtd.
> 
> So you can display all element in one jtree.
> 
> I hope, I have understood you question in the right
> way.
> 
> 
> Igor PARTL
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: disaplying dtd using swing.

Posted by Igor PARTL <xe...@schweers-net.de>.
Hi!


On Mon, Nov 26, 2001 at 04:06:07PM -0800, vivek bodhraj wrote:

> Is there a way to display dtd on the scrollpane using
> swing? I have to manipulate the nodes on the dtd.

Thinking about your problem I suggest:
- For each element of your dtd a jtree with thew possible elements.
  The several cardinalities (+, *, ?...) you can represent through
  different icons.
- All element-trees are child of one root-jtree, which stands for the
  complete dtd.

So you can display all element in one jtree.

I hope, I have understood you question in the right way.


Igor PARTL


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org