473,493 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to delete <!DOCTYPE

I have XML file which has <!DOCTYPE element at the top. Following is the code
I am using to transform XML.

I just wanted to delete <!DOCTYPE element programatically from (memory) XML
loaded in xPathDoc before transformation.

Sub Main(byval args() as string)
Dim xmlInputFile As String = args(0)
Dim xslInputFile As String = args(1)
Const xmlOutputFile As String = "output.xml"

Dim xPathDoc As New XPathDocument(xmlInputFile)
Dim transform As New XslCompiledTransform()
Dim results As New StreamWriter(xmlOutputFile)

transform.Load(xslInputFile)
transform.Transform(xPathDoc, Nothing, results)
End Sub
Mar 23 '07 #1
0 887

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6725
by: john smith | last post by:
Hi, when there is a vector<> of pointers to some objects, does calling resize cause vector to call delete on each object, or is there a memory leak problem? for example: struct base {//some...
8
1770
by: Neil | last post by:
Hello, Is there a standard or recommended way of handling deletion and removal of objects in STL. I have loads of list of classes by pointer. e.g. If I have a list<int*>, how should I delete...
2
1150
by: Jacare | last post by:
Very simply, I need to delete any row who's column "Name" had under 24 characters in it (including a space). Any hints?
0
1048
by: Jon Pope | last post by:
I've got a menu button which gets fired everytime the user clicks the <Delete> key. Depending on what is currently selected on the screen, the delete action performs different types of deletions. ...
10
2878
by: Piotr | last post by:
I have a class 'Statistics' which has a private attribute ' vector<int>* _x;' And in the destructor of the Statistics, I have this code to free the memory: Statistics::~Statistics() { if...
11
24393
by: Steve Edwards | last post by:
Hi, After making an iterator to a map and stepping through a loop, I want to delete any entries that satisfy a test from an external function. MyMapType::const_iterator iter; for(iter =...
4
4837
by: Alex Vinokur | last post by:
Should 'delete below (after casting to void*)' work fine? ------------------------------------------ char* p1 = new (nothrow) char; if (p1 == 0) return; void* p2 = reinterpret_cast<void*> (p1);...
5
8061
by: mkaushik | last post by:
Hi everyone, Im just starting out with C++, and am curious to know how "delete <pointer>", knows about the number of memory locations to free. I read somewhere that delete frees up space...
4
25167
by: Sailor1877 via AccessMonster.com | last post by:
I've been reading all the threads about problems with LDB files but my specific problem doesn't seem to be addressed. I have a back end database on a server that I'm unable to run Compact and...
1
3295
by: cc | last post by:
Currently running Sql Server 2005 Is it possible to issue the delete command and capture the affected rows as xml types that will be stored in an audit table with an xml column? Something...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.