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.
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.
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
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
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
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?
>
>
>
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
&
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
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
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
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
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
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
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
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
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
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.
>
&
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
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
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);
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
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
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
gzilla/show_bug.cgi?id=17278
How to print the XML declaration ?
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RESOLVED
Reso
gzilla/show_bug.cgi?id=17278
How to print the XML declaration ?
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|REOPENED
gzilla/show_bug.cgi?id=17278
How to print the XML declaration ?
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|I
gzilla/show_bug.cgi?id=17278
How to print the XML declaration ?
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RESOLVED
Reso
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:
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
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
-
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
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"?&
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
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
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
35 matches
Mail list logo