• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

equivalent to org.apache. xmlSerializer in jaxp

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am porting some code written to the xerces/xalan packages from apache to use only the interfaces provided in the JAXP 1.0 docuementation ( i.e javax, and org.w3c and org.xml packages only). However I am not sure what to map the org.apache.xml.Serializer class to . Can some one help me out or point me to an article? Thanks in advance.
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeff,
To serialize with JAXP, you just have to use a transformation without specifying any xslt stylesheet. So, by example, to serialize a DOM fragment to the standard output, you may use the following code:

In line 2, we create an empty transformer, without any XSLT stylesheet.
Hope this helps,
Cyril.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic