Information générale
Catégorie:
Codage, syntaxe et commandes
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)
2)
3)
4)
5) "abcde"
6)
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