I need to do resource filtering that simply needs to replace an existing
string with another.
There are no variable to substitute. Can someone kindly share an example
of how to do this.

Here is an example:

Original File:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>
....

Filtered output file:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
....

In this example I am simply looking to substitute:

"-//Hibernate/Hibernate Mapping DTD 2.0//EN"

with:

"-//Hibernate/Hibernate Mapping DTD 3.0//EN"

and substitute:

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";

with:

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";

Thanks for your help.

-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to