Re: about DOM

Per Nyfelt <[email protected]> Sat, 2 Jul 2005 11:14:38 +0200
Newsgroups gmane.comp.java.ozone.user
Organization Resourcing Networks
Message-ID <[email protected]>
Hi Adi,

There is no toXML() in the DOM sample. Do not confuse the (highly experimental 
and unfinished) DOM4j implementation with DOM. DOM4J is not working yet.

I do not undestand what you are trying to do. Is itemA and itemB regular java 
objects that you want to serialize into XML form and display on a web page??? 
(what on earth for?...). 

If, on the other hand, you are trying to have XML documents stored in Ozone 
and use that as the back end for dynamic content then it makes more sence to 
me. It is "easy" to create a simple content management system with Ozone as 
the back-end serving XHTML pages. I just created a (very) simple one in less 
than an hour.

It makes sence to pretty it up a bit and use it as an example i think. Adding 
some error checks, swing based admin interface, custom tags for easy access 
from JSP's etc for a CMS system slightly more similar to a real one.
I'll create a new area in CVS called ozoneApps where I'll check in what I just 
did if you want to take a look at the basic idea. 

Later when I've started to work on the Ozone petstore for real I'll put that 
there as well.

Best regards,
Per

Friday 01 July 2005 03.00 skrev Adi:
> hello, i ask some question again
> 1. i need to implement the webpage that must be have a
> service to get xml database
> in your DOM sample, i think this might can be implemented
> i have object item with child class like itemA, itemB,
> itemC
> itemA have A,B
> but i just want to create an XML object from class item.
> i mean itemA as item (with casting or polymorp in java)
> can i do this?
> can i use toXML() method to generate the xml?
> can i use toXML() method tho generate from collection? or
> treeMap?
> would you like to explain to me?
> if it can't use that method, what method that can i used
> for?
>
> thanks a lot
> ===========================================================================
>============= Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus
> untuk wilayah Jawa Timur. Informasi selengkapnya di www.telkomnetinstan.com
> atau hub 0800-1-INSTAN (467826)
> ===========================================================================
>=============
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Ozone-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ozone-users


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click