RE: DOMDocument w/o XML Declaration

2005-02-17 Thread Jesse Pelton
10:12 PMTo: [email protected]: DOMDocument w/o XML Declaration Hi,   I’m looking to create a DOMDocument object w/o an XMLDeclaration node? It seems to place one there by default. Any help would be appreciated.   Thanks.

DOMDocument w/o XML Declaration

2005-02-16 Thread Shawn Delaney
Hi,   I’m looking to create a DOMDocument object w/o an XMLDeclaration node? It seems to place one there by default. Any help would be appreciated.   Thanks.

RE: xml declaration

2004-07-16 Thread Jesse Pelton
t: xml declaration Hi,       I'm trying to disable the xml declaration in my document from appearing. Is that doable?     small snippet of what I'm doing       XMLCh tempStr[100];    XMLString::transcode("LS", tempStr, 99);    DOMWriter * theSerialize

xml declaration

2004-07-15 Thread Mark Van Orman
Hi,       I'm trying to disable the xml declaration in my document from appearing. Is that doable?     small snippet of what I'm doing       XMLCh tempStr[100];    XMLString::transcode("LS", tempStr, 99);    DOMWriter * theSerializer = ((DOMImpl

omit xml declaration

2004-05-26 Thread Cristina Cioroboiu
Hello,   I want to omit xml declaration from my xml documents, and i didn't succed. I have an xml file without this declartion. I parse them with a XercesDOMParser and after that i serialize. The result is with the xml declaration. Can i drop it without making substr or something ?   T

Re: XML DECLARATION

2003-11-24 Thread Gareth Reakes
Hi, I have added this feature in now. Gareth On Mon, 10 Nov 2003, Mark Van Orman wrote: > MessageHi, > > I am trying to create a document without the xml declaration. I.e version="1.0" encoding="ISO-8859-1"?> > Is that doable? > >

Re: XML DECLARATION

2003-11-12 Thread Mark Van Orman
> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 10:01 AM Subject: Re: XML DECLARATION > > > Ooops, looking at the spec there appears to be a feature we do not support > called xml-declaration. We are quite behind the specs in the DOM 3 stuff &

Re: XML DECLARATION

2003-11-12 Thread Gareth Reakes
Ooops, looking at the spec there appears to be a feature we do not support called xml-declaration. We are quite behind the specs in the DOM 3 stuff at the moment. I have no problem adding the feature in to our current features if it is a requirement for you. Gareth On Wed, 12 Nov 2003

Re: XML DECLARATION

2003-11-12 Thread Gareth Reakes
Hi, sorry about the length of time to reply. It is an absolute mad house here. DOMWriter always adds the xml decl and there is not a feature "fgXMLDeclString". Why is it you do not want the decl? Gareth -- Gareth Reakes, Head of Product Development +44-1865-203192 DecisionSoft Lim

Re: XML DECLARATION

2003-11-11 Thread Mark Van Orman
rds and thanks, Mark - Original Message - From: "Gareth Reakes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003 3:54 AM Subject: Re: XML DECLARATION > Hi, > when you say it keeps adding it, how do you know? How are you > serializing th

Re: XML DECLARATION

2003-11-11 Thread CKing
I've seen the same. Try it with a simple test.xml file: the xml file only contains "". When you pass the file to the DOMPrint sample, there's always the XML Declaration added: Me too, I have wondered if there is a way to avoid this, and/or to write an XML Declaration wit

Re: XML DECLARATION

2003-11-11 Thread Gareth Reakes
Hi, when you say it keeps adding it, how do you know? How are you serializing the document? Gareth On Mon, 10 Nov 2003, Mark Van Orman wrote: > MessageHi, > > I am trying to create a document without the xml declaration. I.e version="1.0" encoding="ISO

XML DECLARATION

2003-11-10 Thread Mark Van Orman
Title: Message Hi,       I am trying to create a document without the xml declaration. I.e     Is that doable?       createDocument(NULL, X("bla"), NULL);  keeps adding it in there.     Regards and thanks,   Mark

RE: DOMwriter and xml declaration

2003-10-21 Thread Gareth Reakes
re documented at http://xml.apache.org/xerces-c/apiDocs/classDOMWriter.html#_details > Eureka! That was it! Good :) > > The file is now written in UTF-16 with a XML declaration. However, now > *all* calls to canSetFeature return false. Coud it be something in the > DOMImplemen

RE: DOMwriter and xml declaration

2003-10-21 Thread Bren Lynne
t; > LocalFileFormatTarget(X(pszFilePath)); > > > > > > theSerializer->writeNode(myFormTarget, *pRootElement); > > Here lies the problem. You are printing out the root element as > opposed to > the document. The root element does not have an XML Decl. Eureka! T

RE: DOMwriter and xml declaration

2003-10-21 Thread Gareth Reakes
Hi, > theSerializer->canSetFeature(XMLUni::fgUTF8EncodingString, true) will still There is no such feature. > > (theSerializer->canSetFeature(XMLUni::fgUTF16EncodingString, true)) > > > > theSerializer->setFeature(XMLUni::fgUTF16EncodingString, true); No such feature. > > > > XMLFo

RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
BTW I am using 2.3.0. Apologies for all the posts. > -Original Message- > From: Bren Lynne [mailto:[EMAIL PROTECTED] > Sent: Monday, October 20, 2003 1:49 PM > To: [EMAIL PROTECTED] > Subject: RE: DOMwriter and xml declaration > > > > Little more info. > &

RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
Little more info. Even if I setEncoding(X(UTF-8")), theSerializer->canSetFeature(XMLUni::fgUTF8EncodingString, true) will still return false, and the xml declaration is not written to the file (and not in pretty print), though the file is written in UTF-8. So I must be doing s

RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
is valid -- just experimenting. Any suggestions? > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Monday, October 20, 2003 12:08 PM > To: [EMAIL PROTECTED] > Subject: Re: DOMwriter and xml declaration > > > Hi, > A look at the curr

RE: DOMwriter and xml declaration

2003-10-20 Thread Adam Heinz
For me, version 2.3.0 outputs the XML declaration just fine and all I'm doing to my DOMWriter is: pWriter->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true); pWriter->setFeature(XMLUni::fgDOMWRTWhitespaceInElementContent, true); pWriter->setEncoding(XMLUni::fgUTF8EncodingString);

Re: DOMwriter and xml declaration

2003-10-20 Thread Gareth Reakes
Hi, A look at the current code gives this: // We always print out the xmldecl no matter whether it is // present in the original XML instance document or not. // const XMLCh* versionNo = (docu->getVersion()) ? docu->getVersion() : gXMLDecl_v

DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
This question seems to be as pointedly ignored as the recurring "Xerces-X a Win32 static library" question, but I'm trying anyway. How do I get DOMWriter to write a xml declaration at the top of an xml doc? As many have said, even after calling setEncoding, setVersion and setStan

XML declaration and encoding question

2003-10-05 Thread Niclas Persson
Hi!   Being new to both Xerces and DOM I have a couple of questions concerning encoding and the XML declaration.   When I generate an XML document is there any way I can control if it will begin with an XML declaration or not?   When I parse an XML-document without an XML

DO NOT REPLY [Bug 17278] - How to print the XML declaration ?

2003-03-10 Thread bugzilla
gzilla/show_bug.cgi?id=17278 How to print the XML declaration ? [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Reso

DO NOT REPLY [Bug 17278] - How to print the XML declaration ?

2003-02-24 Thread bugzilla
gzilla/show_bug.cgi?id=17278 How to print the XML declaration ? [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED

DO NOT REPLY [Bug 17278] - How to print the XML declaration ?

2003-02-23 Thread bugzilla
gzilla/show_bug.cgi?id=17278 How to print the XML declaration ? [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|I

DO NOT REPLY [Bug 17278] - How to print the XML declaration ?

2003-02-21 Thread bugzilla
gzilla/show_bug.cgi?id=17278 How to print the XML declaration ? [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Reso

DO NOT REPLY [Bug 17278] New: - How to print the XML declaration ?

2003-02-21 Thread bugzilla
gzilla/show_bug.cgi?id=17278 How to print the XML declaration ? Summary: How to print the XML declaration ? Product: Xerces-C++ Version: 2.1.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority:

XML declaration

2003-02-21 Thread Gareth Reakes
Forwarded for Srikanth. Once I used the 1.0 in the setversion() function it is working fine. But I am interested in displaying the XML declaration node in the file along with the XML tree builded in my application. I am using the following piece of code to write the xml content into the file

How do I create xml-declaration for a dom document ?

2001-11-27 Thread Michael Klug
I'm using xerces 1.5.2. I want to create dynamicly dom documents for messages. I know already the member function DOM_Document::createXMLDecl, but how do I bring this declaration at the start of an xml document ? regards Michael -

IDOM root element has a XML declaration text node child

2001-09-06 Thread Houle, Dennis W
Team Xerces-C, After parsing an XML file with IDOMParser, IDOM_Document::getDocumentElement() returns a "root" element containing two children, the XML declaration as a text node and the true XML root element node. Is there a way to configure IDOMParser so that the XML declaration is

Re: SAX2: Need Method for XML Declaration

2001-07-26 Thread Matt Leinhos
of a way to get the encoding without the XMLDecl. Any suggestions? Matt On Jul 25, Bruce Bailey wrote: - >Hi > >I am using Xerces 1.4.0. I can't find the method in the default handler >that is called for the xml declaration (encoding="UTF-8"?&

SAX2: Need Method for XML Declaration

2001-07-25 Thread Bruce Bailey
Hi I am using Xerces 1.4.0. I can't find the method in the default handler that is called for the xml declaration (). Any suggestions? Thanks, Bruce > Bruce Bailey > ADP Dealer Services Group > Suite 450 > 2525 SW First Avenue > Portland, OR 97201 > > 503 2

Re: SAX2: Need Method for XML Declaration

2001-07-25 Thread Matt Leinhos
There is virtual void SAXParser::XMLDecl( ... ) I'm not sure how to use it, though. Will work on - I need to do the same thing. Matt On Jul 24, Bruce Bailey wrote: - >Hi > >I am using Xerces 1.4.0. I can't find the method in the default handler >that

SAX2: Need Method for XML Declaration

2001-07-24 Thread Bruce Bailey
Hi I am using Xerces 1.4.0. I can't find the method in the default handler that is called for the xml declaration (). Any suggestions? Thanks, Bruce > Bruce Bailey > ADP Dealer Services Group > Suite 450 > 2525 SW First Avenue > Portland, OR 97201 > > 503 2