Hi Raymond, "Raymond.F" <[EMAIL PROTECTED]> writes:
> Hi, I need some help with creating the XML declaration. I'm using Xerces-c++ > 2.7.0 with MS VC++ 6. When creating an XML file through Xerces, by default > it creates the XML declaration like this: > > <?xml version="1.0" encoding="UTF-8" standalone="no" ?> > > I would like to exclude the encoding and standalone information, so the > output of the XML declaration would look like this: > > <?xml version="1.0" ?> > > I'm able to change the encoding and standalone attributes, but not suppress > them. Is there way to exclude them? Any help will be greatly appreciated. One way (which may also be the only way) would be to suppress XML declaration altogether and generate it manually. See the XMLUni::fgDOMXMLDeclaration feature in the docs. hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding
