1

Im trying to filter an XML File based on the value of the node

    <MIME_INFO>
                <MIME>
                    <MIME_TYPE>image/jpeg</MIME_TYPE>
                    <MIME_SOURCE>image1.jpg</MIME_SOURCE>
                    </MIME>
                <MIME>
                    <MIME_TYPE>image/jpeg</MIME_TYPE>
                    <MIME_SOURCE>image2.jpg</MIME_SOURCE>

                </MIME>
                <MIME>
                    <MIME_TYPE>application/pdf</MIME_TYPE>
                    <MIME_SOURCE>document.pdf</MIME_SOURCE>
                </MIME>
    </MIME_INFO>

im using the following XPATH Function

{MIME_INFO/MIME/MIME_SOURCE[./MIME_TYPE='image/jpeg']}

i want to get the value of MIME_SOURCE based on the value of the MIME_TYPE node.

I don´t get any output from this query.

Thanks in advance

1 Answer 1

1

You want this:

/MIME_INFO/MIME[MIME_TYPE='image/jpeg']/MIME_SOURCE
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.