General information
Category:
Coding, syntax & commands
Title:
Xml - methods and commands
Hi,
I have very little experience with XML. Please help me with the following. Thank you.
The following is the layout of my XML document. I have used line numbers for reference, please note that they are not part of my XML document.
1) ?xml version="1.0"?
2) Created by: XYZ,
3) !DOCTYPE batch SYSTEM "Document.dtd"
4) Root
5) Details> "abcde" 6) Root
I know that using "createProcessingInstruction" (line 1) & "createComment" (line 2) methods I can create the objects.
My Questions are -
(A) How do I create the object in line 3. CreateNode method does not let me do it. Here's what I know -
NODE_DOCUMENT_TYPE The name of the document type; for example, the xxx in .
(B) But how do I add the objects - comment, Processing Instruction, & Document type to the XML object, so that when I use ("C:\Temp\PubInfo.XML") the first 3 lines appear as shown above.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only