Tranform XML with XSL

Discussion in 'XML' started by Cengiz, Oct 17, 2003.

  1. Cengiz

    Cengiz Guest

    Hi,

    why using explicitly a XMLReader-instance for transforming a xml with
    a xsl does not have the same result like using the default reader.

    e.g:

    1. with a explicit reader:
    xslt.transform(new SAXSource(xmlReader,new InputSource(new
    FileInputStream (responseFileName))), output);

    2. with default reader:
    xslt.transform(responseData, output);

    the first output is an "xml"-File without tags, only values:
    e.g: 12343 4324 etc
    the second (with default) is a valid "xml"-File:
    e.g: <NUMBER>12342</NUMBER> ...

    How can i bring a reader to transform in a valid xml-File
    Cengiz, Oct 17, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Sneddon
    Replies:
    0
    Views:
    1,272
    Bill Sneddon
    Jun 24, 2003
  2. Abhinav
    Replies:
    2
    Views:
    411
    Abhinav
    Jun 25, 2004
  3. Luke Dalessandro
    Replies:
    4
    Views:
    899
    Luke Dalessandro
    Sep 24, 2004
  4. Replies:
    1
    Views:
    3,571
    A. Bolmarcich
    May 27, 2005
  5. su
    Replies:
    2
    Views:
    1,768
Loading...

Share This Page