Hi,
I'm trying to build an xml document using the Xerces api, I have managed to insert a processing instruction, elements, nodes etc... but I'm having trouble adding a namespace.
Here is some of my code so far,
pDocument.appendChild(pDocument.createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"../xsl/searchperson.xsl\"");
Element root = (Element) pDocument.createElement("details"
pDocument.appendChild(root);
Element title = pDocument.createElement("title"
root.appendChild( title );
Element firstName = pDocument.createElement("firstname"
root.appendChild( firstName );
Anybody got any ideas,
Chris
I'm trying to build an xml document using the Xerces api, I have managed to insert a processing instruction, elements, nodes etc... but I'm having trouble adding a namespace.
Here is some of my code so far,
pDocument.appendChild(pDocument.createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"../xsl/searchperson.xsl\"");
Element root = (Element) pDocument.createElement("details"
pDocument.appendChild(root);
Element title = pDocument.createElement("title"
root.appendChild( title );
Element firstName = pDocument.createElement("firstname"
root.appendChild( firstName );
Anybody got any ideas,
Chris