Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement