Does anybody know how to add the Processing Instruction to a DOMDocument using
the createProcessingInstruction that is a part of the DOMDocument?
Re: Processing Instruction
I don't know what technology you're using, but here's a VB example. You need
msxml2 or higher installed for this to work. Create a new project, add a
reference to the Microsoft XML, version x.x library, and paste this code in
as the form_load event in the default form.
Private Sub Form_Load()
Dim xml As New DOMDocument
Dim pi As IXMLDOMProcessingInstruction
Dim N As IXMLDOMNode
Set pi = xml.createProcessingInstruction("xml", "version=""1.0""")
Set pi = xml.createProcessingInstruction("xml-stylesheet",
Set N = xml.createElement("root")
Set xml.documentElement = N
Sr. Web Development Editor,
"Bryan" <email@example.com> wrote in message
> Does anybody know how to add the Processing Instruction to a DOMDocument
> the createProcessingInstruction that is a part of the DOMDocument?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL