J
Jonathan Wolfson
Given an xml string s that looks like:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE foo PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN
http://www.goo.com/xml_dtds/zoo.dtd">
<xxx version="1.01">
<zzz>ggg</zzz>
</xxx>
How do you remove the stuff within a <!DOCTYPE ... > tag such that the
result
is:
<?xml version="1.0" encoding="iso-8859-1"?>
<xxx version="1.01">
<zzz>ggg</zzz>
</xxx>
s = System.Text.RegularExpressionsSystemRegex.Replace(s, PATTERN, "")?
In other words, what should I put in for PATTERN?
I tried "<!DOCTYPE*>" but that did not work.
Thanks,
Jon
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE foo PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN
http://www.goo.com/xml_dtds/zoo.dtd">
<xxx version="1.01">
<zzz>ggg</zzz>
</xxx>
How do you remove the stuff within a <!DOCTYPE ... > tag such that the
result
is:
<?xml version="1.0" encoding="iso-8859-1"?>
<xxx version="1.01">
<zzz>ggg</zzz>
</xxx>
s = System.Text.RegularExpressionsSystemRegex.Replace(s, PATTERN, "")?
In other words, what should I put in for PATTERN?
I tried "<!DOCTYPE*>" but that did not work.
Thanks,
Jon