I don't know what you mean by "wrong." It works. I have done it that
way for years. In fact, namespaces can bea real pain and sometimes it
is easier to just add them as attributes and make the tag names as you
did ns:tag than it is to try and figure out the "right way." Part of
the reason is some people (like Fedex for example) in their SOAP calls
require the "ns:" before every element even if it is the default
namespace ... and libxml2 outputs it correctly as far as I read the
specs and works perfectly for most people (UPS, USPS for example).
Rather than fight it ... if it ain't broke, don't fix it. And if it
works, it ain't broke. Eric
On 2/5/2013 4:36 AM, Bjoern Hoehrmann wrote:
* Venkataragavan Vijayakumar wrote:
I want to generate a XML like the following , In this example root element
Envelope having namespace prefix as "S11" . How to add the namespace prefix
to the Root Element. In my code below I have simply given Root element name
as "S11:Envelope", I know it is wrong, Please let me know the correct way
to do it.
https://mail.gnome.org/archives/xml/2008-September/msg00032.html
--
Eric S. Eberhard
VICS
PO Box 3661
Camp Verde, AZ 86322
928-567-3727 work 928-301-7537 cell
http://www.vicsmba.com/index.html (our work)
http://www.vicsmba.com/ourpics/index.html (fun pictures)
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml