deleting a line from an xml document...

asish

Member
Joined
Jan 17, 2008
Messages
20
Programming Experience
Beginner
hi, i hve an xml document which i have loaded & which looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml"

its a word 2003 xml file, i was wandering if deleting the second line could be possible? :confused:....i.e.

<?mso-application progid="Word.Document"?>

so that z xml stops calling word ... & i can insert my stylesheet link there....
hoping to hve a + response from u all.....thank u
 
CAN ANY1 HELP??!!! plz do reply it very important do delete that line so that my project can move forward...thnks!
 
can this work?

well if i can't delete the line, i can read the document line by line, copy the contents to a new xml file (and by thus omit the second line i.e. <?mso-application progid="Word.Document"?>) is this possible??

but the problem i'm new to all this so i need help here.... any kind of reference or help... thank you.
 
Back
Top