How do i remove the attribute "noNamespaceSchemaLocation" from xml file in oracle xml database?

I have stored on oracle in a specific resource folder some xml files. For example:

    <root xmlns:xsi=""
        <Element Reference="1" Name="A">
             <SubElement Name="A1" Reference="11"/>
        </Element > 

Now i want to copy them to another resource folder:

    SELECT '/public/DestFolder/' || path(1), RES, LINK, NULL FROM PATH_VIEW
    WHERE under_path(RES, '/public/SourceFolder', 1) = 1
    ORDER BY depth(1);

No problem.
But how do i remove (or change) the root-attribute  xsi:noNamespaceSchemaLocation="schema.xsd"? Is there any possibility to use XSLT inside PL/SQL stored procedure?
OK, i can download the files, change them and upload them again. But this is not my intention.

Thank you in advance!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you generating these XML Files from PL/SQL?
If so, and if you are using CLOB datatype, use Replace command.

Else another option may be to use a small UNIX shell script to do this cleanup.  You may schedule it in chrontab.
clevertrevor74Author Commented:
Thank you for your answer.
I´m using XMLType. Should be no problem to handle Replace command with this type (convert to varchar2).

Is there any function to detect positions of substrings in a string (varchar2)? Because the position of the substring to remove is not known and must be searched for.
With replace command, you do not need.
E.g. Select replace(l_char, xsi:noNamespaceSchemaLocation="schema.xsd")  from dual;

To find position of a string in another, use INSTR function.  E.g.

Select  substr(l_char, 1, instr(l_char, 'xsi:noNamespaceSchemaLocation="schema.xsd"') - 1)
         ||  substr(l_char, instr(l_char, 'xsi:noNamespaceSchemaLocation="schema.xsd"') + 1)
from dual

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.