Transforming xml using xslt into a string variable?

Discussion in 'Java' started by Ken Adams, Mar 10, 2005.

  1. Ken Adams

    Ken Adams Guest

    So basically I run the Transformer using my xslt file on an xml file and I
    want to get the data that was returned to be put directly into a String
    variable. How would I do this?

    Thanks
     
    Ken Adams, Mar 10, 2005
    #1
    1. Advertising

  2. Hi,

    if you are using javax.xml.transform.Transformer, you just have to specify
    your
    Result object as a new StreamResult(new StringWriter())

    Regards,

    Arnaud

    "Ken Adams" <> a écrit dans le message news:
    WURXd.11707$ZO2.2753@edtnps84...
    > So basically I run the Transformer using my xslt file on an xml file and I
    > want to get the data that was returned to be put directly into a String
    > variable. How would I do this?
    >
    > Thanks
    >
    >
     
    Arnaud Berger, Mar 10, 2005
    #2
    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. Bernd Fuhrmann
    Replies:
    0
    Views:
    451
    Bernd Fuhrmann
    Feb 12, 2004
  2. Harry George

    Codesample for xml/xslt transforming

    Harry George, Sep 9, 2003, in forum: Python
    Replies:
    8
    Views:
    433
    Axel Straschil
    Sep 10, 2003
  3. jblazi
    Replies:
    34
    Views:
    825
    Alex Martelli
    Aug 5, 2004
  4. samppi
    Replies:
    1
    Views:
    428
    Martin Honnen
    Jan 6, 2008
  5. ssylee
    Replies:
    4
    Views:
    521
    CBFalconer
    Aug 12, 2008
Loading...

Share This Page