Hi All,
I have an interesting issue to ask all of you.
I want to create SWING GUI & HTML GUI from a given
XML file.
Is this possible, so that it becomes easy for us to ship
are gui screens to others in XML format. That is just give your xml and it will
generate the GUI.
thanks
vikas
Hi,
How do I know the memory size of parsed XML document?
For example,
DOMParser parser;
parser.parse(xmlFile);
DOM_Document doc=parser.getDocument();
doc is just a referrencing object. How do I know the exact memory size of
the underlying XML document.
Thanks for your help!
min
--
Thanks Bil.
At first glance seems reasonable that a SAX Interface had a callback for
every other possible "event" that could arise while parsing. A Doctype is an
almost sure declaration on every XML document intended to be validated.
I will dig out in SAX 2 internal calls .
Alfredo
-Orig
I have downloaded from the Apache web site and have made no changes
to the makefiles or source code. Out of the box, I was hoping that the
parser code would compile and the sample programs from the
xerces-c1_4_0-SolCC load would compile as well. I have XERCESCROOT set
correctly and don't
A decision was made a while back, which I didn't really agree with, to fix
XMLCh to UTF-16 on all platforms. Partly this was because the DOM committee
chose UTF-16 for its representation. So, if this is not compatible with your
wchar_t, you must transcode all of the data to your local wide string
Is there a way to convert between XMLCh and wchar_t on both the AIX 4.3 &
Solaris platform that won't break my code on NT?
I have some code that I'm trying to port from win32 that uses wchar_t for
unicode support. This code currently makes use of some of the xerces
functions that only take XMLCh
I've done this but only in the case that DOM2 has about a dozen lines
and DOM1 no more than a couple of hundred. Essentially, I did exactly
what you suggest below. Mine's a bit easier because all of my nodes
had better have a unique identifier ( or else other bad things are
going to happen ). M
Thanks for the responses, Dean and Jesse.
It sounds like I'm safe with the main app, because the
modules won't even be found until it can read its XML
based configuration file. However, it sounds like I
should make my general module test harness call Initialize
and Terminate rather than having
Your approach is reasonable, as long as you can guarantee that the main app
calls Initialize() before any of the other modules have a chance to call
Terminate(). If your modules are only ever called from your main app,
consider forgoing the Initialize()/Terminate() calls in the modules
altogether
Your main program, should just call Initialize(). When the program end, the
main program can just call Terminate(). In fact, you don't have to call
Terminate(). Its just a convenience for folks who want to do leak checking.
All it does is clean up global/static data that was lazily faulted in.
Pa
Hello All,
This maybe have been answered before but
I haven't found it in any threads or on the FAQ or grepping around in the
samples.
I have one object DOM1 that was parsed
from an existing file. I have another object DOM2 created by a user that
is a subset of the DOM1 object. DOM2 is
Hello,
I watched the discussion about Xerces-C being reentrant a bit ago.
( It seems that archive.covalent.net is not answering the phone anymore
so I've not searched the archive again. )
The faq says:
"No. XMLPlatformUtils::Initialize() can only be called once per
process. Call Initialize() w
By the time the SAX exception is thrown out to you, all of the information
in the scanner has been reset, because we've come out of the parse() call.
So you can't get any of that infomration at that point. You have to get it
during a callback. So if you install an error handler, you can then make
The most obvious thing is that you have an error in your callback handlers,
assuming you are using SAX and not DOM. If so, comment out all of your code
that accepts the XML data so that it doesn't do anything, removing that
possible source of memory corruption, and try it again.
--
De
No, there are reasons you'd want both. In many cases, the DTD is designed
with the prefixes already on the elements, and the document just makes sure
to use those prefixes. But they still want to have those translated to URLs
and that namespace aware data to be spit out.
--
Dean Rodde
How do i add an attribute to a DOM_Node ( that is a Dom_Element)
can i downcast it.
Is that possible???
Itzhak Hazan
Senior Programmer
BMC Software Inc.
<<...OLE_Obj...>>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
"All of that is true, particularly for XML users who come from the SGML
world, but since we're talking about practicalities, there are a large class
of XML documents in the real non-SGML world which have the following
characteristics:"
And the optional 'ignore external subset' flag that's already
There are two different issues here. One is namespaces. In the example you
give, its just whether namespace validation is on or not. In the Xerces
parser its off by default, because it has associated overhead and lots of
people don't use it.
The issue being discussed was namespaces relative to DT
In general that's true, but if you know the non-validating parser is reading
the external subset, its not. And that's something that most people would
want to happen most of the time, and if they know they are using a parser
that does (or can be told to) do that, then they want it to happen, and i
Hi all,
I have noticed this rather odd problem with Xerces-c. Basically, I am
creating a XML document and trying to print it with DOMPrint.
The problem is when ever I create an element that has length more than 7
characters, my program is seg faulting. Does any one faced similar problem
before
Hi,
I am using a MemBufInputSource object, for setting up the
EntityResolver, for the DTD handling. I noticed that this object's
fSrcByte member, gets corrupted after a single parse( either nil or some
arbit value, depend on the setting of the setCopyToBufStream setting )
and there is a crash aft
You don't say which processor you're using (Java or C++), but I'll answer
for the C++ processor. In the future, please provide more information when
you post, as it will help expedite an answer.
There was a bug in std::istream processing that resulted in the EOF
character being included in the
The message probably means pretty much what it says, except that the URL is
bogus. I'd suggest posting a small example of an offending document if you
want help figuring out what part of it is causing the problem.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
hi all,
i'm trying for hours to figure out what this error message means.
XSL Warning: Fatal Error at (file http://www.testin.com/afile.xml, line 567, column
1): Expected comment or processing instruction
XSL Error: Could not parse http://www.testin.com/afile.xml document!
XSL Warning: Unknown
Well, one of the old XML4J 2.x parsers (SAXParser)
has an event for just that called doctypeDecl. I
don't know if current versions still support that
but you might look on alphaworks to find out.
I used that parser before I bothered to read the
SAX specs so I was really surprised to find out
tha
Hi all,
When an exception of this type is thrown the error information available
(getSystemId, getLineNumber, getColumnNumber, getMessage) does not contain a
dump of the line which caused the parsing error - only a description.
This is ok if parsing from the a file as I can get at the line numbe
26 matches
Mail list logo