RE: The markup declarations contained or pointed to by the document type declaration must be well-formed.

2007-08-14 Thread Michael Glavassevich
Hi John, I'm not sure why you need the resolver at all. In the code you posted, you're compiling the schema using the JAXP SchemaFactory: File schemaLocation = new File("file:///c:/data/sample/shiporder.xsd"); Schema schema = factory.newSchema(schemaLocation); Presumably you're setting this Sch

Re: Line feeds stripped in CDATASection.getData()

2007-08-14 Thread Michael Glavassevich
Hi Mike, Off the top of my head, I can't think of a reason why that would happen. Do you have a stand-alone test which you could share that reproduces this? Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] Mike Rawlins <[EM

Re: xs:extension and xs:all

2007-08-14 Thread Michael Glavassevich
Hi Jeffrey, Pretty sure the only extension you can make to a complex type with an "all" model group in XML Schema 1.0 is adding additional attributes. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] Jeffrey A Lage <[EMAIL

Re: Line feeds stripped in CDATASection.getData()

2007-08-14 Thread Mike Rawlins
Michael, Thanks for the suggestion, that doesn't seem to be it. The debugger shows both CR and LF removed from the CDATASection. It doesn't matter whether the file has CR/LF as line terminators or just LF. Mike -- Mike Rawlins Michael Glavassevich wrote: >Hi Mike, > >XML parsers are requi

RE: The markup declarations contained or pointed to by the document type declaration must be well-formed.

2007-08-14 Thread John.Ling2
Hello Michael, Thank you for your response. If I cannot replace the DTD specified in the DOCTYPE tag, then short of removing the tag all together, does this mean there is no way for me to get XML validation to work (since that does require notifying the parser about my schema XSD file). Or can I

Re: xs:extension and xs:all

2007-08-14 Thread Jeffrey A Lage
Thanks. So with XML Schema 1.0, is there any way to have type derivation and an unordered (all) set of children elements? On Aug 14, 2007, at 1:34 PM, Michael Glavassevich wrote: Hi Jeffrey, The content model of a complex type derived by extension (see {content type} under the section "Comp

Re: xs:extension and xs:all

2007-08-14 Thread Michael Glavassevich
Hi Jeffrey, The content model of a complex type derived by extension (see {content type} under the section "Complex Type Definition with complex content Schema Component" [1]) consists of a sequence of the content from the base type followed by the effective content [2] from the type you're dec

Re: The markup declarations contained or pointed to by the document type declaration must be well-formed.

2007-08-14 Thread Michael Glavassevich
Hi John, <[EMAIL PROTECTED]> wrote on 08/14/2007 12:46:00 PM: > Hello, > > I have an XML document which has a DOCTYPE tag referencing a DTD. > Instead I want to reference an XSD which specifies this document > structure. I use the XMLCatalogResolver to detect the publicId in the > DOCTYPE and r

The markup declarations contained or pointed to by the document type declaration must be well-formed.

2007-08-14 Thread John.Ling2
Hello, I have an XML document which has a DOCTYPE tag referencing a DTD. Instead I want to reference an XSD which specifies this document structure. I use the XMLCatalogResolver to detect the publicId in the DOCTYPE and replace it with a URI pointing to the XSD. I think this part is working, ho

xs:extension and xs:all

2007-08-14 Thread Jeffrey A Lage
All, It seems to me that this should be a valid XSD: http://schemas.fundevs.com/1/asgard"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; targetNamespace="http://schemas.fundevs.com/1/asgard"; elementFormDefault="qualified" attributeFormDefault="unqualified"

Kelvin Lawrence is on vacation

2007-08-14 Thread Kelvin Lawrence
I will be out of the office starting 08/10/2007 and will not return until 08/27/2007. I am out of the office on vacation and only checking e-mail at best periodically.

Bug handling xs:extension and xs:all or user error?

2007-08-14 Thread Jeffrey A Lage
All, It seems to me that this should be a valid XSD: http://schemas.fundevs.com/1/asgard"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; targetNamespace="http://schemas.fundevs.com/1/asgard"; elementFormDefault="qualified" attributeFormDefault="unqualified"