Re: about DOM
"adi" <[email protected]> Mon, 18 Jul 2005 09:31:08 +0700
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <000801c58b40$c197b540$d40a0a0a@NoteBook> |
i have store collection of object in ozone and i have to convert this collection to be an xml and store it to ozone. and the i have to load the xml to the browser. just like that, do you understand what i mean? please it's very urgent. how use object2xml method if i get the object with ozoneProxy??? i confused whit this. and i can't implement what i want to do. please help ----- Original Message ----- From: "Per Nyfelt" <[email protected]> To: <[email protected]> Cc: "adi" <[email protected]> Sent: Tuesday, July 05, 2005 1:34 AM Subject: Re: [Ozone-users] about DOM >I do not know about ObjectToXML() or toXML(). I do not recognize them as >being > part of the OzoneXML DOM api. > > However there is a toXML() in the Object2XML class which is used by the > backup > (e.g. see the BackupRestore class). > > You can transform an object to XML using Object2XML, the serialization > mechanism in JDK 1.5, Castor etc... > > The sample i talked about (ozoneApps/SimpleCMS) shows how to save an XML > file > to Ozone and also how to display the content on the web. I do not see any > relationship with your requirement and a SOA type webservice and your > requirement is still unclear to me but hopefully this gives you enough > information to be able to proceed. > > Regards, > Per > > > Sunday 03 July 2005 17.27 skrev adi: >> i'm sure you have missunderstood with i mean. >> i want to implement all Ozone fiture that i can do >> it's not for the real bussiness program >> it's just implement fiture of ozone >> about DOM, i have see about method of ObjectToXML and toXML(). and i >> don't >> know how to use it. >> the idea in my mind is i have object collection of item >> the class item have some property like a, b, and c >> from object items, i want to generate XML. how can i do it? the generated >> XML have to save to the OZONE database and can load to web. it's like web >> service i think. so people who need information about my object items can >> download it from my site. it don't have relation with CMS. >> would you like to help me ones again??? >> >> ----- Original Message ----- >> From: "Per Nyfelt" <[email protected]> >> To: <[email protected]> >> Cc: "Adi" <[email protected]> >> Sent: Saturday, July 02, 2005 4:14 PM >> Subject: Re: [Ozone-users] about DOM >> >> > 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 >> _______________________________________________ >> 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 > _______________________________________________ > 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