DefaultHandler in SAX 2.0

2002-07-31 Thread hamacher
Hello: I am having a problem with DefaultHandler. Here are before and after scenarios. In the past, I registered ContentHandler classes and ErrorHandler classes independently with my XMLReader object using setContentHandler and setErrorHandler. Everything worked fine. I used a schema to v

RE: new line problem

2002-07-31 Thread Voytenko, Dimitry
Hi Brad, it's a little bit unclear what you're trying to do: 1. Do you pass text fragment below to XML parser? If so what do you use? Where this text is stored? As string? InputStream/Reader? 2. Which pasrer version? 3. Do you parse it into DOM? 4. What does it return in terms of DOM (for instanc

new line problem

2002-07-31 Thread Brad Drake
Hello, I have an xml document that I am trying to parse that contains a new line character. For example: I want the new line character that I pull from the document to be '\n' not "\n". The problem is that the parser keeps pulling '\' then 'n'. I want the character new lin

Re: Allowable schema representations

2002-07-31 Thread Bob Schloss
W3C XML Schema language permits different content models for elements with the same name, as long as the validator can unambiguously determine which content model applies. Your examples are legal. Bob Schloss XML/XSL Transformational Systems IBM Thomas J. Watson Research Center Yorktown Height

Re: OT: Schema or DTD Design mailing list

2002-07-31 Thread Bob Schloss
The mailing list [EMAIL PROTECTED] discusses questions like a) Do I interpret the W3C XML Schema specifications section n.n to mean foo or bar? b) How can I express this particular constraint in the W3C XML Schema specifications? c) What are the pros and cons of two alternative vocabular

[ot] how do Xerces developers make a correct javadoc ?

2002-07-31 Thread Paul Libbrecht
Sorry to be so off-topic but I seem to see that the javadoc of Xerces is hole-less. Can anyone indicate me the preferred way to do so except read the command-line ?? I found no-way to run javadoc which does report errors with correct line-numbers. Thanks in advance. Paul --

OT: Schema or DTD Design mailing list

2002-07-31 Thread I-Lin Kuo
I'm looking for a mailing list for DTD and/or XML Schema design questions. Does anyone have suggestions? _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -

Allowable schema representations

2002-07-31 Thread Loz
If I define an XML schema as follows: http://www.w3.org/2001/XMLSchema"; targetNamespace="http://localhost/strange"; xmlns="http://localhost/strange"; elementFormDefault="qualified">

Re: NekoHtml - Script.java

2002-07-31 Thread Andy Clark
SB wrote: I wouldlike to know a little about the implementation of NekoHTML's html parser. The source code is available for your perusal. :) can I do this transformation?. I cannot even parse the former as it is ill-formed.. How does > NekoHtml go about reading an ill-formed xml? NekoHTML does

Ignoring a DTD declaration and doing schema validation instead

2002-07-31 Thread Sarah Lowe
Title: Ignoring a DTD declaration and doing schema validation instead I have some documents to process that may or may not contain DOCTYPE declarations. I want to always validate the document against a schema that I specify, ignoring a DOCTYPE declaration if present. (What I have already wor

Re: NekoHtml - Script.java

2002-07-31 Thread SB
I wouldlike to know a little about the implementation of NekoHTML's html parser. I want to convert to , uie., put the attribute values in quotes. Now using the standard XML APIs available with Xerces1.4.4 can I do this transformation?. I cannot even parse the former as it is ill-formed.. H

When to encode XML String

2002-07-31 Thread SB
String in XML must be encoded, ie., &, <, >, ', " must be replaced with &, <, >, ', ". But it is not clear to me when to encode a particular string, ie., &, when present in the string correctly, might get further encoded as &. Can somebody explain to me how to handle xml strings before giving t