Re: anyType question

2003-02-06 Thread sandygao
"anyType" has mixed=true, so it allows textual data. Your "anyDataType" has mixed=false, so it doesn't allow textual data. Adding mixed="true" to either or makes your type "mixed". HTH, Sandy Gao Software Developer, IBM Canada (1-905) 413-3255 [EMAIL PROTECTED] ---

Re: line breaks in attributes

2003-02-06 Thread Andy Clark
Hui Cai wrote: When I call the getAttribute(String), it converts any line > breaks to a white space. Is there a way the line breaks can > be preserved? Make your attribute type CDATA *and* embed the line breaks in your attribute content as character entity references. For example: Also, if you w

RE: High Bit characters in XML

2003-02-06 Thread Voytenko, Dimitry
Hi,   Yes, I see what you mean.   Can you specify your JDOM version, Xerces version (only if you use xerces version different from the supplied with JDOM). And then, please include fragment of the call you use to seralize DOM into text.   >> I only use JDOM which I think essentially is

Re: High Bit characters in XML

2003-02-06 Thread Praveen Peddi
Hi Dimitry, To avoid confusions let me explain exactly what we are doing. Our is a content management system. WE create content objects that has metadata associated with it. And we store the metadata in the form of XML as a clob in oracle database. We also store some of the fields like summar

RE: High Bit characters in XML

2003-02-06 Thread Voytenko, Dimitry
Hi again,   It's still very difficult to say what exactly go wrong. In your examples I don't see where Xerces is used. Do you convert JDOM strucuture into org.w3c.dom using Xerces after that? What do you mean "generated XML"? Do you output it as a text? In this case, what do you use to o

Re: XML Schema

2003-02-06 Thread Bob Schloss
Pae, Obviously, you could use the DOM API provided by Xerces-J to construct the infoset for the XML Schema consisting of the elements used in the XML Representation of XML Schema, and then serialize that. But if you want something that will help make sure that what you are buildin

RE: line breaks in attributes

2003-02-06 Thread Joseph Kesselman
>So would the line breaks preserved during parsing if they are in the element content? Yes, modulo normalization of the various ways of coding a line break. Again, see the XML Recommendation. __ Joe Kesselman / IBM Research

Re: High Bit characters in XML

2003-02-06 Thread Praveen Peddi
I am using JDOM API which in turn uses xerces. I am putting it as normal text of an element.   This is how I added the data: currElem = new Element(currValue);previousElem.addContent(currElem); I am adding this from a web based application (Content Management System that stores the metadata

RE: line breaks in attributes

2003-02-06 Thread Hui Cai
So would the line breaks preserved during parsing if they are in the element content? -Original Message- From: Joseph Kesselman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 06, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: Re: line breaks in attributes See http://www.w3.org/TR/REC-x

RE: High Bit characters in XML

2003-02-06 Thread Voytenko, Dimitry
Hi Praveen,   Can you explain which way you use to "add" this characters. Then how do you see they are converted to question marks. Please, provide frgaments of your code for clarity.   Thanks, Dimitry -Original Message-From: Praveen Peddi [mailto:[EMAIL PROTECTED]Sent: Thursda

High Bit characters in XML

2003-02-06 Thread Praveen Peddi
I am adding high bit characters like copy right symbol and trade mark symbol and they are automatically getting to question marks. I am using the default encoding.   Could anyone tell me how I can store these characters in an XML.   Thanks Praveen

Re: Xerces 2.3.0 and *apis.jar

2003-02-06 Thread Michael R MR Glavassevich
To answer your questions, org.w3c.dom.views, org.w3c.dom.stylesheets, and org.w3c.dom.css are part of DOM Level 2. As far as I know, there is no support for these interfaces in Xerces. javax.xml.transform.* provide an API for XML Transformation, though you probably know that since you use Xalan a

Re: line breaks in attributes

2003-02-06 Thread Joseph Kesselman
See http://www.w3.org/TR/REC-xml#AVNormalize. Line breaks in attributes are not meaningful in XML, and are normalized into spaces. __ Joe Kesselman / IBM Research - To unsubscribe, e-mail: [

line breaks in attributes

2003-02-06 Thread Hui Cai
Hi, When I call the getAttribute(String), it converts any line breaks to a white space. Is there a way the line breaks can be preserved? Hui + This email message (and any attached document) contains information from Ingenuity Systems Inc. which may be considered confidential by Ingenu

Xerces mailing list archives

2003-02-06 Thread Bolduan, Eric R.
Does anyone know when the archives of the Xerces-J user and developer mailing lists will be made available? Both of the archive sites http://xml-archive.webweaving.org/xml-archive-xerces-j-user/ and http://xml-archive.webweaving.org/xml-archive-xerces-j-dev/ indicate that they are curre

Special characters when building a DOM tree

2003-02-06 Thread Bolduan, Eric R.
Hello, Forgive me for asking such a basic question, but I can't find an example or documentation that shows how to do this. I am constructing a DOM tree and need to have the degree symbol appear within PCDATA. What I'm trying to construct would be similar to: 37 °C

Xerces 2.3.0 and *apis.jar

2003-02-06 Thread Lemmin, Harald
Hello, what is the difference between: Xerces 2.2.0: xmlParserAPIs.jar and Xerces 2.3.0: xmlParserAPIs.jar? Packages like dom/views dom/stylesheets dom/css xml/transform/.. have been added. What are they good for? why is xml-apis.jar been distributed, too? it is bigger than the xml-apis.jar dist

XML Schema

2003-02-06 Thread Pae Choi
I understand we can use xerces to build, parse, and validate XML. At least that's what I have been using it for up to now. Now I need to know if it also support or contains an extension to "build the XML Schema." Any info and/or comments? Pae -

regular expression

2003-02-06 Thread rf
I want regular expressions for valid element names, element text, attibute name, attibute values. Let me know if the following are correct element and attribute name - ^[a-zA-Z_][a-zA-Z0-9_]*$ element text & attribute value - ^([^&]|(&(amp|quot|apos|lt|gt);))*$ ~rf ___

anyType question

2003-02-06 Thread Jesus M. Salvo Jr.
Given the following snippets from a schema definition ( look in particular on the element name "Details" .. ): Status information conveyed in responses