Got it to write, now need to read it back in.

2003-03-11 Thread John Meyer
I finally have my document: CSAP data.sxc56670testjkf;dlsjafkdl;jkdfThis is a test. Now, I am trying to read out the files using this basic code: DOMDocument *myfiles = parser->getDocument(); DOMElement *root = myfiles->getDocumentElement(); DOMNodeList *List = root->getElementsB

Problem with ContentSpec

2003-03-11 Thread Bagepalli, Kiran
There was an issue with the ContentSpecNode. It has one form when it is initially parsed in schema, but when it is expanded it assumes another form. If I parse a schema standalone, I do NOT get any ContentSpecNode::ZeroOrMore ContentSpecNode::OneOrMore tags but the getMinOccurs and getMaxOccurs wo

DTD/Schema file lookup

2003-03-11 Thread Bagepalli, Kiran
How does the parser do the lookup by default for schemaLocation/DTD within the context of a XML. For eg. C:\Dir1\Data.XML Uses two schema X.xsd c:\Dir2\Y.xsd I guess X.xsd is located in C:\Dir1 Y.x

What is wrong with this code?

2003-03-11 Thread John Meyer
XMLPlatformUtils::Initialize(); DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(XMLString::transcode("core") ); DOMDocument *doc = impl->createDocument(0,XMLString::transcode("files"),0); DOMWriter *wri = impl->createDOMWriter(); RECLIST::iterator i; ARecord rec; for (i =

DO NOT REPLY [Bug 15217] - ti_pthread_mutex_lock on Sun Solaris8

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Problems with loadGrammar

2003-03-11 Thread Michael Liepelt
Hi!   I have a problem that has already appeared in several postings: I want to preload a DTD from a string using loadGrammar and MemBufInputSource. This seems to work because loadGrammar returns a valid grammar object, but the subsequent parse fails with validation errors.   In the postings

Re: About "Conflicting namespace declaration"

2003-03-11 Thread neilg
Hi Vinayak, I think you might be attaching over-much importance to the serialized form of the document. Nowadays--where everything XML'ish tends to get cast in terms of the XML Information Set--I think the DOM spec writers don't think of the DOM as conveying information about particular serialize

Re: Invalid entry point

2003-03-11 Thread Duncan_Stodart
The xerces DLL?  It does not publish a COM component and so does not conform to the convention of having registration entry points. The dll that provides a COM wrapper for the parser (xerces-com.dll) should tho. "John Meyer" <[EMAIL PROTECTED]> 12/03/2003 12:31 AM Please respond to xerces-

About "Conflicting namespace declaration"

2003-03-11 Thread vinayak
I have a doubt regarding section B.1.2: in the dom 3 core spec and how the new normalization routines will be implemented. In the example : http://www.example.org/ns1";> here child2 intends to use the parent's interpretation of namespace ns ("http://www.example.org/ns1";). THEN

DO NOT REPLY [Bug 2728] - Borland C++ Builder 5.0 Compile Error

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug

DO NOT REPLY [Bug 769] - BCB 5 fails to compile Xerces 1.4 library on Windows 2000

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.

DO NOT REPLY [Bug 17886] New: - Can not compile xercesc-com

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

RE: CDATA section

2003-03-11 Thread Jesse Pelton
I think you're right. Section 2.7 of the XML spec says, "Within a CDATA section, only the CDEnd string is recognized as markup, so that left angle brackets and ampersands may occur in their literal form; they need not (and cannot) be escaped using "<" and "&"." -Original Message- From: Gar

Re: CDATA section

2003-03-11 Thread Gareth Reakes
Hi, Ill take a look into why this is. My understanding of the feature is that it should have no effect on escaping. And on refection I do not think that the < do need to be escaped. Gareth On Tue, 11 Mar 2003, Pablo Yabo wrote: > thanks, that was the solution. > > Pablo > > - Original Mes

Re: AW: External Entities

2003-03-11 Thread David N Bertoni/Cambridge/IBM
Hi Mirko, Can't you use an EntityResolver to map this external entity to the version you want? If you want the entity to be empty, you return an InputSource that points to an empty stream. If you want it to be a particular version of the entity, you return an InputSource that points to the a

Re: CDATA section

2003-03-11 Thread Pablo Yabo
thanks, that was the solution. Pablo - Original Message - From: "Tony Dodd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 1:10 PM Subject: RE: CDATA section > Pablo > > I found just the same. This problem will go away if you set > split-cdata-sections to fa

RE: CDATA section

2003-03-11 Thread Tony Dodd
Pablo I found just the same. This problem will go away if you set split-cdata-sections to false, assuming you can safely do that. Tony Dodd >-Original Message- >From: Pablo Yabo [mailto:[EMAIL PROTECTED] >Sent: 11 March 2003 13:40 >To: [EMAIL PROTECTED] >Subject: Re: CDATA section > >

DO NOT REPLY [Bug 11974] - mak-files for bcc32 v.5.5.1 (free or from BCB5)

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 13192] - core dump of SAXCount and SAX2Count

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: Schema Document Access

2003-03-11 Thread Shirish Kulkarni
Henry : Actually, I wish to avoid giving the absolute path in the instance document and have the actual path getting controlled within the application ( or Schema ?? ) - so as to make the instance documents portable ( common to Unix & NT ). So should I be setting up EntityResolver in such cas

DO NOT REPLY [Bug 15217] - ti_pthread_mutex_lock on Sun Solaris8

2003-03-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Schema Document Access

2003-03-11 Thread Shirish Kulkarni
Hi, I would like to locate the schema's at a central location on a Unix machine and be able to access them - irrespective of the run-directory of the parser application Thus the access is through local machine / nfs on Unix machines. For DTD's, we have to use EntityResolver to point to the ap

Re: CDATA section

2003-03-11 Thread Pablo Yabo
that was a mistake, but the CData section is created using API functions, so it has the opening square bracket. I need to send to another library the data inside the CDATA, so I need to send , no . I need to replace &It; with '<'. Pablo - Original Message - From: "Je

Invalid entry point

2003-03-11 Thread John Meyer
Hello, I finally built the dll and am trying to regsvr32 it, but the program keeps on telling me that it doesn't have a valid entry point. Can somebody tell me what's happening? _ John Meyer Programmer ICQ#: 63450423 More ways to contact me: http://wwp.icq.

RE: CDATA section

2003-03-11 Thread Jesse Pelton
I don't know if it would be relevant, but you've omitted the opening square bracket in your CDATA section. Does it actually look the way you indicated, or does it include the opening square bracket ("") as required by the spec? -Original Message- From: Pablo Yabo [mailto:[EMAIL PROTECTED]

Re: CDATA section

2003-03-11 Thread Pablo Yabo
I've got a code fragment: ... m_formTarget = new MemBufFormatTarget; theSerializer->writeNode(m_formTarget, *m_doc); delete theSerializer; return (const char *) m_formTarget->getRawBuffer(); } the document m_doc has CDATA section as this "" and when I get the buffer they are written as: P

Re: AW: External Entities

2003-03-11 Thread Colin Paul Adams
> "Mirko" == Mirko Braun <[EMAIL PROTECTED]> writes: Mirko> thanks for your answer. But it does not solve my problem Mirko> because i want to have only one version of this DTD. The Well, I think it does. You have just one version of the DTD - the external subset. And those users wh

Re: CDATA section

2003-03-11 Thread Gareth Reakes
Hi, post the snippet of code where you do this and I will annotate it explaining what is going on. Gareth On Tue, 11 Mar 2003, Pablo Yabo wrote: > but, I send the tree to a MemBufFormatTarget and then I get the text with > getRawBuffer. > How can I get the original document here? > >

AW: External Entities

2003-03-11 Thread Mirko Braun
Hi Paul, thanks for your answer. But it does not solve my problem because i want to have only one version of this DTD. The extension test.ent is a company specific structure. Other companies who uses the DTD too, should not be aware of this extension. Consequently i had the idea to put this struc

Re: CDATA section

2003-03-11 Thread Pablo Yabo
but, I send the tree to a MemBufFormatTarget and then I get the text with getRawBuffer. How can I get the original document here? Pablo - Original Message - From: "Gareth Reakes" <[EMAIL PROTECTED]> To: "xerces" <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 5:54 AM Subject: Re: CDATA s

Re: External Entities

2003-03-11 Thread Colin Paul Adams
> "Mirko" == Mirko Braun <[EMAIL PROTECTED]> writes: Mirko> I have a XML-problem. Does anybody know, if there is a Mirko> possibility to denote an external entity like Test SYSTEM "Test.ent"> as optional? Test.ent is an Mirko> extension of my DTD, which is not used by all users.

Re: CDATA section

2003-03-11 Thread Gareth Reakes
Hi, when the content is serialized xerces will escape < characters in CDATA as this would make the document illegal. It will remove them again when you parse. Gareth On Mon, 10 Mar 2003, Pablo Yabo wrote: > Hi, > How can I add a string "something" in the data section. > When I add the