xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wai-Yip Tung" <wt...@cisco.com>
Subject Transforming XML document
Date Thu, 14 Nov 2002 05:36:15 GMT
I am trying to make simple transformation on a XML document. Let say just
changing one attribute value. I want to keep everything else the same,
including white spaces.

My first task is to parse and output a document identical to the input
document. It seems the sample code sax.Writer is a good example.
Unfortunately it altered the document in several ways

- white space in an element is changed, e.g.
  <x  y = "a"> becomes <x y="a">

- The empty element becomes two tags, e.g.
  <x/> becomes <x></x>

Anyone can give me some direction?

Wai yip

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

View raw message