How can i inject the namespace into an xml file which doesn't have one? I scane the file from a 2d barcode, and, the creator decided to not write the namespace info into the xml. So i have to add it after scanning. How can i do that?

You should be able to add an xmlns attribute to the root element of the XML document. What does the scanner return to you (e.g., text, an XML DOM object)?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.