the issue:
http://issues.apache.org/jira/browse/XERCESC-1282
Here is an overview of the issue:
-
Key: XERCESC-1282
Summary: DOMPrint Crash during schema validation
Type: Bug
Status: Resolved
Priority
The following comment has been added to this issue:
Author: George Aggrey
Created: Sat, 2 Oct 2004 12:12 AM
Body:
Hello David,
DOMPrint from xml-xerces_20041002043233.tar.gz correctly validates the xml file above.
I probably mixed something up. I guess the remaining issue is
http://issues.apache.org/jira/browse/XERCESC-1282
Here is an overview of the issue:
-----
Key: XERCESC-1282
Summary: DOMPrint Crash during schema validation
Type: Bug
Status: Unassigned
Pr
The following comment has been added to this issue:
Author: George Aggrey
Created: Thu, 30 Sep 2004 11:42 PM
Body:
Authors is not in the schema so validation should fail but it doesn't.
Here is my command line:
domprint -v=always -n -f -s instanc
:
-
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee
:
-
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema
The following comment has been added to this issue:
Author: cargilld
Created: Sat, 25 Sep 2004 5:21 PM
Body:
I ran DOMPrint with -n -s -f -v=always using the latest source and
got an error about cat:
Error at file "d:\bugs\1276.xml", line 2, column 6
Message: Unkno
:
-
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Hi everybody !!
Thank you very much for your answers. I was
checking what Gareth recommend me. I downloaded
the "xerces-c-current.zip" distribution and tried
to compile by myself but I could not see the
error messages.
However, with this new pre-compiled version I can
read them.
Thank you both
This is what I see with xercesc 2.5.0 binaries from distribution
file xerces-c_2_5_0-windows_nt-msvc_60.zip:
=
E:\DOMPrint\Debug>DOMPrint -v=always -n -s x1.xml
Error at file "E:\DOMPrint\Debug/x1.xml", line 5, column 34
Mess
result, I would like to know, as it doe snot seem right to
me.
Gareth
On 6 Sep 2004, at 17:34, elsa lizette wrote:
http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="E:\DOMPrint\Debug\myschema.xsd">
--
Gareth Reakes, Managing Director Parth
--
And my xml could be one of these two options:
1)--
http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocatio
Hi,
thats certainly not expected behavior. Can you post a minimal xml
document and schema that demonstrates this?
Cheers,
Gareth
elsa lizette wrote:
Hello everybody !!
I am trying to validate an xml using a schema.
I compiled DOMPrint example and run it:
DOMPrint -v=always -n -s x1.xml
However
Hello everybody !!
I am trying to validate an xml using a schema.
I compiled DOMPrint example and run it:
DOMPrint -v=always -n -s x1.xml
However, the output reports some errors but they
do not have a description:
--
Error at file "E:\DOMPrint\Debug/x1.xml"
Hi Alberto,
Some OS's return UTF-8, EUC-JP, but some return utf8,
eucJP. If you have the xml encoding in either way, it
seem to work.
Regards
Prakash
--- Alberto Massari <[EMAIL PROTECTED]> wrote:
> At 03.32 12/04/2004 -0700, P M S Prakash wrote:
> >Hi Alberto,
> >
> >Yes, the original XML docume
At 03.32 12/04/2004 -0700, P M S Prakash wrote:
Hi Alberto,
Yes, the original XML document had UTF-16 encoding.
After changing it to appropriate encoding, it worked.
Also, in my application, I am setting the encoding
using setEncoding, by determining the character set of
the local system. The foll
Hi Alberto,
Yes, the original XML document had UTF-16 encoding.
After changing it to appropriate encoding, it worked.
Also, in my application, I am setting the encoding
using setEncoding, by determining the character set of
the local system. The following is the sample code. Is
it the right way t
ValSchemesgValScheme =
XercesDOMParser::Val_Auto;
// Prototypes for internally used functions
void usage();
// ---
//
// Usage()
//
// ---
void usage()
{
XERCES_STD_QUALI
the content of the DTD file.
Alberto
Ed
-Original Message-
From: Gareth Reakes [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 10:53 AM
To: [EMAIL PROTECTED]
Subject: RE: DTD validation in DOMPrint
Hi,
not validating is different from not reading the dtd. You still
h
Hi,
On Mon, 22 Dec 2003, Purdy, Edgar M wrote:
> Gareth,
>
> My goal is to bypass the DTD validation. I am going to assume that the
> XML string is valid.
Then the flag you set is fine. This does not mean it will nto parse the
DTD though. It has to do that anyway.
Gareth
--
Gareth Reakes,
Gareth,
My goal is to bypass the DTD validation. I am going to assume that the
XML string is valid.
Ed
-Original Message-
From: Gareth Reakes [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 10:53 AM
To: [EMAIL PROTECTED]
Subject: RE: DTD validation in DOMPrint
Hi
t; the DOMPrint sample runs completely through to normal completion.
> If I remove the .dtd file from the directory DomPrint gives a run time error.
> I wonder if the -v=never is being processed correctly?
>
> Ed
>
> -Original Message-
> From: Denny Vrandecic [mail
If I leave the .dtd file in the debug directory, and change the switch to -v=never,
the DOMPrint sample runs completely through to normal completion.
If I remove the .dtd file from the directory DomPrint gives a run time error.
I wonder if the -v=never is being processed correctly?
Ed
You don't need to change the code. Try using the option -v=never instead.
Does this help?
> I am experimenting with the DOMPrint sample code.
>
> I am making the assumption that the XML string is valid.
> What changes do I make in the DOMPrint code to bypass the DTD va
I am experimenting with the DOMPrint sample code.
I am making the assumption that the XML string is valid.
What changes do I make in the DOMPrint code to bypass the DTD validation sequence
Thanks
Ed Purdy
-
To
gzilla/show_bug.cgi?id=16295
DOMPrint Entity References
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RESOLVED
Reso
gzilla/show_bug.cgi?id=16295
DOMPrint Entity References
Summary: DOMPrint Entity References
Product: Xerces-C++
Version: 1.4
Platform: Sun
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Componen
gzilla/show_bug.cgi?id=14389
DOMPrint - gDoCreate - wrong default value
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RESOLVED
Reso
gzilla/show_bug.cgi?id=14389
DOMPrint - gDoCreate - wrong default value
Summary: DOMPrint - gDoCreate - wrong default value
Product: Xerces-C++
Version: 2.1.0
Platform: Other
OS/Version: Other
Status: NEW
Severity:
gzilla/show_bug.cgi?id=2264
DOMPrint does not correctly print the ENTITY_NODE
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RE
Thank you.
Jae.
-Original Message-
From: Dean Roddey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 6:46 PM
To: [EMAIL PROTECTED]
Subject: Re: -u switch for DOMPrint
For instance, create an ISO-8859-1 document, and somewhere in there use a
numerical character reference
t, don't buy it!"
- Original Message -
From: "In, Jae Woo" <[EMAIL PROTECTED]>
To: "Apache XML Developer List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 5:10 PM
Subject: -u switch for DOMPrint
Could anyone suggest a method for testing the -u
Could anyone suggest a method for testing the -u switch for DOMPrint. Specifically,
what is considered an unrepresentable character? Thanks in advance.
Jae.
<>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
I need to convert a DOM_Document to a CString for a
Web request. Instead of hardcoding the string, I am trying to create it with
Xerces.
Somebody over here mentioned that he was able to
obtain a char* with overloading method from DOMPrint while using strstream
instead of ostream, and
Hi, folks,
I built libxerces-c1_6_0.sl on HPUX 10.20 with g++ 2.95.2.
(runConfigure -php-10 -cgcc -g++ -nsocket -tnative--- I didn't
specify the message load option)
When I run the code sample -- DOMPrint, the error message is like:
$ IDOMPrint /home/local/test.xml
Memory
tripped!
>
> On 21 December 2001 10:02, Neil Sherman [SMTP:[EMAIL PROTECTED]] wrote:
> > Hi all!
> >
> > I am trying to validate an XML document that contains attributes who have
> whitespace at the beginning. It is important to retain the whitespace, for
> various che
2001 10:02, Neil Sherman [SMTP:[EMAIL PROTECTED]] wrote:
> Hi all!
>
> I am trying to validate an XML document that contains attributes who have
whitespace at the beginning. It is important to retain the whitespace, for
various checks later.
>
> I am basing my code on the DOMPRI
Hi all!
I am trying to validate an XML document that contains attributes who have
whitespace at the beginning. It is important to retain the whitespace, for
various checks later.
I am basing my code on the DOMPRINT and DOMCOUNT examples. When I run the
DOMPRINT example on my XML document
Dear Frank!
I sent You mail. I have found this error, now work
all well.
Thank You , Susanna Harutyunyan
- Original Message -
From:
Frank
Balluffi
To: '[EMAIL PROTECTED]'
Sent: Monday, October 15, 2001 5:53
PM
Subject: RE: DOMPrint
Susanna
::TextDecl(unsigned short const *
const,unsigned short const * const)"
(?TextDecl@DOMParser@@UAEXQBG0@Z)"
.
.
- list of other
function from DOMParser.
How can I correct this error (in
DOMPrint it is line 460 - in my program I am use same line) ?
Thanks , Susanna Harutyunyan
--
2001 8:26
AMTo: [EMAIL PROTECTED]Subject:
DOMPrint
Dear Andreas!Thank You for e-mail (and
program). You help me. From my project I am use (like in
DOMPrint- in line 464) command:
parser->setValidationSchemaFullChecking(gSchemaFullChecking);
and when execute my program ,
Dear Andreas!Thank You for e-mail (and
program). You help me. From my project I am use (like in
DOMPrint- in line 464) command:
parser->setValidationSchemaFullChecking(gSchemaFullChecking);
and when execute my program , I am receive
message"The procedure
e
Xerces Version: 1.5.1
Visual C++ Pro w/SP5
I just started working with the Xerces-C, and I wanted to start by tearing
apart some of the examples. After playing for a while, I copied the 3 source
files for DOMPrint (DOMPrint.cpp, DOMTreeErrorReporter.cpp/hpp) and created
a new project using these
list of children. Hence the output you received.
-Original Message-
From: Chaim Koshizky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 10:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: DOMPrint: Declaration and Document Type
Here is the code i use
m_Doc = m_Impl.createDo
Wednesday, July 25, 2001 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: DOMPrint: Declaration and Document Type
>
> You need to use DOM_Document::createXMLDecl() to create a non-null
> XMLDecl:
>
> DOM_XMLDecl domDecl = m_Doc.createXMLDecl ("1.0&
, July 25, 2001 5:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: DOMPrint: Declaration and Document Type
I tried creating DOM_XMLDecl and insert before.
It does not work the way you describe.
here is the code :
DOM_XMLDecl domDecl;//
hild);
I can not find any documentation on DOM_XMLDecl, but the hpp file.
Any help will be grateful
> --
> From: Jesse Pelton
> Reply To: [EMAIL PROTECTED]
> Sent: Friday, July 13, 2001 6:01 PM
> To: '[EMAIL PROTECTED]'
> Subject:
"Jason E. Stewart" wrote:
>
> "Murray Cumming" <[EMAIL PROTECTED]> writes:
>
> > I'm trying to use the DOMPrint code to ouput the text of a DOM_Document
> > that was constructed entirely in memory by adding nodes. Unlike the
> > DOMPrint
"Murray Cumming" <[EMAIL PROTECTED]> writes:
> I'm trying to use the DOMPrint code to ouput the text of a DOM_Document
> that was constructed entirely in memory by adding nodes. Unlike the
> DOMPrint example, this DOM_Document was never parsed from XML text.
>
&
ething
may have changed. My serializer is also descended a few generations from
DOMPrint, so it may be that I did something to it as well.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm trying to use the DOMPrint code to ouput the text of a DOM_Document
that was constructed entirely in memory by adding nodes. Unlike the
DOMPrint example, this DOM_Document was never parsed from XML text.
I find that the declaration text at the start is never written. I mean
this ty
Ok I see too many messages reguarding it hey my mbox!! ;-P
// DOMSave.h
//
//
#ifndef DOMSAVE_H
#define DOMSAVE_H
// Includes
#include
#include
#include
#include
#include
#include
#include
#include
#include
#incl
Would be nice to bulish your file serialization code throgh this forum .
> --
> From: Anthony Zawacki
> Reply To: [EMAIL PROTECTED]
> Sent: Thursday, July 12, 2001 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: problem regarding D
I have seen the others responses, and as I am fiddling around with DOMPrint
at the moment, let me show you what I have done and see if that does the
trick for you.
//
---
// Local classes
Just an observation, but it has taken me some time to resolve this. I think
this is also a fairly common problem with many other people failing to
handle the escape characters (and not even knowing about them).
Is there any reason why the DOMPrint example does not convert all the
standard
Hello,
Your not doing anything wrong, and there is not any problem (depending on
your perspective.)
If youlook at the DOMPrint example, you will see that it ignores the
ostream it recieves, and uses a formatter in it's place that always output
to std::out. You will need to change and fix
...snip...
> ofstream outputfile;
> outputfile.open("/tilde/lpcoop/temp.txt",ios::out);
what do you expect this line to do?
> outputfile << doc << endl;
> outputfile.close();
>
> Please tell me what the problem is ?? If i try to write a
> normal string to
> the outputfile like outputfile <<
Hi ,
I am trying to work with the example DOMPrint given in the samples
directory. The problem that I am haiving is that ... I am trying to print
out the output in a FILE insted of printing it out on the CONSOLE. I am
opening and closing the file properly but the output prints out on the
CONSOLE
The XML standard says is that various common combinations of CR and LF are
converted to newline as the document is parsed. What they're converted back
to on output is not specified, but any of those combinations is acceptable;
generally, you'd pick whichever line break sequence is recommended by
> On Thu, 28 Jun 2001, "Kent" == Kent Dahl wrote:
Kent> I don't remember the reference, anyone care to confirm or
Kent> unconfirm?
The following is from: http://www.w3.org/TR/REC-xml
2.11 End-of-Line Handling
XML parsed entities are often stored in computer files
which, f
Stefan Berglund wrote:
> static const XMLCh gXMLDecl4[] =
> {
> chDoubleQuote, chQuestion, chCloseAngle
> , chCR, chLF, chNull
> };
>
> Couldn't this be a problem in Unix ? CR/LF can cause a ^M character in some
> cases? Is the XML standard saying that there should be a new line
> after
Hello,
I'm having problems with my app, I've borrowed the functionality of the
DOMPrint example to get my parsed XML to a string,
and when it "writes out" the XML_DECL_NODE, it uses the constant:
static const XMLCh gXMLDecl4[] =
{
chDoubleQuote, chQuestion, chCloseAngl
Hi,
I am trying to geenrate an XMLfile or an XML string from DOM_Node using
exmaple given in
DOMPrint.cpp.I get XMLs but i also get junk at the end of xml. what may be
the resaon.
pls enlighten me.
i am using following statements for xml generation:
1. for file :
xmlfile << domnode << en
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2264
*** shadow/2264 Thu Jun 21 03:17:11 2001
--- shadow/2264.tmp.9067Thu Jun 21 03:17:11 2001
***
*** 0
--- 1,22
+ ++
+ | DOMPrint does not
Its probably just a simple bug in DOMPrint most likely.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Message-
From: Jiwoon Jeon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 8:38 AM
To: [EMAIL PROTECTED]
Subject: DOMPrint
Jiwoon Jeon wrote:
> The following XML shows the problem.
> [snip]
>
> I found that the default #FIXED value at line 4 was missing.
> What's wrong with me or DOMPrint?
>
I think you found a bug. I have checked in the fix which should be available in
tomorrow nightly bui
The following XML shows the problem.
-
http://www.w3.org/TR/REC-html40">
]>
http://www.w3.org/TR/REC-html40">
DomPrint produces:
]>
http://www.w3.org/TR/REC-html40">
I found that the default #FIX
:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: DOMPrint parser exception question
Team Xerces,
The ErrorHandler documentation states "The parser shall use this interface
instead of throwing an exception" and DOMTreeErrorReporter doesn't thro
Team Xerces,
The ErrorHandler documentation states "The parser shall use this interface
instead of throwing an exception" and DOMTreeErrorReporter doesn't throw any
exception either.
So how does control ever get passed to the parser's catch block in DOMPrint?
Thanks for
ssage -
From:
Emma
Towey
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 1:34
PM
Subject: Re: Domprint and overwriting
files
Hi,
Thanks a million for your help I have taken your
suggestions.
At the moment I am opening a file inserting new data and
s
ply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Domprint and overwriting files
>Date: Mon, 26 Mar 2001 15:34:09 -0600
>
>Emma
>
>I might be able to get you in the right direction. I needed to write out to
>a file instead of to stdout. Here is what I c
ave
to comment out the command line parameter counter logic in DOMPrint since my
version allowed more inputs (I needed to also allow the user the capability
to modify the values of a user specified node ... blah, blah, blah).
Anyway, I added the follo
I havent looked at the DOMPrint code myself for a while but I am fairly
sure it does not provide the functionality you require. You will need to
modify it with an extra command line parameter and insert some io code
into the DOMPrint itself. If you do not know how to do this then have a
look in
I need to be able to call DOMPrint with a filepath/filename as the parameter, manipulate data ie append new data within DOMPrint and have the new file saved and returned back to me. I dont want to have to set the filepath inside the settings of the project or on the command line.
Any
What do you mean by it will not save? Have you changed the code so it
outputs to a file? If so then it could be a problem with permissions. If
not, well its doing what its supposed to do. If you just want to save to a
file on the command line then you could redirect the output
./DOMPrint param
How are you saving
the file?
-Original Message-From: Emma Towey
[mailto:[EMAIL PROTECTED]]Sent: Friday, March 23, 2001 2:39
PMTo: [EMAIL PROTECTED]Subject: Domprint and
overwriting files
I'm taking a file into DOMPrint manipulating it and printing it out onto
the screen. Th
I'm not sure what you mean by "the updates aren't saving".
When you modify the DOM, you are _only_ altering the copy that was loaded
into the DOM. If you want to write that back to the file you must do so
explicitly -- by running the equivalent of DOMPrint, with output dire
Hi all,
Im having a bit of a problem that hopefully someone will be able to help me with.
Im taking a file into DOMPrint manipulating it and printing it out onto the screen. This is working fine except that my new file will not save, that is my updates arent saving. When I open the file it
Hi all,
Im having a bit of a problem that hopefully someone will be able to help me with.
Im taking a file into DOMPrint manipulating it and printing it out onto the screen. This is working fine except that my new file will not save, that is my updates arent saving. When I open the file it
within in the output.
Regards,
Peiyong Zhang
XML Parsers Development
IBM Toronto Laboratory email: [EMAIL PROTECTED]
Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
"Emma Towey" <[EMAIL PROTECTED]> on 03/22/2001 02:50:11 PM
Please respond to [EMAIL PROTECTED]
I haven't worked with the C++ version much, but in general the concept
ought to be much the same from one version of the DOM to another. In Java,
it would be roughly as follows. For more detail, see the DOM specification
and/or the XML-DEV mailing list.
parse your document into the DOM, ob
but still inside the Event Node, and then Print out the file to the screen but also save it so that it overwrites the original file.
I have been using the DOMPrint Class to do this and I am able to read in and print out the file but I still cant figure out how to manipulate the data before printing
82 matches
Mail list logo