Re: JAXP and serialization APIs

2001-08-30 Thread Bob Jamison
Swanson, Brion wrote: I know that JAXP is a common API for parsing XML (that is, you can plug any compliant XML parser in without changing any code), but is there anything like that for serializing a Document? I am probably wrong, but I believe that is an upcoming DOM level 3 feature. Is that rig

Re: JAXP and serialization APIs

2001-08-30 Thread jean-guillaume . battaglia
Hello people.   Yes, you can use an identity transform :   use the method newTransformer() (class TransformerFactory) with no parameter.   Another way is to use JDOM which is almost a JDK API (that is to say, not an implementation).

RE: JAXP and serialization APIs

2001-08-30 Thread Swanson, Brion
EMAIL PROTECTED] Cc: '[EMAIL PROTECTED]' Subject: Re: JAXP and serialization APIs If you look at javax.xml.transform, you can do what is termed an identity transformation, which is essentially serialization. This allows you to serialize SAX events, DOM trees, or re-serialize a stream. As a s

RE: JAXP and serialization APIs

2001-08-30 Thread Li Liang
- From: Swanson, Brion [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2001 11:02 AM To: '[EMAIL PROTECTED]' Subject: RE: JAXP and serialization APIs I'm sorry, I was unclear with my use of 'serialize'. I meant serializing the DOM into XML (as in the org.apache.xml.seri

Re: JAXP and serialization APIs

2001-08-30 Thread jean-guillaume . battaglia
Hello people. I'm not sure about what you want to do exactly but if you want to serialize an XML document, the best way to do it is to serialize it in a text file (i.e. an XML file). And for this, you can use JDOM which is almost a JDK API (that is to say, not an implementation).  Hope that helps. 

Re: JAXP and serialization APIs

2001-08-30 Thread Scott_Boag
If you look at javax.xml.transform, you can do what is termed an identity transformation, which is essentially serialization. This allows you to serialize SAX events, DOM trees, or re-serialize a stream. As a serializer it is a bit limited in it's ability to handle doc type stuff, but in other w

RE: JAXP and serialization APIs

2001-08-30 Thread Reynolds, Ron
sorry for the wasted bandwidth - please ignore my previous stupid answer (hey, it's early!). i often forget that "serialization" in an XML context is a bit different than "serialization" in a Java context. duh! :-/ - To unsubscr

RE: JAXP and serialization APIs

2001-08-30 Thread Swanson, Brion
- Brion Swanson - West Group / Rochester, NY mailto:[EMAIL PROTECTED] -Original Message- From: Reynolds, Ron [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2001 10:34 AM To: '[EMAIL PROTECTED]' Subject: RE: JAXP and serialization APIs do the serialization by hand? s

RE: JAXP and serialization APIs

2001-08-30 Thread Reynolds, Ron
do the serialization by hand? serialization requires binary compatibility between objects (with relatively simliar VMs). of course you could always convert the DOM to XML and serialize that, which is probably easier than doing it by hand and has roughly the same result. either way i don't think