This is so silly I must be doing something wrong! I need to insert (using
VB.NET) a new node in a DOM; node has a namespace. I first create, under
programme, basic structure, starting thus:
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:prism="http://prismstandard.org/namespaces/1.2/basic/"
xmlns:pcv="http://prismstandard.org/namespaces/1.2/pcv/">
Then I attempt to add a node with rdf namespace prefix. My call in
skeleton is:
CreateElement("rdf", "subject", nothing)
etc
I add text ("abc") to this element, then add the node as child to root
etc, then later output to file with StreamWriter. The new node ends up as
follows; i.e. without the prefix! I have tried several variations of
above. Any ideas please?
....
<subject>abc</subject>
....
Best Regards, John Walton