US and Worldwide: +1 (866) 660-7555
Results 1 to 4 of 4

Thread: Extract XML blob

  1. #1
    Join Date
    Mar 2010
    Posts
    25

    Default Extract XML blob

    Would it be possible to extract just containers from xml and save it into XML ?

    input XML :
    <root>
    <start1></start1>
    <start2>get this</start2>
    <start2>get this2</start2>
    </root>


    output xml :

    <root2>
    <start2>get this</start2>
    <start2>get this2</start2>
    </root2>

  2. #2
    Join Date
    Jun 2012
    Posts
    1,475

    Default

    Your chosen title and the problem statement seem to be unrelated to the sample data given.

    You can achieve the sample output with an XSL Transformation step.
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

  3. #3
    Join Date
    Mar 2010
    Posts
    25

    Default

    Idea was find out how to extract the whole blob

    "<start2>get this</start2>
    <start2>get this2</start2>"

    With xpath

  4. #4
    Join Date
    Jun 2012
    Posts
    1,475

    Default

    The attached example shows you two things:

    • a document transformation as you asked for in post #1
    • a node selection as you asked for in post #3

    I wouldn't be surprised if I got you all wrong, but with the example at hand we should be able to find out your requirements.
    Attached Files Attached Files
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •