RE: Sax Fatal Error

2004-06-18 Thread david_n_bertoni
Hi, This document is not encoded in UTF-8, so it is not well-formed. I tried "ISO-8859-1" and it worked, but that's just a guess at the encoding. You need to find out what the real encoding is. Dave - To unsubscribe, e-mail:

RE: Creating multiple namespaces

2004-06-18 Thread T A
Thanks for replying. Yes, your XML looks correct. Shoot!   I use createElementNS to create the element and then appendChild.   I use either setAttributeNS or setAttributeNodeNS to create the namespace attribute.   I am also wondering if the issue is that if the namespace attribute URI is has to be

RE: LCPTranscoder and XMLTranscoder (was: Xerces Mac Users Feedback Requested)

2004-06-18 Thread Adam Heinz
Okay, well, I think i'm going to wrap the XML transcoder within my own code for the time being and move to an LCP transcoder in 2.6.0. I see that I'd gotten it stuck in my head that LCP == system code page, instead of a sort of curried XML transcoder. Adam Heinz Senior Software Developer Exstream

Re: LCPTranscoder and XMLTranscoder (was: Xerces Mac Users Feedback Requested)

2004-06-18 Thread James Berry
On Jun 18, 2004, at 11:59 AM, Adam Heinz wrote: You're right, "has a" makes a lot more sense. I'm going to have to wait for the next point release to use mTranscoder, but where can I find this LCP adapter? A couple greps didn't turn it up. The MacOSLCPTranscoder in the current code _is_ the adapte

RE: Creating multiple namespaces

2004-06-18 Thread Adam Heinz
My XML that goes back and forth between namespaces pretty regularly:   http://www.exstream.com/2003/XSL/Dialogue" xmlns:fo="http://www.w3.org/1999/XSL/Format">                    Saturday April 22            What function are you using to append elements?

RE: Creating multiple namespaces

2004-06-18 Thread T A
Thanks for the reply, but unfortunately, this does not work correctly.   It will indeed create a root element like so   xmlns:isbn='urn:ISBN:0-395-36341-6'> However, when I try to create an element using the second namespace, isbn, it looks like this     xmlns:isbn='urn:ISBN:0-395

RE: LCPTranscoder and XMLTranscoder (was: Xerces Mac Users Feedback Requested)

2004-06-18 Thread Adam Heinz
Hrm, or maybe a CP transcoder than LCP could extend, but wouldn't be hardwired to the system code page. Adam Heinz Senior Software Developer Exstream Software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: LCPTranscoder and XMLTranscoder (was: Xerces Mac Users Feedback Requested)

2004-06-18 Thread Adam Heinz
You're right, "has a" makes a lot more sense. I'm going to have to wait for the next point release to use mTranscoder, but where can I find this LCP adapter? A couple greps didn't turn it up. An adapter will certainly get me past my current development issues, but that doesn't soothe the interfa

Re: LCPTranscoder and XMLTranscoder (was: Xerces Mac Users Feedback Requested)

2004-06-18 Thread James Berry
On Jun 18, 2004, at 10:43 AM, Adam Heinz wrote: I see that are both LCP and non-LCP are implemented using the same TEC structures (transcoders), but I meant more in an object hierarchy sense -- since the core implementation is similar, why not build one transcoder that fulfills both LCP and non-LCP

RE: Xerces Mac Users Feedback Requested

2004-06-18 Thread Adam Heinz
I see that are both LCP and non-LCP are implemented using the same TEC structures (transcoders), but I meant more in an object hierarchy sense -- since the core implementation is similar, why not build one transcoder that fulfills both LCP and non-LCP interfaces? I was hoping to create a non-LCP t

Re: Xerces Mac Users Feedback Requested

2004-06-18 Thread James Berry
On Jun 17, 2004, at 2:32 PM, Adam Heinz wrote: The LCP transcoder is now completely generic. It is implemented strictly in terms of the virtual transcoder interface. As such, any XMLTranscoder can be passed in as the transcoder to fullfill the LCP transcoding Looking at the documentation for XMLLCP

RE: Sax Fatal Error

2004-06-18 Thread Nathan Smith
Title: Message Here's the doc...   -Original Message-From: Sylvain Duval [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 12:05 PMTo: [EMAIL PROTECTED]Subject: RE: Sax Fatal ErrorIf it's not too big...Or just copy and paste a small one in the email...At 12:07 18/06

RE: Sax Fatal Error

2004-06-18 Thread Tony Dodd
Title: Message It's hard for us to tell unless you post the contents of the file, assuming it is smallish. Does it have an xml declaration? For example, I have had this error from trying to pass off an ISO 8859 file as UTF-8.   Tony DoddOxford University Research Technology Group

RE: DOMText & appendChild

2004-06-18 Thread Jesse Pelton
I assume you want to append in your example. If this is the case, you need to append it to the element. Element nodes can have children; text nodes cannot. -Original Message- From: Fribault, Arnaud [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 11:29 AM To: [EMAIL PROTECTED] S

RE: Sax Fatal Error

2004-06-18 Thread Sylvain Duval
If it's not too big... Or just copy and paste a small one in the email... At 12:07 18/06/2004 -0400, you wrote: Can I attach it to an email and send it to the list? -Original Message- From: Sylvain Duval [mailto:[EMAIL PROTECTED]] Sent: Friday, June 18, 2004 11:45 AM To: [EMAIL PROTECTED

Re: DOMText & appendChild

2004-06-18 Thread david_n_bertoni
Hi, Text nodes do not have children. In your example, the "Child" node's parent is "Parent", which is an Element node. There are no RFCs to examine to figure this out -- just look at the DOM recommendation: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1590626202 Dave |-+---

RE: Sax Fatal Error

2004-06-18 Thread Nathan Smith
Title: Message Can I attach it to an email and send it to the list? -Original Message-From: Sylvain Duval [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 11:45 AMTo: [EMAIL PROTECTED]Subject: Re: Sax Fatal ErrorHi,Seems to be encoding problem.Can you post your fi

Re: Sax Fatal Error

2004-06-18 Thread Sylvain Duval
Hi, Seems to be encoding problem. Can you post your file and especially the header? Sylvain. At 11:46 18/06/2004 -0400, you wrote: Hi, I'm using xml4c in my mfc app and I'm getting a SAX fatal error when trying to read an xml file I created.  It says the type of the error is: UTFDataFormatExceptio

Sax Fatal Error

2004-06-18 Thread Nathan Smith
Title: Message Hi, I'm using xml4c in my mfc app and I'm getting a SAX fatal error when trying to read an xml file I created.  It says the type of the error is: UTFDataFormatException.  Invalid byte 1 of 1 byte character.   What does this mean?   I can open other files that I've created wit

DOMText & appendChild

2004-06-18 Thread Fribault, Arnaud
Hi, DOMText does not implement the DOMNodeImpl::appendChild method. I look through the RFCs and cannot find any reason why. For instance: text Child will be parsed with no pb, but I can't create such an XML with the current DOM implementation. Am I missing something here ? Thx, Arnaud F. -